Closed Bug 1780320 Opened 2 years ago Closed 2 years ago

Support child scroll roots if in the root coordinate system

Categories

(Core :: Graphics: WebRender, task)

task

Tracking

()

RESOLVED FIXED
104 Branch
Tracking Status
firefox104 --- fixed

People

(Reporter: gw, Assigned: gw)

References

Details

Attachments

(1 file)

No description provided.
Blocks: 1779085

A requirement of calling get_relative_transform is that the child
node is an ancestor of the reference node. To ensure this invariant
is met, we exclude non-ancestor scroll roots from consideration when
picking a scroll root for an atomic picture cache slice. However, this
can mean we select a non-optimal scroll root in some cases. But the
get_relative_transform constraint only applies if the spatial nodes
are in a different coordinate system - if we know that the scroll roots
are in the same coordinate system, we can always calculate the correct
relative transform, regardless of ancestry of the nodes. We can rely on
this to relax the condition here, which means we select a more appropriate
scroll root, resulting in much less invalidation and rasterization work
in these cases.

Assignee: nobody → gwatson
Status: NEW → ASSIGNED
Pushed by gwatson@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d6c85070b665
Support child scroll roots if in the root coordinate system r=gfx-reviewers,lsalzman
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
Regressions: 1780567
Regressions: 1780877
Blocks: 1782590
Regressions: 1789208
Regressions: 1800358
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: