Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Recalculate intrinsic widths in the old containing block chain when g…
…oing out of flow Recalculate intrinsic widths in the old containing block chain when going out of flow https://bugs.webkit.org/show_bug.cgi?id=249259 Reviewed by Alan Baradlay. This patch is to align Webkit with Blink / Chromium and Gecko / Firefox. Merge - https://src.chromium.org/viewvc/blink?revision=200836&view=revision When an object goes out of flow, it no longer contributes to the intrinisic widths of its parents. We need to mark them for recalculation while we can still walk that ancestry chain, i.e. before applying the style change. * Source/WebCore/rendering/RenderBox.cpp: (RenderBox::styleWillChange): Add logic for recalculation * LayoutTests/fast/block/positioning/static-to-abpos-parent-is-stf.html: Add Test Case * LayoutTests/fast/block/positioning/static-to-abpos-parent-is-stf-expected.html: Add Test Case Expectation Canonical link: https://commits.webkit.org/257980@main
- Loading branch information