Files
firefox/testing/web-platform/tests/css/css-contain/crashtests
Ian Kilpatrick 4a5e0ee9ef Bug 1842313 [wpt PR 40931] - [layout] Fix relayout boundary logic., a=testonly
Automatic update from web-platform-tests
[layout] Fix relayout boundary logic.

<div id="a">
  <div id="b">
    <div id="inner"></div>
  </div>
</div>

Where "a" and "b" are potential relayout boundary targets.

Previously it was possible to have the following invalidation logic:
1. "inner" changes - and invalidates layout up to "b".
2. "b" gets added as a relayout boundary.
3. "b" changes its *own* style - and invalidates layout up to "a".
   (note this may disqualify "b" as a relayout boundary).
4. Layout starts at "b" but potentially with the wrong constraints.
5. Layout starts at "a", but doesn't revisit "b" as it is layout clean.

This caused various types of DCHECKs and potentially incorrect layouts.

This patch ensures that we don't relayout as a root if we are marked as
needing layout by our *own* style.

Fixed: 1462742
Fixed: 1454351
Change-Id: I0ff0818ac85844acf5f6ec88ad73db83147ee01e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4671128
Reviewed-by: David Grogan <[email protected]>
Commit-Queue: Ian Kilpatrick <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1167704}

--

wpt-commits: 0273b727967d5eab46a6fabc6bd77f87c09a10a5
wpt-pr: 40931
2023-07-20 10:30:44 +00:00
..