Commit graph

50515 commits

Author SHA1 Message Date
Samson
0fed99590a
Revert "Use surfman with glow bindings (#34328)" (#35402)
This reverts commit 503bb10c5b.

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2025-02-10 17:20:27 +00:00
Samson
90130315a7
Remove unintended dbg! from components/net/fetch/methods.rs (#35401)
It was accidentally introduced in https://github.com/servo/servo/pull/34794

Signed-off-by: Samson <16504129+sagudev@users.noreply.github.com>
2025-02-10 17:00:53 +00:00
Martin Robinson
f51a5661f8
libservo: Flesh out permissions API (#35396)
- Update the script crate to better reflect the modern Permission
  specifcation -- removing the necessity for an `Insecure` variant of
  the permissions prompt.
- Have all allow/deny type requests in the internal API use an
  `AllowOrDeny` enum for clarity.
- Expose `PermissionsRequest` and `PermissionFeature` data types to the
  API and use them in the delegate method.
- Update both servoshell implementations to use the API.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Co-authored-by: Mukilan Thiyagarajan <mukilan@igalia.com>
2025-02-10 15:50:33 +00:00
Shubham Gupta
b72932bc88
Add support for Upgrade a mixed content request. (#34794)
Signed-off-by: Shubham Gupta <shubham13297@gmail.com>
2025-02-10 05:30:24 +00:00
Martin Robinson
84006ba76d
libservo: Remove message-based API (#35366)
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
2025-02-10 04:14:16 +00:00
Max T.
044f77d728
script: Add shadow dom check to custom element constructor (#35382)
* script: Add shadow dom check to custom element constructor

Signed-off-by: maxtidev <max@maxti.dev>

* Update components/script/dom/customelementregistry.rs

Co-authored-by: Josh Matthews <josh@joshmatthews.net>
Signed-off-by: Max T. <163015439+maxtidev@users.noreply.github.com>

* Update components/script/dom/customelementregistry.rs

Co-authored-by: Josh Matthews <josh@joshmatthews.net>
Signed-off-by: Max T. <163015439+maxtidev@users.noreply.github.com>

* Update components/script/dom/customelementregistry.rs

Co-authored-by: Josh Matthews <josh@joshmatthews.net>
Signed-off-by: Max T. <163015439+maxtidev@users.noreply.github.com>

* Update components/script/dom/customelementregistry.rs

Co-authored-by: Josh Matthews <josh@joshmatthews.net>
Signed-off-by: Max T. <163015439+maxtidev@users.noreply.github.com>

* Remove unnecessary custom-elements upgrading test .ini

Signed-off-by: maxtidev <max@maxti.dev>

* script: tidy comments in run_upgrade_constructor

Signed-off-by: maxtidev <max@maxti.dev>

---------

Signed-off-by: maxtidev <max@maxti.dev>
Signed-off-by: Max T. <163015439+maxtidev@users.noreply.github.com>
Co-authored-by: maxtidev <max@maxti.dev>
Co-authored-by: Josh Matthews <josh@joshmatthews.net>
2025-02-09 13:10:50 +00:00
Martin Robinson
75cf3d7265
dom: Always replace unpaired surrogates when handling page text (#35381)
Background:

> JavaScript strings are potentially ill-formed UTF-16 (arbitrary
> Vec<u16>) and can contain unpaired surrogates. Rust’s String type is
> well-formed UTF-8 and can not contain any surrogate. Surrogates are
> never emitted when decoding bytes from the network, but they can sneak
> in through document.write, the Element.innerHtml setter, or other DOM
> APIs.

In 2015, Servo launched an experiment to see if unpaired surrogates
cropped up in page content. That experiment caused Servo to panic if
unpaired surrogates were encountered with a request to report the page
to bug #6564. During that time several pages were reported with unpaired
surrogates, causing Servo to panic. In addition, when running the WPT
tests Servo will never panic due to the `-Z replace-surrogates` option
being passed by the test driver.

Motivation:

After this 10 year experiment, it's clear that unpaired surrogates are a
real concern in page content. Several reports were filed of Servo
panicking after encountering them in real world pages. A complete fix for
this issue would be to somehow maintain unpaired surrogates in the DOM,
but that is a much larger task than simply emitting U+FFD instead of an
unpaired surrogate.

Since it is clear that this kind of content exists, it is better for
Servo to try its best to handle the content rather than crash as
production browsers should not crash due to user content when possible.
In this change, I modify Servo to always replace unpaired surrogates.

It would have been ideal to only crash when debug assertions are
enabled, but debug assertions are enabled by default in release mode --
so this wouldn't be effective for WPT tests.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
2025-02-09 08:56:05 +00:00
Max T.
b483cdb786
script: Replace unnecessary macro in get_constructor_object_from_local_name (#35383)
Signed-off-by: maxtidev <max@maxti.dev>
Co-authored-by: maxtidev <max@maxti.dev>
2025-02-09 01:55:56 +00:00
Servo WPT Sync
a284bbd29d
Update web-platform-tests to revision b'1a5b13545ae58e468ed11e4c21912a3faf3355ea' (#35384)
Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org>
2025-02-09 01:38:02 +00:00
Nolen Scaife
df73d02932
make report_pending_exception safe and adjust callers (#35351)
Signed-off-by: Nolen Scaife <nolen@scaife.org>
2025-02-08 22:22:44 +00:00
webbeef
827012fc08
suppress build warnings when disabling webgpu and webxr (#35379)
Signed-off-by: webbeef <me@webbeef.org>
2025-02-08 08:16:21 +00:00
Jonathan Schwender
654df4c8b7
Add cli option for tracing-filter (#35370)
Using environment variables is not really an option on ohos/android,
so add a CLI option to configure tracing.
Making it a `pref`, so that we can persist the filter
might also be desirable.

Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
2025-02-08 07:10:12 +00:00
Simon Wülker
39c1e5d5d6
Handle assigned slottables in an Event's path (#35380)
* Handle slots in an event's path

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Update WPT expectations

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

---------

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
2025-02-08 02:21:22 +00:00
Steven Novaryo
9c769efb06
layout: Fix relative positioned grid item (#35014)
* layout grid item collected child

Signed-off-by: stevennovaryo <steven.novaryo@gmail.com>

* Add WPT tests

Signed-off-by: stevennovaryo <steven.novaryo@gmail.com>

* Add WPT tests

Signed-off-by: stevennovaryo <steven.novaryo@gmail.com>

* Add WPT tests

Signed-off-by: stevennovaryo <steven.novaryo@gmail.com>

* Fix fixed position descendant

Signed-off-by: stevennovaryo <steven.novaryo@gmail.com>

* Run fmt

Signed-off-by: stevennovaryo <steven.novaryo@gmail.com>

* Apply code quality suggestion

Signed-off-by: stevennovaryo <steven.novaryo@gmail.com>

* Split up the WPT test

Signed-off-by: stevennovaryo <steven.novaryo@gmail.com>

* Organize WPT test CSS

Signed-off-by: stevennovaryo <steven.novaryo@gmail.com>

* Fix WPT css endline

Signed-off-by: stevennovaryo <steven.novaryo@gmail.com>

---------

Signed-off-by: stevennovaryo <steven.novaryo@gmail.com>
2025-02-07 23:40:54 +00:00
Stephen Muss
1e490abf2d
script: make methods of ErrorInfo safe (#35367)
Signed-off-by: Stephen Muss <stephenmuss@gmail.com>
2025-02-07 21:31:13 +00:00
Martin Robinson
e227e0913b
servoshell: Move headless setting to ServoShellPreferences (#35377)
This is only used in servoshell, even though it was plumbed through
script previously. It's just about how the `RenderingContext` is set up,
which is something managed entirely outside of servo itself.

In addition, make the name of `servo_shell_preferences` in `app.rs` more
consistent with the rest of the codebase.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
2025-02-07 20:04:31 +00:00
dependabot[bot]
1ba5d0e093
build(deps): bump once_cell from 1.20.2 to 1.20.3 (#35373)
Bumps [once_cell](https://github.com/matklad/once_cell) from 1.20.2 to 1.20.3.
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md)
- [Commits](https://github.com/matklad/once_cell/compare/v1.20.2...v1.20.3)

---
updated-dependencies:
- dependency-name: once_cell
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-07 17:16:24 +00:00
dependabot[bot]
02a6c9eac7
build(deps): bump wayland-protocols-wlr from 0.3.5 to 0.3.6 (#35375)
Bumps [wayland-protocols-wlr](https://github.com/smithay/wayland-rs) from 0.3.5 to 0.3.6.
- [Release notes](https://github.com/smithay/wayland-rs/releases)
- [Changelog](https://github.com/Smithay/wayland-rs/blob/master/historical_changelog.md)
- [Commits](https://github.com/smithay/wayland-rs/commits)

---
updated-dependencies:
- dependency-name: wayland-protocols-wlr
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-07 17:08:57 +00:00
dependabot[bot]
f03320af4f
build(deps): bump webrender_api from 9f552be to 8846253 (#35376)
Bumps [webrender_api](https://github.com/servo/webrender) from `9f552be` to `8846253`.
- [Release notes](https://github.com/servo/webrender/releases)
- [Commits](9f552bebab...8846253074)

---
updated-dependencies:
- dependency-name: webrender_api
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-07 17:08:52 +00:00
dependabot[bot]
5f88e12b23
build(deps): bump webrender from 9f552be to 8846253 (#35374)
Bumps [webrender](https://github.com/servo/webrender) from `9f552be` to `8846253`.
- [Release notes](https://github.com/servo/webrender/releases)
- [Commits](9f552bebab...8846253074)

---
updated-dependencies:
- dependency-name: webrender
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-07 17:08:40 +00:00
dependabot[bot]
463eeb2685
build(deps): bump wayland-protocols-plasma from 0.3.5 to 0.3.6 (#35372)
Bumps [wayland-protocols-plasma](https://github.com/smithay/wayland-rs) from 0.3.5 to 0.3.6.
- [Release notes](https://github.com/smithay/wayland-rs/releases)
- [Changelog](https://github.com/Smithay/wayland-rs/blob/master/historical_changelog.md)
- [Commits](https://github.com/smithay/wayland-rs/commits)

---
updated-dependencies:
- dependency-name: wayland-protocols-plasma
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-07 16:55:50 +00:00
dependabot[bot]
6fc3c7451b
build(deps): bump wr_malloc_size_of from 9f552be to 8846253 (#35371)
Bumps [wr_malloc_size_of](https://github.com/servo/webrender) from `9f552be` to `8846253`.
- [Release notes](https://github.com/servo/webrender/releases)
- [Commits](9f552bebab...8846253074)

---
updated-dependencies:
- dependency-name: wr_malloc_size_of
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-07 16:53:57 +00:00
Shubham Gupta
2bb720f0f1
Modify the checks for upgrade-request algorithm (#35357)
Signed-off-by: Shubham Gupta <shubham13297@gmail.com>
2025-02-07 13:15:06 +00:00
Stephen Muss
3c1cce825d
script: make throw_invalid_this and throw_constructor_without_new safe (#35360)
Signed-off-by: Stephen Muss <stephenmuss@gmail.com>
2025-02-07 13:07:50 +00:00
Martin Robinson
643885e6f1
deps: Upgrade to webrender@0.66 (#35325)
In addition to some small API changes, this downstream version of
WebRender no longer depends on a very old version of time. This is the
last step toward removing the dependency on `time0.1`.

The review for this commit should also include: 9f552bebab

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
2025-02-07 11:57:26 +00:00
Oriol Brufau
4721f47190
Enable surfman's sm-x11 feature for webrender_traits (#35362)
This fixes errors when running `./mach clippy -r -p webrender_traits`.

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
2025-02-07 11:20:59 +00:00
Martin Robinson
19e41ab9f9
libservo: Add a ClipboardDelegate and a default implementation (#35297)
Add a `ClipboardDelegate` to the `WebView` API and a default
implementation in libservo for this delegate that works on Mac, Windows,
and Linux. Support for Android will be added in the future. This means
that embedders do not need to do anything special to get clipboard
support, but can choose to override it or implement it for other
platforms.

In addition, this adds support for handling fetches of clipboard contents
and renames things to reflect that eventually other types of clipboard
content will be supported. Part of this is removing the string
argument from the `ClipboardEventType::Paste` enum because script will
need to get other types of content from the clipboard than just a
string. It now talks to the embedder to get this information directly.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
2025-02-07 10:43:46 +00:00
Ngo Iok Ui (Wu Yu Wei)
b5b69988cc
fix: bring back connection method to fix WebGL texture error (#35358)
* Bring back connection method to fix texture error

Signed-off-by: Wu Yuwei <yuweiwu@pm.me>

* Print GL info in log instead

Signed-off-by: Wu Yuwei <yuweiwu@pm.me>

---------

Signed-off-by: Wu Yuwei <yuweiwu@pm.me>
2025-02-07 10:36:37 +00:00
Simon Wülker
7a6953bc08
Add support for the ::slotted selector (#35352)
* bump stylo

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Update WPT expectations

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

---------

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
2025-02-07 08:47:56 +00:00
webbeef
5cd4012e79
wini_minimal: trigger initial rendering and scroll properly (#35350)
Signed-off-by: webbeef <me@webbeef.org>
2025-02-07 08:27:42 +00:00
Josh Matthews
6393a6c750
script: Annotate steps for custom element creation. (#35354)
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
2025-02-07 07:53:06 +00:00
Mukilan Thiyagarajan
2ef12cf40f
servoshell: upgrade egui and related depenencies (#35353)
Also fix build errors resulting from the use of the type
`egui::Rounding` which is now renamed to `egui::CornerRadius`.

Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
2025-02-07 06:09:08 +00:00
Oriol Brufau
bbbff61840
Enable aws-lc-sys feature for aws-lc-rs (#35343)
This fixes an error when running `./mach clippy -r -p script`.

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
2025-02-07 03:29:21 +00:00
Simon Wülker
5a5d796988
Implement ServoLayoutNode::traversal_parent (#35338)
This fixes common crash related to slottables, currently present on wpt.fyi.

Previously, the traversal parent of `Text` nodes was incorrectly
assumed to always be the parent or shadow host. That caused crashes
inside stylo's bloom filter. Now the traversal parent is the slot
that the node is assigned to, if any, and the parent/shadow host otherwise.

The slottable data for Text/Element nodes is now stored in NodeRareData.
This is very cheap, because NodeRareData will already be instantiated
for assigned slottables anyways, because the containing_shadow_root
field will be set (since assigned slottables are always in a shadow
tree). This change is necessary because we need to hand out references
to the assigned slot to stylo and that is not possible to do (without
unsafe code) if we need to downcast the node first.

As a side effect, this reduces the size of `Text` from 256 to 232 bytes,
because the slottable data is no longer stored there.

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
2025-02-07 01:05:27 +00:00
dependabot[bot]
9faa7be302
build(deps): bump phf_generator from 0.11.2 to 0.11.3 (#35336)
Bumps [phf_generator](https://github.com/rust-phf/rust-phf) from 0.11.2 to 0.11.3.
- [Release notes](https://github.com/rust-phf/rust-phf/releases)
- [Changelog](https://github.com/rust-phf/rust-phf/blob/master/RELEASE_PROCESS.md)
- [Commits](https://github.com/rust-phf/rust-phf/compare/phf_generator-v0.11.2...phf_generator-v0.11.3)

---
updated-dependencies:
- dependency-name: phf_generator
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-06 17:32:44 +00:00
dependabot[bot]
6fce350400
build(deps): bump wayland-cursor from 0.31.7 to 0.31.8 (#35335)
Bumps [wayland-cursor](https://github.com/smithay/wayland-rs) from 0.31.7 to 0.31.8.
- [Release notes](https://github.com/smithay/wayland-rs/releases)
- [Changelog](https://github.com/Smithay/wayland-rs/blob/master/historical_changelog.md)
- [Commits](https://github.com/smithay/wayland-rs/commits)

---
updated-dependencies:
- dependency-name: wayland-cursor
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-06 17:32:37 +00:00
dependabot[bot]
a1d061eb56
build(deps): bump aws-lc-sys from 0.25.0 to 0.25.1 (#35333)
Bumps [aws-lc-sys](https://github.com/aws/aws-lc-rs) from 0.25.0 to 0.25.1.
- [Release notes](https://github.com/aws/aws-lc-rs/releases)
- [Commits](https://github.com/aws/aws-lc-rs/compare/aws-lc-sys/v0.25.0...aws-lc-sys/v0.25.1)

---
updated-dependencies:
- dependency-name: aws-lc-sys
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-06 17:25:23 +00:00
dependabot[bot]
341f966c4c
build(deps): bump phf_shared from 0.11.2 to 0.11.3 (#35331)
Bumps [phf_shared](https://github.com/rust-phf/rust-phf) from 0.11.2 to 0.11.3.
- [Release notes](https://github.com/rust-phf/rust-phf/releases)
- [Changelog](https://github.com/rust-phf/rust-phf/blob/master/RELEASE_PROCESS.md)
- [Commits](https://github.com/rust-phf/rust-phf/compare/phf_shared-v0.11.2...phf_shared-v0.11.3)

---
updated-dependencies:
- dependency-name: phf_shared
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-06 17:17:31 +00:00
dependabot[bot]
b9a91c05b0
build(deps): bump winit from 0.30.8 to 0.30.9 (#35332)
Bumps [winit](https://github.com/rust-windowing/winit) from 0.30.8 to 0.30.9.
- [Release notes](https://github.com/rust-windowing/winit/releases)
- [Changelog](https://github.com/rust-windowing/winit/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-windowing/winit/compare/v0.30.8...v0.30.9)

---
updated-dependencies:
- dependency-name: winit
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-06 17:16:15 +00:00
dependabot[bot]
0fbb4992fa
build(deps): bump wayland-protocols from 0.32.5 to 0.32.6 (#35330)
Bumps [wayland-protocols](https://github.com/smithay/wayland-rs) from 0.32.5 to 0.32.6.
- [Release notes](https://github.com/smithay/wayland-rs/releases)
- [Changelog](https://github.com/Smithay/wayland-rs/blob/master/historical_changelog.md)
- [Commits](https://github.com/smithay/wayland-rs/commits)

---
updated-dependencies:
- dependency-name: wayland-protocols
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-06 17:08:46 +00:00
Simon Wülker
0ebdf146fc
Cleanup blocking fetch operations with bad ports (#35324)
Blocking a fetch due to a bad port should be grouped together
with CSP blocks as per the spec, but these steps were previously
seperated.

Additionally, remove handling of ftp in
should_request_be_blocked_due_to_a_bad_port, since it did nothing
anyways.

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
2025-02-06 16:47:29 +00:00
TIN TUN AUNG
18b43d48fc
change terminal wrapper library from blessing to blessed to support running mach test-wpt on windows. (#35327)
Signed-off-by: rayguo17 <rayguo17@gmail.com>
2025-02-06 16:45:34 +00:00
Mukilan Thiyagarajan
e0689c1f0b
Migrate Android and OHOS ports to the delegate API (#35315)
Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
2025-02-06 14:21:29 +00:00
Martin Robinson
e7a6691628
libservo: Enable file directory listing by default (#35317)
This is a useful feature to have in a browser engine, so I think it
should be enabled by default. I believe that the original concern was
that there was a security issue, but this certainly has the same
security concerns as normal file loading.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
2025-02-06 10:05:04 +00:00
Euclid Ye
6a5cb22451
malloc_size_of: enable sync in tokio (#35320)
Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
2025-02-06 09:16:51 +00:00
dependabot[bot]
259549891e
build(deps): bump clap from 4.5.27 to 4.5.28 (#35306)
Bumps [clap](https://github.com/clap-rs/clap) from 4.5.27 to 4.5.28.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.27...clap_complete-v4.5.28)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-06 07:40:06 +00:00
Martin Robinson
5f08e4fa76
servoshell: Port desktop servoshell to use delegate API (#35284)
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Co-authored-by: Delan Azabani <dazabani@igalia.com>
Co-authored-by: Mukilan Thiyagarajan <mukilan@igalia.com>
2025-02-06 07:33:31 +00:00
Josh Matthews
6b12499077
Only compile platform samplers when cargo feature enabled (#35312)
* background_hang_monitor: Only compile platform samplers when cargo feature enabled.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

* background_hang_monitor: Make nix dependency optional.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

---------

Signed-off-by: Josh Matthews <josh@joshmatthews.net>
2025-02-06 06:53:08 +00:00
Euclid Ye
0de6d1bc3a
Update pixels::unmultiply_inplace to support RB swap and use it in canvas_state (#35313)
* update unmultiply_inplace to handle reversed RGB

Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>

* Reuse unmultiply_inplace instead of manual compute; remove unused

Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>

---------

Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
2025-02-06 05:02:49 +00:00
dependabot[bot]
cb7688314b
build(deps): bump string_cache from 0.8.7 to 0.8.8 (#35269)
Bumps [string_cache](https://github.com/servo/string-cache) from 0.8.7 to 0.8.8.
- [Release notes](https://github.com/servo/string-cache/releases)
- [Commits](https://github.com/servo/string-cache/commits)

---
updated-dependencies:
- dependency-name: string_cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Fixes #31516.

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-06 02:00:57 +00:00