aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* build(deps): bump once_cell from 1.20.2 to 1.20.3 (#35373)dependabot[bot]2025-02-071-2/+2
| | | | | | | | | | | | | | | 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>
* build(deps): bump wayland-protocols-wlr from 0.3.5 to 0.3.6 (#35375)dependabot[bot]2025-02-071-2/+2
| | | | | | | | | | | | | | | | 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>
* build(deps): bump webrender_api from `9f552be` to `8846253` (#35376)dependabot[bot]2025-02-070-0/+0
| | | | | | | | | | | | | | Bumps [webrender_api](https://github.com/servo/webrender) from `9f552be` to `8846253`. - [Release notes](https://github.com/servo/webrender/releases) - [Commits](https://github.com/servo/webrender/compare/9f552bebab81a73e62068c42d94be2f9c0586ce4...88462530746749163bcf1dc89be20a19f2394e71) --- 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>
* build(deps): bump webrender from `9f552be` to `8846253` (#35374)dependabot[bot]2025-02-070-0/+0
| | | | | | | | | | | | | | Bumps [webrender](https://github.com/servo/webrender) from `9f552be` to `8846253`. - [Release notes](https://github.com/servo/webrender/releases) - [Commits](https://github.com/servo/webrender/compare/9f552bebab81a73e62068c42d94be2f9c0586ce4...88462530746749163bcf1dc89be20a19f2394e71) --- 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>
* build(deps): bump wayland-protocols-plasma from 0.3.5 to 0.3.6 (#35372)dependabot[bot]2025-02-071-8/+8
| | | | | | | | | | | | | | | | 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>
* build(deps): bump wr_malloc_size_of from `9f552be` to `8846253` (#35371)dependabot[bot]2025-02-071-9/+9
| | | | | | | | | | | | | | Bumps [wr_malloc_size_of](https://github.com/servo/webrender) from `9f552be` to `8846253`. - [Release notes](https://github.com/servo/webrender/releases) - [Commits](https://github.com/servo/webrender/compare/9f552bebab81a73e62068c42d94be2f9c0586ce4...88462530746749163bcf1dc89be20a19f2394e71) --- 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>
* Modify the checks for upgrade-request algorithm (#35357)Shubham Gupta2025-02-072-9/+4
| | | Signed-off-by: Shubham Gupta <shubham13297@gmail.com>
* script: make throw_invalid_this and throw_constructor_without_new safe (#35360)Stephen Muss2025-02-073-14/+15
| | | Signed-off-by: Stephen Muss <stephenmuss@gmail.com>
* deps: Upgrade to `webrender@0.66` (#35325)Martin Robinson2025-02-0732-76/+72
| | | | | | | | | 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: https://github.com/servo/webrender/commit/9f552bebab81a73e62068c42d94be2f9c0586ce4 Signed-off-by: Martin Robinson <mrobinson@igalia.com>
* Enable surfman's sm-x11 feature for webrender_traits (#35362)Oriol Brufau2025-02-071-1/+1
| | | | | This fixes errors when running `./mach clippy -r -p webrender_traits`. Signed-off-by: Oriol Brufau <obrufau@igalia.com>
* libservo: Add a `ClipboardDelegate` and a default implementation (#35297)Martin Robinson2025-02-0720-127/+212
| | | | | | | | | | | | | | | | | 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>
* fix: bring back connection method to fix WebGL texture error (#35358)Ngo Iok Ui (Wu Yu Wei)2025-02-073-1/+15
| | | | | | | | | | | | | * 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>
* Add support for the `::slotted` selector (#35352)Simon Wülker2025-02-077-148/+20
| | | | | | | | | | | | | * 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>
* wini_minimal: trigger initial rendering and scroll properly (#35350)webbeef2025-02-071-3/+17
| | | Signed-off-by: webbeef <me@webbeef.org>
* script: Annotate steps for custom element creation. (#35354)Josh Matthews2025-02-072-43/+82
| | | Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* servoshell: upgrade egui and related depenencies (#35353)Mukilan Thiyagarajan2025-02-075-117/+143
| | | | | | 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>
* Enable aws-lc-sys feature for aws-lc-rs (#35343)Oriol Brufau2025-02-071-1/+1
| | | | | This fixes an error when running `./mach clippy -r -p script`. Signed-off-by: Oriol Brufau <obrufau@igalia.com>
* Implement ServoLayoutNode::traversal_parent (#35338)Simon Wülker2025-02-079-167/+77
| | | | | | | | | | | | | | | | | | | | | 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>
* build(deps): bump phf_generator from 0.11.2 to 0.11.3 (#35336)dependabot[bot]2025-02-061-2/+2
| | | | | | | | | | | | | | | | 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>
* build(deps): bump wayland-cursor from 0.31.7 to 0.31.8 (#35335)dependabot[bot]2025-02-061-2/+2
| | | | | | | | | | | | | | | | 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>
* build(deps): bump aws-lc-sys from 0.25.0 to 0.25.1 (#35333)dependabot[bot]2025-02-061-2/+2
| | | | | | | | | | | | | | | 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>
* build(deps): bump phf_shared from 0.11.2 to 0.11.3 (#35331)dependabot[bot]2025-02-061-4/+4
| | | | | | | | | | | | | | | | 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>
* build(deps): bump winit from 0.30.8 to 0.30.9 (#35332)dependabot[bot]2025-02-062-5/+5
| | | | | | | | | | | | | | | | 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>
* build(deps): bump wayland-protocols from 0.32.5 to 0.32.6 (#35330)dependabot[bot]2025-02-061-8/+8
| | | | | | | | | | | | | | | | 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>
* Cleanup blocking fetch operations with bad ports (#35324)Simon Wülker2025-02-062-43/+22
| | | | | | | | | | | 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>
* change terminal wrapper library from blessing to blessed to support running ↵TIN TUN AUNG2025-02-064-9/+9
| | | | | mach test-wpt on windows. (#35327) Signed-off-by: rayguo17 <rayguo17@gmail.com>
* Migrate Android and OHOS ports to the delegate API (#35315)Mukilan Thiyagarajan2025-02-069-784/+794
| | | | Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* libservo: Enable file directory listing by default (#35317)Martin Robinson2025-02-061-1/+1
| | | | | | | | 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>
* malloc_size_of: enable sync in tokio (#35320)Euclid Ye2025-02-061-1/+1
| | | Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
* build(deps): bump clap from 4.5.27 to 4.5.28 (#35306)dependabot[bot]2025-02-061-2/+2
| | | | | | | | | | | | | | | | 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>
* servoshell: Port desktop servoshell to use delegate API (#35284)Martin Robinson2025-02-0615-1257/+1108
| | | | | Signed-off-by: Martin Robinson <mrobinson@igalia.com> Co-authored-by: Delan Azabani <dazabani@igalia.com> Co-authored-by: Mukilan Thiyagarajan <mukilan@igalia.com>
* Only compile platform samplers when cargo feature enabled (#35312)Josh Matthews2025-02-062-4/+5
| | | | | | | | | | | | | * 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>
* Update `pixels::unmultiply_inplace` to support RB swap and use it in ↵Euclid Ye2025-02-066-4116/+13
| | | | | | | | | | | | | | | 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>
* build(deps): bump string_cache from 0.8.7 to 0.8.8 (#35269)dependabot[bot]2025-02-062-38/+14
| | | | | | | | | | | | | | | | | 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>
* build(deps): bump markup5ever from 0.14.0 to 0.14.1 (#35302)dependabot[bot]2025-02-061-2/+2
| | | | | | | | | | | | | | Bumps [markup5ever](https://github.com/servo/html5ever) from 0.14.0 to 0.14.1. - [Commits](https://github.com/servo/html5ever/compare/xml5ever-v0.14.0...html5ever-v0.14.1) --- updated-dependencies: - dependency-name: markup5ever 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>
* Add border radius to overflow scrollable frame (#35293)batu_hoang2025-02-055-16/+38
| | | Signed-off-by: longvatrong111 <longvatrong111@gmail.com>
* webxr: Rename sender & receiver type aliases to `WebXrSender` and ↵Martin Robinson2025-02-059-70/+77
| | | | | | | | `WebXrReceiver` (#35307) This will prevent rust-analyzer from suggesting the import of these types when dealing with `crossbeam` channels. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
* layout: Simplify `Table::compute_inline_content_sizes` (#35290)Oriol Brufau2025-02-051-23/+10
| | | Signed-off-by: Oriol Brufau <obrufau@igalia.com>
* build(deps): bump derive_more from 0.99.18 to 0.99.19 (#35305)dependabot[bot]2025-02-051-2/+2
| | | | | | | | | | | | | | | | Bumps [derive_more](https://github.com/JelteF/derive_more) from 0.99.18 to 0.99.19. - [Release notes](https://github.com/JelteF/derive_more/releases) - [Changelog](https://github.com/JelteF/derive_more/blob/master/CHANGELOG.md) - [Commits](https://github.com/JelteF/derive_more/compare/v0.99.18...v0.99.19) --- updated-dependencies: - dependency-name: derive_more 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>
* build(deps): bump wayland-client from 0.31.7 to 0.31.8 (#35304)dependabot[bot]2025-02-051-10/+10
| | | | | | | | | | | | | | | | Bumps [wayland-client](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-client 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>
* build(deps): bump winnow from 0.7.0 to 0.7.1 (#35300)dependabot[bot]2025-02-051-2/+2
| | | | | | | | | | | | | | | Bumps [winnow](https://github.com/winnow-rs/winnow) from 0.7.0 to 0.7.1. - [Changelog](https://github.com/winnow-rs/winnow/blob/main/CHANGELOG.md) - [Commits](https://github.com/winnow-rs/winnow/compare/v0.7.0...v0.7.1) --- updated-dependencies: - dependency-name: winnow 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>
* build(deps): bump cc from 1.2.11 to 1.2.12 (#35299)dependabot[bot]2025-02-051-2/+2
| | | | | | | | | | | | | | | | Bumps [cc](https://github.com/rust-lang/cc-rs) from 1.2.11 to 1.2.12. - [Release notes](https://github.com/rust-lang/cc-rs/releases) - [Changelog](https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md) - [Commits](https://github.com/rust-lang/cc-rs/compare/cc-v1.2.11...cc-v1.2.12) --- updated-dependencies: - dependency-name: cc 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>
* Inform the devtools about shadow roots on a node (#35294)Simon Wülker2025-02-055-37/+110
| | | Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
* Make generated proxy handlers and DOM object hooks generic (#35292)Josh Matthews2025-02-057-46/+72
| | | | | | | | | | | | | * script: Make DOM proxy handlers generic over DOM types. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Make finalize and trace hooks generic over DOM types. Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* Add support for Upgrade request to a potentially trustworthy URL. (#34986)Shubham Gupta2025-02-0557-346/+264
| | | | | | | | | | | | | | | | * Add support for Upgrade request to a potentially trustworthy URL. Signed-off-by: Shubham Gupta <shubham13297@gmail.com> * script: Support inheritable insecure request policy in documents and workers. Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: Shubham Gupta <shubham13297@gmail.com> Signed-off-by: Josh Matthews <josh@joshmatthews.net> Co-authored-by: Shubham Gupta <shubham.gupta@chromium.org> Co-authored-by: Josh Matthews <josh@joshmatthews.net>
* Don't require index parameter in `CSSGroupingRule`'s `insertRule()` (#35295)Oriol Brufau2025-02-053-8/+1
| | | | | | Make it optional, defaulting to 0 if omitted, as defined in the spec: https://drafts.csswg.org/cssom/#ref-for-dom-cssgroupingrule-insertrule Signed-off-by: Oriol Brufau <obrufau@igalia.com>
* Simplify `RenderingContext` trait methods (#35251)Ngo Iok Ui (Wu Yu Wei)2025-02-0510-230/+176
| | | | | | | | | | | | | | | | | | There are a few methods are still difficult to implement without the help of surfman. To simplify the trait methods, all methods that return surfman types are removed. They are either handled by embedders themselves or abstract to simpler types that servo components need. The most noticeable changes are: - Methods related to native surface are moved to servo_glue. The embedder should decide when to remove/replace the surface and it's outside of servo's scope. - Methods required by servo media now return exact media types for it. The other major change is sevevral difficult trait methods that are reuiqred by WebGL and Servo media have default implementation. So they can be optional for users to implement. Signed-off-by: Wu Wayne <yuweiwu@pm.me>
* libservo: Add WebViewDelegate and ServoDelegate and port `winit_minimal` ↵Delan Azabani2025-02-0510-197/+1004
| | | | | | | | | | | | | | | | | | | | | | | | (#35196) This change adds the second major part of the new API: delegates which have methods called by the Servo loop. When a delegate is set on a `WebView` or on `Servo` itself, the event loop will call into appropriate delegate methods. Applications can implement the delegate on their own structs to add special behavior per-`WebView` or for all `WebView`s. In addition, each delegate has a default implementation, which automatically exposes "reasonable" behavior such as by-default allowing navigation. There's a lot more work to do here, such as refining the delegate methods so that they all have nice interfaces, particulary with regard to delegate methods that need an asynchronous response. This will be handed gradually as we keep working on the API. Signed-off-by: Delan Azabani <dazabani@igalia.com> Signed-off-by: Martin Robinson <mrobinson@igalia.com> Co-authored-by: Martin Robinson <mrobinson@igalia.com> Co-authored-by: Mukilan Thiyagarajan <mukilan@igalia.com>
* script: delay Mutation initialization (#35291)Euclid Ye2025-02-055-23/+31
| | | Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
* Use surfman with glow bindings (#34328)Samson2025-02-0513-97/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use glowing surfman Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> * Port https://github.com/servo/webxr/pull/255 Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> * fixups rebase Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> * fmt Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> * Update surfman Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> * Fix stale TODO Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> --------- Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>