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
This commit is contained in:
Martin Robinson 2023-11-29 10:03:24 +01:00 committed by GitHub
parent bab2b58216
commit a05598402e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
37 changed files with 248 additions and 1206 deletions

View file

@ -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,
},
}