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:Rune Lillesveen <futhark@chromium.org> Commit-Queue: Morten Stenshorne <mstensho@chromium.org> Cr-Commit-Position: refs/heads/main@{#962539}
Loading
Please register or sign in to comment