diff options
author | Martin Robinson <mrobinson@igalia.com> | 2025-03-21 13:09:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-21 12:09:01 +0000 |
commit | 1f232eb17c031fe18035a17249de99b2af6fa53e (patch) | |
tree | 0f243d640ca8e9ac2c571457c6b14a0958fb8987 /components/script/dom/window.rs | |
parent | ec20d9a3d7633ef1a4b25c991ff00bb0bb1cd295 (diff) | |
download | servo-1f232eb17c031fe18035a17249de99b2af6fa53e.tar.gz servo-1f232eb17c031fe18035a17249de99b2af6fa53e.zip |
constellation: Proxy `ScrollState` through the `Constellation` (#36062)
This will allow removing the dependency of the compositor on
`script_traits`, which should make our internal dependency chain a lot
easier to deal with.
Part of #35984.
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Diffstat (limited to 'components/script/dom/window.rs')
-rw-r--r-- | components/script/dom/window.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs index aac4c7d3a73..8f39a0bfe9b 100644 --- a/components/script/dom/window.rs +++ b/components/script/dom/window.rs @@ -61,8 +61,7 @@ use script_layout_interface::{ }; use script_traits::{ DocumentState, LoadData, LoadOrigin, NavigationHistoryBehavior, ScriptMsg, ScriptThreadMessage, - ScriptToConstellationChan, ScrollState, StructuredSerializedData, WindowSizeData, - WindowSizeType, + ScriptToConstellationChan, StructuredSerializedData, WindowSizeData, WindowSizeType, }; use selectors::attr::CaseSensitivity; use servo_arc::Arc as ServoArc; @@ -84,7 +83,7 @@ use stylo_atoms::Atom; use url::Position; use webrender_api::units::{DevicePixel, LayoutPixel}; use webrender_api::{DocumentId, ExternalScrollId}; -use webrender_traits::CrossProcessCompositorApi; +use webrender_traits::{CrossProcessCompositorApi, ScrollState}; use super::bindings::codegen::Bindings::MessagePortBinding::StructuredSerializeOptions; use super::bindings::trace::HashMapTracedValues; |