Taym Haddadi
c01b733523
Update codegen for GetOpener:inRealms in Bindings.conf ( #33062 )
...
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
2024-08-15 13:42:50 +00:00
Hayashi Mikihiro
86c4e014b4
Replace the lazy_static crate with std::sync::LazyLock
in components/shared ( #33060 )
...
* replace in pub_domains.rs
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
* replace in embedder/resources.rs
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
* replace in base/id.rs
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
* replace in net/lib.rs
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
* remove lazy_static from components/shared
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
---------
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2024-08-15 12:05:29 +00:00
Cristian Brinza
8f82b2a7cb
Use FontInstanceFlags::SUBPIXEL_POSITION for font instances on Windows ( #33045 )
...
Signed-off-by: crbrz <cristianb@gmail.com>
2024-08-15 10:25:57 +00:00
Jonathan Schwender
97c84b6127
ohos/android: Redirect stdout/stderr to log
sink ( #32858 )
...
* ohos: redirect stdout/stderr to logging sink
Based on the existing android `redirect_stdout_to_logcat` implementation,
but using the safe abstractions from `nix` and dumping to the `log` sink,
instead of directly writing the log.
Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com>
* android: Use new shared implementation for logcat redirection.
Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com>
* servoshell: Register cfg(production)
Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com>
* Update ports/servoshell/egl/log.rs
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
Signed-off-by: Jonathan Schwender <55576758+jschwe@users.noreply.github.com>
* Change info! to debug! to match original behavior on android
Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com>
---------
Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com>
Signed-off-by: Jonathan Schwender <55576758+jschwe@users.noreply.github.com>
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
2024-08-15 09:26:03 +00:00
Martin Robinson
8159f03288
layout: Support start
and end
values for flexbox align-self
( #33032 )
...
These are similar to `flex-start` and `flex-end`, but in `wrap-reverse`
situations, they are the opposite.
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Co-authored-by: Oriol Brufau <obrufau@igalia.com>
2024-08-15 08:20:41 +00:00
Daniel Adams
825d6f10e9
webxr: Update hand input to match latest spec ( #32958 )
...
* Update IDLs
Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Update XRHand and XRJointSpace methods/bindings
Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Implement fillJointRadii
Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Implement fillPoses
Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Formatting
Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Update test expectations
Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Tidy, missing spec link
Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Remove idlharness expectation files, update hands pref
Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Update interfaces
Signed-off-by: Daniel Adams <msub2official@gmail.com>
* XRJointPose interface
Signed-off-by: Daniel Adams <msub2official@gmail.com>
* XRHand interface
Signed-off-by: Daniel Adams <msub2official@gmail.com>
---------
Signed-off-by: Daniel Adams <msub2official@gmail.com>
2024-08-14 22:45:45 +00:00
Martin Robinson
057873c94a
Remove unused constant from components/net/fetch/methods.rs
( #33054 )
...
This was revealed by the recent switch to `LazyLock`.
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
2024-08-14 18:35:13 +00:00
Hayashi Mikihiro
ad85dd10e3
Replace lazy_static with std::sync::LazyLock in components/fonts ( #33049 )
...
* replace in shaper.rs
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
* replace in android/font_list.rs
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
* replace in ohos/font_list.rs
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
* remove lazy_lock from components/fonts
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
---------
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2024-08-14 16:20:54 +00:00
Martin Robinson
7633bdccd2
layout: Initial implementation of flex-direction: column
and column-reverse
( #33031 )
...
This change removes restrictions on using the column layout mode of
flexbox and adds an initial implementation of sizing for that flex
direction. There's a lot of missing pieces still, but in some cases this
does render column flexbox.
In particular, there are now two code paths for preferred widths
(intrinsic size) calcuation: one in the main axis (row) and one in
the cross axis (column) corresponding to the flex direciton with
horizontal writing modes.
In addition, `FlexItemBox::inline_content_sizes` is removed in favor of
making `sizing::outer_inline` /
`IndependentFormattingContext::outer_inline_content_sizes` generic
enough to handle using a different value for auto minimum sizes, which
flexbox needs.
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Co-authored-by: Oriol Brufau <obrufau@igalia.com>
2024-08-14 14:25:09 +00:00
Simon Wülker
c059bab6f4
Dont use lazy static to construct mutexes ( #33047 )
...
* Remove usage of lazy-static in background_hang_monitor
The lazy-static crate was only used to construct a mutex,
but since Mutex::new is const this can be done at compiletime
instead.
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
* Remove usage of lazy-static in servoshell
Lazy-static was only used to construct a mutex, but
since Mutex::new is const this can simply be done at
compiletime.
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
---------
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
2024-08-14 13:42:01 +00:00
Martin Robinson
d941d2fd67
layout: Convert the FragmentTree to physical geometry ( #33030 )
...
This converts all geometry in the FragmentTree into physical geometry,
doing conversions ahead of time instead of when traversing the fragment
tree. This is necessary to properly implement BiDi in Servo as we need
to know what side borders are on in mixed RTL and LTR contexts.
In addition, fragments are laid out in a particular context and only
that context knows its writing mode. There were issues where were using
one writing mode to lay out and another to convert to phyisical
coordinates. This isn't an issue now since we only use the default
writing mode, but starts to be an issue with BiDi text.
Closes #25564 .
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
2024-08-14 12:22:06 +00:00
Hayashi Mikihiro
65f90ff1fd
Replace the lazy_static crate with std::sync::LazyLock in components/net ( #33046 )
...
* replace in net/fetch/methods.rs
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
* replace in net/hosts.rs
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
* replace in net/async_runtime.rs
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
* replace in net/tests/main.rs
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
* remove lazy_static crate from components/net
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
---------
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2024-08-14 12:15:55 +00:00
Martin Robinson
6be99241c6
Fix warnings after latest rust upgrade ( #33043 )
...
This fixes various unused code warnings after the recent rust upgrade.
Some of the dead code is maintained, as it is quite likely that it will
be used in future changes.
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
2024-08-14 07:00:16 +00:00
Jonathan Schwender
3aef023368
ohos: Fix x86_64-unknown-linux-ohos ( #33029 )
...
* ohos: Fix compilation for x86_64
Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com>
* ohos: Use the SDK compiler-wrapper
When compiling for x86_64-unknown-linux-ohos without the compiler
wrapper, for some reason mozjs_sys will be refercing a wrong mangled symbol
resulting in the following error when loading the .so at runtime:
```
_ZNSt3__111this_thread9sleep_forERKNS_6chrono8durationIxNS_5ratioILl1ELl1000000000EEEEE: symbol not found
```
This problem does not occur when compiling for aarch64 or when using the compiler wrapper.
In this case the correct symbol
`_ZNSt4__n111this_thread9sleep_forERKNS_6chrono8durationIxNS_5ratioILl1ELl1000000000EEEEE`
is referenced.
It's unclear why manually passing the flags via CFLAGS / CXXFLAGS does not work.
Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com>
---------
Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com>
2024-08-14 01:30:04 +00:00
Martin Robinson
478d95d245
Dedupliate syn
( #33038 )
...
This is the last step toward removing our use of `syn` version
1. It does three things:
1. Upgrades `async-recursion` to a newer version that uses `syn` 2.
2. Removes the use of `enum-iterator` that was only used to produce a
trivial list of enum names. This reduces the number of crates we
dependo on by 2.
3. Upgrades `media` to a version which no longer uses `syn` 1
Fixes #33034 .
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
2024-08-13 21:21:47 +00:00
Martin Robinson
8582678e4b
Properly handle subpixel units when dividing space between flex lines ( #32913 )
...
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Co-authored-by: Oriol Brufau <obrufau@igalia.com>
2024-08-13 15:11:01 +00:00
danik292
5d6840873a
clippy: Fix missing indentation in comments and remove on unecessary cast ( #33026 )
...
* Add missing indendations in comments.
Signed-off-by: Daniel Frantes <danfrantes@seznam.cz>
* Fix test tidy error
Signed-off-by: Daniel Frantes <danfrantes@seznam.cz>
---------
Signed-off-by: Daniel Frantes <danfrantes@seznam.cz>
2024-08-13 11:28:09 +00:00
Ashwin Naren
ea5cf75169
clippy: Fix various clippy warnings throughout the code ( #33003 )
...
* replace u64::max_value() with u64::MAX
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
* removed redundant import
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
* Fixed dereference
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
* Fixed a probable bug
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
* fixed imports
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
* fixed dereference
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
* dereference formatting
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
* removed unnessicary number imports
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
* removed unnessicary number imports
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
* removed excess borrow
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
* ran mach fmt
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
* fixed doc comment
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
* removed deref on an immutable reference
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
* fixed minor syntax error
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
* reverted clamping
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
* formatting
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
* reverted final clamp
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
---------
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
Co-authored-by: Ashwin Naren <ashwin@pixelators.org>
2024-08-13 05:16:47 +00:00
Daniel Adams
0d137d276a
webxr: Add missing IDL members from AR Module ( #33007 )
...
* Add missing IDL members from AR module
Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Update test expectations
Signed-off-by: Daniel Adams <msub2official@gmail.com>
* ./mach fmt
Signed-off-by: Daniel Adams <msub2official@gmail.com>
---------
Signed-off-by: Daniel Adams <msub2official@gmail.com>
2024-08-13 04:28:40 +00:00
Martin Robinson
564ba5969f
layout: Non-auto z-index
should always make stacking contexts for flex items ( #32961 )
...
Fixes #32756 .
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
2024-08-12 12:15:20 +00:00
Taym Haddadi
df8ccafa7c
Fix: Return error and avoid panicking in SetOpener function ( #33002 )
...
* Fix: Return error and avoid panicking in SetOpener function
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* eturn JSFailed onstead of InvalidState
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Update wpt test result
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
---------
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
2024-08-12 07:58:00 +00:00
Hayashi Mikihiro
a797969efe
Replace the lazy_static crate whth std::sync::LazyLock
in components/script ( #33004 )
...
* replace in str.rs
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
* replace navigator.rs
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
* replace htmlmetaelement.rs
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
* replace document.rs
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
* replace cssstyledeclaration.rs
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
* replace script_runtime.rs
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
* replace window_named_properties.rs
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
* reduce dependency lazy_static
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
* reduce lazy in script_runtime.rs
`Mutex::new()` is const contexts. I think that `JS_ENGINE` is need not lazy initialize.
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
---------
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2024-08-12 07:30:35 +00:00
Josh Matthews
f38d1574bc
Allow navigations that include cross-origin redirects to succeed. ( #32996 )
...
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
2024-08-12 06:09:45 +00:00
Daniel Adams
5520a9eb50
webaudio: Implement IIRFilterNode ( #33001 )
...
* Basic IIRFIlterNode bindings
Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Add constructor to BaseAudioContext
Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Update IDL and use statements
Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Update non-crashing test expectations
Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Tidy
Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Add missing spec link
Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Optimize error checks
Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Pass context channel count to servo-media
Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Update test expectations
Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Update legacy expectations
Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Add IIRFilterNode in interfaces.html
Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Update MANIFEST
Signed-off-by: Daniel Adams <msub2official@gmail.com>
---------
Signed-off-by: Daniel Adams <msub2official@gmail.com>
2024-08-12 00:27:54 +00:00
webbeef
2ebb71f08a
Set the cfg properly for the production-stripped profile ( #32991 )
...
Signed-off-by: webbeef <me@webbeef.org>
2024-08-09 09:16:51 +00:00
Taym Haddadi
a1d3649f7c
Fix ordering of documents ( #32574 )
...
* Fix ordering of documents
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com>
* order pipeline ids, get document later, avoid use of document_from_node on iframe because it returns the owner doc
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com>
* Fix build issue
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Use iter::once to avoid allocation
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* scope batches of rendering opportunities by pipeline
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com>
---------
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com>
Co-authored-by: gterzian <2792687+gterzian@users.noreply.github.com>
2024-08-09 07:41:20 +00:00
Samson
24b1404d12
Update wgpu ( #32981 )
...
* Update wgpu to 781b54a8b9
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* expectations
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
---------
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2024-08-08 20:27:16 +00:00
ToBinio
8fab6911d1
script: dont unwrap in header set ( #32973 )
...
Signed-off-by: tobinio <tobias.frischmann1@gmail.com>
2024-08-08 14:33:54 +00:00
Samson
b8cf0cf9af
webgpu: Implement proper async pipeline creation and GPUPipelineError ( #32636 )
...
* Add GPUPipelineError
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* Proper GetBindGroupLayout
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* Proper Create*PipelineAsync
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* Expectations
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* fixups
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* more good expectations
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
---------
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2024-08-08 11:48:43 +00:00
Taym Haddadi
08eb4faf4d
Initial structuredClone implementation ( #32960 )
...
* Initial structuredClone implementation
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Rename PostMessageOptions to StructuredSerializeOptions
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Update wpt test 2020 layout result
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Remove dublicated StructuredClone implementation
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Remove comment from StructuredSerializeOptions webidl
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>
---------
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>
2024-08-08 10:12:45 +00:00
Samson
f989d3776e
separate Queue&Device Id ( #32966 )
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2024-08-08 07:53:17 +00:00
Josh Matthews
a5df51ea56
Refine crown annotations for HTML parser. ( #32956 )
...
* Refine crown annotations for HTML parser.
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* Add missing annotation.
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
---------
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
2024-08-08 07:20:26 +00:00
newmoneybigbucks
3fca6e015f
script: Properly handle removed iframes in GlobalScope::get_referrer
( #32782 )
...
Signed-off-by: newmoneybigbucks <newmoneybigbucks@protonmail.com>
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
2024-08-07 11:12:19 +00:00
Hayashi Mikihiro
3c271fb298
Update to rust 1.80.0 ( #32896 )
...
* Update for nix
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
* Update to Rust 1.80.0
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
* Rename to BindingMode from BindingAnnotation
https://github.com/rust-lang/rust/pull/124047
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
* Remove TypeVariableOriginKind
https://github.com/rust-lang/rust/pull/123016
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
* Remove TypeVariableOrigin
https://github.com/rust-lang/rust/pull/124955
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
* Remove LintDiagnostic::msg
rust-lang/rust#125410
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
* common.rs fmt mistake indents
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
* trace_in_no_trace.rs remove mistake space
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
* trace_in_no_trace.rs remove mistake head space
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
* Workaround for https://github.com/servo/servo/issues/32912
It's dirty but it worked on 2000 runs
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
---------
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
Co-authored-by: Samson <16504129+sagudev@users.noreply.github.com>
2024-08-07 08:40:18 +00:00
Samson
68f4b359c5
Add exception to rejection logic in generic_call
( #32950 )
...
* exception in JS Promise
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* EXCEPTION_TO_REJECTION on generic_call
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* PromiseRejectionEvent should handle promise as object
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* expectations
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
---------
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2024-08-06 17:12:31 +00:00
Martin Robinson
1d464a576a
layout: Add support for align-content: stretch
( #32906 )
...
This adds support for `align-content: stretch` by splitting flex line
layout into two phases. The first phase takes place before determing how
much extra space to allocate for stretching items. Then line layout
finishes, which might cause two layouts for items with `align-self:
stretch`.
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Co-authored-by: Oriol Brufau <obrufau@igalia.com>
2024-08-06 10:33:37 +00:00
Taym Haddadi
3800922cde
Fix panic in Webrender during shutdown ( #32897 )
...
* Fix panic in webrender during shutdown
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Pass webgl_threads_sender to WebGLThreads::exit
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* follow the naming convention and use sender instead of webgl_threads_sender
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Avoid deadlock when webgl_threads is None
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Use tuple matching for webgl_threads and webgl_threads_receiver
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Remove unused _webgl_threads_sender
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
---------
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
2024-08-06 10:01:33 +00:00
Ngo Iok Ui (Wu Yu Wei)
3f339d6856
webrender_traits: update closure in with_front_buffer to FnOnce ( #32946 )
...
Signed-off-by: Wu Wayne <yuweiwu@pm.me>
2024-08-06 06:06:21 +00:00
Martin Robinson
f1602005a0
deps: Upgrade to WebRender 0.65 ( #32930 )
...
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
2024-08-05 14:35:21 +00:00
eri
babc844c93
DevTools: Allow modification of attributes ( #32888 )
...
* feat: allow modification of attributes
Signed-off-by: eri <eri@inventati.org>
* fix: tidiness
Signed-off-by: eri <eri@inventati.org>
* feat: clean walker name generation
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
Signed-off-by: eri <eri@inventati.org>
* fix: missed out parameter
Signed-off-by: eri <eri@inventati.org>
---------
Signed-off-by: eri <eri@inventati.org>
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
2024-08-05 10:24:01 +00:00
Ngo Iok Ui (Wu Yu Wei)
4d49b04668
Add surface methods to RenderingContext ( #32933 )
...
Signed-off-by: Wu Yu Wei <yuweiwu@pm.me>
2024-08-05 10:21:36 +00:00
Martin Robinson
10b06f0129
layout: Improve documentation and code structure in FlexItemBox::automatic_min_size
( #32911 )
...
This change add specification text to comments and restructres the code
a bit to better match the specification. In addition, a the
`establishes_scroll_container()` helper is used instead of looking at
overflow directly. It should not change behavior at all.
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
2024-08-05 09:24:31 +00:00
Samson
5e59988c87
webgpu: Use wgpu's instead of string errors and update limits handling ( #32925 )
...
* Use wgpu specific errors
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* fixup expect
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* WIP
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* Fix records erasing enforcerange
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* page can already be destroyed
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* Support more limits
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* Set good results
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* Set OK (not PASS) expect CRASH
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* fixup expectation
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* bad expectations
https://github.com/gfx-rs/wgpu/issues/6075
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* set bad expectation
render bundleencoder needs to be rewritten
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
---------
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2024-08-04 17:19:46 +00:00
Cristian Brinza
7c2c383bb1
Fix save to image on Windows ( #32914 )
...
* Read pixels in same format (gl::RGBA) as the texture
Signed-off-by: crbrz <cristianb@gmail.com>
* Add read pixels test
Signed-off-by: crbrz <cristianb@gmail.com>
* Use patched surfman
Signed-off-by: crbrz <cristianb@gmail.com>
* Update surfman to 0.9.5
Signed-off-by: crbrz <cristianb@gmail.com>
---------
Signed-off-by: crbrz <cristianb@gmail.com>
2024-08-03 20:04:26 +00:00
Samson
f3bec0aed3
bindings: Convert certain Exceptions into Promise rejections ( #32923 )
...
* Impl promise exception to rejection for methods
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* Impl promise exception to rejection for getters
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* Impl promise exception to rejection for static methods
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* Add tests for exception to rejection
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* Expectations
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
---------
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2024-08-03 12:58:37 +00:00
Daniel Adams
fd83281657
Implement WebXR Gamepads Module ( #32860 )
...
* Expose gamepad attribute on XRInputSource
Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Tidy, add spec links
Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Update WPT test expectations
Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Update gamepad state on InputChanged event
Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Pin webxr commit
Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Apply gamepad updates during frame updates
Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Drain input frame map
Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Don't store gamepad as option
Signed-off-by: Daniel Adams <msub2official@gmail.com>
---------
Signed-off-by: Daniel Adams <msub2official@gmail.com>
2024-08-03 12:51:44 +00:00
Martin Robinson
72b3fd56e1
script: Fix two build warnings about unused imports ( #32910 )
...
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
2024-08-02 06:50:47 +00:00
Delan Azabani
974c9dc89a
layout: Compute intrinsic sizes for flex items and flex containers ( #32854 )
...
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Co-authored-by: Mukilan Thiyagarajan <mukilan@igalia.com>
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
2024-08-02 06:45:11 +00:00
Erik Hennig
5963695664
fix: Memory leak from CreateProxyWindowHandler ( #32773 )
...
* fix: Memory leak from CreateProxyWindowHandler
Signed-off-by: ede1998 <online@erik-hennig.me>
* fix: memory leak in WindowProxy
Signed-off-by: ede1998 <online@erik-hennig.me>
* fix: Memory leak in WindowProxyHandler through static
Signed-off-by: ede1998 <online@erik-hennig.me>
---------
Signed-off-by: ede1998 <online@erik-hennig.me>
2024-08-01 21:16:49 +00:00
Chocolate Pie
92866ab911
enhance: Add support for unsafe-eval
and wasm-unsafe-eval
( #32893 )
...
Signed-off-by: Chocolate Pie <106949016+chocolate-pie@users.noreply.github.com>
2024-08-01 17:26:44 +00:00