diff options
author | Martin Robinson <mrobinson@igalia.com> | 2025-04-23 11:14:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-23 09:14:15 +0000 |
commit | e9e103b46c95cbf17ce38f6df28409ff7c982660 (patch) | |
tree | d52e96f432c935e8229becae175962e825fd7d78 /components/script_bindings/webidls/XRViewerPose.webidl | |
parent | 554fa26da2c08810d93747eba19cad61509ab187 (diff) | |
download | servo-main.tar.gz servo-main.zip |
When doing any kind of query, up until now, containing block rectangles
were calculated by walking the `FragmentTree` until the node being
queried was found. In order to make possible answering queries without
walking the `FragmentTree`, `Fragment`s need to cache their cumulative
containing block rectangles.
This change adds a new `FragmentTree` pass (during construction) that
takes care of calculating and caching these values. The new cached value
is used during resolved style queries and also scrolling area queries
(with the idea that all queries will eventually use them).
In addition, extra `FragmentTree` walks used for cancelling animations
for elements no longer in the `FragmentTree` are integrated into this
new traversal.
Testing: Covered by existing WPT tests.
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Co-authored-by: Oriol Brufau <obrufau@igalia.com>
Diffstat (limited to 'components/script_bindings/webidls/XRViewerPose.webidl')
0 files changed, 0 insertions, 0 deletions