diff options
author | Martin Robinson <mrobinson@igalia.com> | 2024-03-13 10:17:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-13 09:17:09 +0000 |
commit | 716f4a006d3e2c3d920eea82caf82521d4e7f86c (patch) | |
tree | 08531efcb7eca0da4a4f792e41d59b3bf4123279 /components/layout_2020/fragment_tree/fragment_tree.rs | |
parent | 03d64d0675d4d1878232829293e7fdacaec5844e (diff) | |
download | servo-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.rs | 5 |
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 { |