Bug
1717057 [wpt PR 29418] - Fix RecalcLayoutOverflow() for multicol in LayoutNGBlockFragmentation, a=testonly
Automatic update from web-platform-tests
Fix RecalcLayoutOverflow() for multicol in LayoutNGBlockFragmentation
The fragmentainer in multicol is still using a legacy layout object.
When we reach the fragment of the column, we get
a LayoutMultiColumnFlowThread legacy object,
and we call LayoutBlock::RecalcLayoutOverflow().
That means that we start to use the legacy layout code
to recalc the layout overflow.
To fix this this patch is skipping the fragmentainers
in RecalcChildLayoutOverflow(), and going to the children directly.
The fragmentainers have the positioned objects as children,
so we process them properly.
The patch also uses AllowPostLayoutScope to avoid DCHECK failures,
as all the recalc layout overflow code uses PostLayout.
This only fixes the scrollable-overflow-transform-dynamic-008.html test
when LayoutNGBlockFragmentation is enabled.
Only the first test case pass, due to an invalidation issue related to
multicol and positioned elements (see crbug.com/
1223220).
BUG=
1221181,
1223220
TEST=external/wpt/css/css-multicol/multicol-overflow-positioned-transform-001.html
TEST=external/wpt/css/css-multicol/multicol-overflow-transform-001.html
Change-Id: I8ecda520551f2c3e832f2e77cdedcb1fc17fe99f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/
2968984
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Reviewed-by: Alison Maher <almaher@microsoft.com>
Commit-Queue: Manuel Rego <rego@igalia.com>
Cr-Commit-Position: refs/heads/master@{#897304}
--
wpt-commits:
616577e3962171d2ffe41472e13f6353e6ea43ef
wpt-pr: 29418