Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ca04468e9d7160d8fbc0d50879d984d2052abd02
      
https://github.com/WebKit/WebKit/commit/ca04468e9d7160d8fbc0d50879d984d2052abd02
  Author: Ahmad Saleem <ahmad.saleem792+git...@gmail.com>
  Date:   2022-12-16 (Fri, 16 Dec 2022)

  Changed paths:
    A 
LayoutTests/fast/block/positioning/static-to-abspos-parent-is-stf-expected.txt
    A LayoutTests/fast/block/positioning/static-to-abspos-parent-is-stf.html
    M Source/WebCore/rendering/RenderBox.cpp

  Log Message:
  -----------
  Recalculate intrinsic widths in the old containing block chain when going 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


_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to