aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_2020/fragment_tree/fragment_tree.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2024-03-13 10:17:09 +0100
committerGitHub <noreply@github.com>2024-03-13 09:17:09 +0000
commit716f4a006d3e2c3d920eea82caf82521d4e7f86c (patch)
tree08531efcb7eca0da4a4f792e41d59b3bf4123279 /components/layout_2020/fragment_tree/fragment_tree.rs
parent03d64d0675d4d1878232829293e7fdacaec5844e (diff)
downloadservo-716f4a006d3e2c3d920eea82caf82521d4e7f86c.tar.gz
servo-716f4a006d3e2c3d920eea82caf82521d4e7f86c.zip
layout: Propagate overflow values from `<body>` to root element (#31618)
The specification gives instructions for how these values should be propagated. The other big changs here is that they aren't applied to the `<body>`. Co-authored-by: Oriol Brufau <obrufau@igalia.com>
Diffstat (limited to 'components/layout_2020/fragment_tree/fragment_tree.rs')
-rw-r--r--components/layout_2020/fragment_tree/fragment_tree.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/components/layout_2020/fragment_tree/fragment_tree.rs b/components/layout_2020/fragment_tree/fragment_tree.rs
index 4bce1e9b125..21e4911fe63 100644
--- a/components/layout_2020/fragment_tree/fragment_tree.rs
+++ b/components/layout_2020/fragment_tree/fragment_tree.rs
@@ -10,7 +10,7 @@ use serde::Serialize;
use style::animation::AnimationSetKey;
use style::dom::OpaqueNode;
use style::values::computed::Length;
-use webrender_api::units;
+use webrender_api::{units, ScrollSensitivity};
use super::{ContainingBlockManager, Fragment, Tag};
use crate::cell::ArcRefCell;
@@ -40,6 +40,9 @@ pub struct FragmentTree {
/// <https://drafts.csswg.org/css-backgrounds/#special-backgrounds>
#[serde(skip)]
pub(crate) canvas_background: CanvasBackground,
+
+ /// Whether or not the root element is sensitive to scroll input events.
+ pub root_scroll_sensitivity: ScrollSensitivity,
}
impl FragmentTree {