aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_traits
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2023-04-25 08:29:09 +0200
committerMartin Robinson <mrobinson@igalia.com>2023-04-25 21:25:00 +0200
commit3ab5e2a188a2e6e892367dfbcd4880bd9aadeab8 (patch)
tree41e7c3af2ec5467bf2432fd03dca2e65c0c99ebf /components/script_traits
parent2ae158dec19d735ee1ffc6a4e7aab495b0d96dc1 (diff)
downloadservo-3ab5e2a188a2e6e892367dfbcd4880bd9aadeab8.tar.gz
servo-3ab5e2a188a2e6e892367dfbcd4880bd9aadeab8.zip
Scroll from script should trigger a reflow
Scrolling from script should flow layout and send a display list to WebRender. This allows all of the scroll nodes to exist in WebRender before asking it to move the node. See https://gist.github.com/paulirish/5d52fb081b3570c81e3a. Fixes #29659.
Diffstat (limited to 'components/script_traits')
-rw-r--r--components/script_traits/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs
index 168b910b3c2..14144d8880b 100644
--- a/components/script_traits/lib.rs
+++ b/components/script_traits/lib.rs
@@ -791,7 +791,7 @@ bitflags! {
}
/// The scroll state of a stacking context.
-#[derive(Clone, Copy, Debug, Deserialize, Serialize)]
+#[derive(Clone, Copy, Debug, Deserialize, PartialEq, Serialize)]
pub struct ScrollState {
/// The ID of the scroll root.
pub scroll_id: ExternalScrollId,