From 211e40a866ddb4cbb80042cbd1d090e8fbd74e5b Mon Sep 17 00:00:00 2001 From: Koji Ishii Date: Thu, 9 Jul 2020 14:12:22 +0000 Subject: [PATCH] Bug 1650620 [wpt PR 24444] - [FragmentItem] Fix DirtyLinesFromNeedsLayout, a=testonly Automatic update from web-platform-tests [FragmentItem] Fix DirtyLinesFromNeedsLayout This patch fixes a case where |DirtyLinesFromNeedsLayout| fails to mark items dirty for reusing cached lines. When searching for |LayoutObject| needing layout, checking |NormalChildNeedsLayout| and |PosChildNeedsLayout| were not enough. In some specific cases, only |NeedsSimplifiedNormalFlowLayout| was set for the parent inline box. This patch changes the condition to check descendants to |NeedsLayout|. Bug: 1101883 Change-Id: Ia73ace058c9ea1ebaaffdaff793b56d68099cd5c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2281781 Reviewed-by: Yoshifumi Inoue Reviewed-by: Kent Tamura Commit-Queue: Koji Ishii Cr-Commit-Position: refs/heads/master@{#785287} -- wpt-commits: aef9da08fe2fa0b9fa473e2e126cb3cf29fae43e wpt-pr: 24444 --- .../abspos-change-in-inline-block.html | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 testing/web-platform/tests/css/CSS2/positioning/abspos-change-in-inline-block.html diff --git a/testing/web-platform/tests/css/CSS2/positioning/abspos-change-in-inline-block.html b/testing/web-platform/tests/css/CSS2/positioning/abspos-change-in-inline-block.html new file mode 100644 index 000000000000..88422950ce5e --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/positioning/abspos-change-in-inline-block.html @@ -0,0 +1,36 @@ + +Chaning positioned objects in inline-block should not crash + + + + + + +
+ + + + + + 1234 +
+ +