Closed Bug 1686578 Opened 5 years ago Closed 2 years ago

[wpt-sync] Sync PR 27172 - [Not for formal review] Update cull rect before paint (behind runtime flag)

Categories

(Core :: Layout: Scrolling and Overflow, task, P4)

task

Tracking

()

RESOLVED INVALID

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 27172 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/27172
Details from upstream follow.

b'Xianzhu Wang <wangxianzhu@chromium.org>' wrote:

[Not for formal review] Update cull rect before paint (behind runtime flag)

This is mainly for CompositeAfterPaint to fix the issue of always
repainting on scroll. By updating cull rect before paint, we know which
layer will change cull rect and needs repaint.

This will also simplify interest rect and cull rect calculation and
repaint on their change in pre-CompositeAfterPaint. It will unify
composited layer interest rect calculation and LayoutObject cull rect
calculation, and avoid whole subtree repaint on clip change.

Bug: 1046544
Change-Id: I7f830016293af6ce93f0bcd14ac309efeb9f7068

Reviewed-on: https://chromium-review.googlesource.com/2615578
WPT-Export-Revision: 54762edd77ef53499864cdace9b0256260fe07e9

Component: web-platform-tests → Layout: Scrolling and Overflow
Product: Testing → Core
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.