Closed Bug 1862520 Opened 1 year ago Closed 1 year ago

[wpt-sync] Sync PR 42901 - [sticky] Don't invalidate sticky constraints that don't exist yet.

Categories

(Core :: Layout: Positioned, task, P4)

task

Tracking

()

RESOLVED FIXED
121 Branch
Tracking Status
firefox121 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Ian Kilpatrick <ikilpatrick@chromium.org> wrote:

[sticky] Don't invalidate sticky constraints that don't exist yet.

InvalidatePaintForStickyDescendants may be call in the middle of
layout when we delay scroll offset clamping (scroll offsets will get
set in the middle of layout).

The layout-box will be layout-clean - however the sticky descdendants
might not have any sticky-pos constraints yet.

Check if we have been enqueued for a sticky update, and skip the
paint invalidation step (it'll happen later when we regenerate the
sticky constraints).

Bug: 1498297, 1498401
Change-Id: I7f0f4cd86203b845cd37a015cb7bd485773494f6

Reviewed-on: https://chromium-review.googlesource.com/4997393
WPT-Export-Revision: e0783687f202c3be01f7590dd2d0300e43197c78

Component: web-platform-tests → Layout: Positioned
Product: Testing → Core
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/102b46841917 [wpt PR 42901] - [sticky] Don't invalidate sticky constraints that don't exist yet., a=testonly
Test result changes from PR not available.
Test result changes from PR not available.
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2423fddcf4f4 [wpt PR 42901] - [sticky] Don't invalidate sticky constraints that don't exist yet., a=testonly
Test result changes from PR not available.
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
You need to log in before you can comment on or make changes to this bug.