diff options
author | Martin Robinson <mrobinson@igalia.com> | 2023-11-29 10:03:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-29 09:03:24 +0000 |
commit | a05598402e8b21948e1ee9567dca76a491bd266e (patch) | |
tree | a74aca7e7862100030ce94f34d448087329eaa1a /components/shared/script_layout/message.rs | |
parent | bab2b58216f8845b3ecc8e0eaeba3b7175034f64 (diff) | |
download | servo-a05598402e8b21948e1ee9567dca76a491bd266e.tar.gz servo-a05598402e8b21948e1ee9567dca76a491bd266e.zip |
Add initial support for sticky positioning for non-legacy layout (#30686)
* Add initial support for sticky positioning for non-legacy layout
Many tests still fail for a variety of reasons. One of the primary ones
is that CSSOM currently does not return correct values for elements
positioned by sticky nodes. This requires changes to WebRender to work
properly.
* Fix an assertion failure in the legacy layout sticky code
Diffstat (limited to 'components/shared/script_layout/message.rs')
-rw-r--r-- | components/shared/script_layout/message.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/components/shared/script_layout/message.rs b/components/shared/script_layout/message.rs index 01c5d58e659..a83557757a4 100644 --- a/components/shared/script_layout/message.rs +++ b/components/shared/script_layout/message.rs @@ -136,18 +136,18 @@ impl ReflowGoal { match *self { ReflowGoal::Full | ReflowGoal::TickAnimations | ReflowGoal::UpdateScrollNode(_) => true, ReflowGoal::LayoutQuery(ref querymsg, _) => match *querymsg { - QueryMsg::NodesFromPointQuery(..) | - QueryMsg::TextIndexQuery(..) | + QueryMsg::ElementInnerTextQuery(_) | QueryMsg::InnerWindowDimensionsQuery(_) | - QueryMsg::ElementInnerTextQuery(_) => true, + QueryMsg::NodesFromPointQuery(..) | + QueryMsg::ResolvedStyleQuery(..) | + QueryMsg::TextIndexQuery(..) => true, + QueryMsg::ClientRectQuery(_) | QueryMsg::ContentBoxQuery(_) | QueryMsg::ContentBoxesQuery(_) | - QueryMsg::ClientRectQuery(_) | - QueryMsg::ScrollingAreaQuery(_) | QueryMsg::NodeScrollIdQuery(_) | - QueryMsg::ResolvedStyleQuery(..) | - QueryMsg::ResolvedFontStyleQuery(..) | QueryMsg::OffsetParentQuery(_) | + QueryMsg::ResolvedFontStyleQuery(..) | + QueryMsg::ScrollingAreaQuery(_) | QueryMsg::StyleQuery => false, }, } |