Skip to content
Commit 99545a3d authored by Morten Stenshorne's avatar Morten Stenshorne Committed by Chromium LUCI CQ
Browse files

Must pass the right element to IsContainerForContainerQueries().

During interleaved layout and style recalculation we failed to stop at
the container query container when forcing legacy layout fallback,
because we passed the wrong element to ComputedStyle::
IsContainerForContainerQueries(). The element passed needs to be the one
that has/had/will have the style of |this|.

Went through all the callsites for IsContainerForContainerQueries() to
make sure that it's being used correctly. The one in
ForceLegacyLayoutInFormattingContext() is what caused the problem, but
also found and corrected an additional one.

Bug: 1289718
Change-Id: I2d2e88ad30cf29591f8c57360df88bc0491a491a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3412093


Reviewed-by: default avatarRune Lillesveen <futhark@chromium.org>
Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/main@{#962539}
parent 559725d8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment