aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_bindings/webidls/XRFrame.webidl
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2025-04-23 11:14:15 +0200
committerGitHub <noreply@github.com>2025-04-23 09:14:15 +0000
commite9e103b46c95cbf17ce38f6df28409ff7c982660 (patch)
treed52e96f432c935e8229becae175962e825fd7d78 /components/script_bindings/webidls/XRFrame.webidl
parent554fa26da2c08810d93747eba19cad61509ab187 (diff)
downloadservo-main.tar.gz
servo-main.zip
layout: Add a new `FragmentTree` pass to calculate containing block rectangles (#36629)HEADmain
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/XRFrame.webidl')
0 files changed, 0 insertions, 0 deletions