servo/components/shared/compositing
Martin Robinson 3774ef00d4
script: Get scroll offsets from layout (#37509)
No longer store scroll offsets for elements in the DOM. Instead
consistently get and set these in layout's `ScrollTree`. This more
consistently requires layout to run when querying scroll offsets, which
ensures that they are up-to-date and properly bounded by scrollable
overflow area.

Testing: This causes several WPT tests to start passing, and one to
start
failing. In the case of
`/shadow-dom/scroll-to-the-fragment-in-shadow-tree.html`, I believe the
issue
is that we don't properly handle scrolling and shadow DOM elements.
Before, the
faulty scrolling was hiding this issue.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
2025-06-20 09:39:12 +00:00
..
tests compositor: Do not allow script to scroll beyond node boundaries (#37412) 2025-06-12 17:32:50 +00:00
Cargo.toml compositor: Do not allow script to scroll beyond node boundaries (#37412) 2025-06-12 17:32:50 +00:00
display_list.rs script: Get scroll offsets from layout (#37509) 2025-06-20 09:39:12 +00:00
lib.rs compositor: Wait for both Script and the Constellation when shutting down Pipelines (#37505) 2025-06-17 09:56:31 +00:00
rendering_context.rs compositing: Combine webrender_traits and compositing_traits (#36372) 2025-04-06 17:34:18 +00:00
viewport_description.rs Add support for parsing and applying viewport <meta> (#35901) 2025-06-06 15:13:51 +00:00