Closed Bug 1610269 Opened 4 years ago Closed 4 years ago

[wpt-sync] Sync PR 21259 - [LayoutNG] Remove IsIntermediateLayout flag.

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
mozilla74
Tracking Status
firefox74 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Ian Kilpatrick <ikilpatrick@chromium.org> wrote:

[LayoutNG] Remove IsIntermediateLayout flag.

Previously if we synthesized the min/max sizes by performing a layout
on the orthogonal subtree - we could end up in a situation where the
"DCHECK(!constraint_space.IsIntermediateLayout() || box_->NeedsLayout())"
was hit.

This was caused by a legacy layout fieldset needing a preferred widths
recalc.

This is an indirect fix for the below DCHECK bug. Removing the
IsIntermediateLayout flags means that we now perform a copy back when
we are in this (relatively rare) phase.

The IsIntermediateLayout was initially introduced as a performance
optimization - however it could also hurt performance if we perform
a correct layout of a subtree with a fixed size.
(we'd need to layout that sub-tree twice, getting exactly the same
layout result).

Bug: 1039241
Change-Id: I468a9c8e26b5e7855a72ddb2b1f2614538cedd21

Reviewed-on: https://chromium-review.googlesource.com/2007422
WPT-Export-Revision: 8d80a7002f00c7fd65b1aeee7047346c75cb4e61

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4740263d1dc2
[wpt PR 21259] - [LayoutNG] Remove IsIntermediateLayout flag., a=testonly
Test result changes from PR not available.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla74
You need to log in before you can comment on or make changes to this bug.