-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IFC][Partial layout] ASSERT_NOT_REACHED in handleEnterExitBidiContex…
…t with inconsistent InlineBoxStart/End pairs https://bugs.webkit.org/show_bug.cgi?id=271428 <rdar://125202336> Reviewed by Antti Koivisto. Partial layout triggered by pagination may initiate incremental inline item (re)building on non-yet-supported content. Let's just do full rebuild for now. * LayoutTests/fast/text/partial-layout-with-pagination-and-widow-expected.txt: Added. * LayoutTests/fast/text/partial-layout-with-pagination-and-widow.html: Added. * Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.cpp: (WebCore::Layout::InlineFormattingContext::rebuildInlineItemListIfNeeded): Canonical link: https://commits.webkit.org/276625@main
- Loading branch information
1 parent
e6adb32
commit 5ce30e7
Showing
3 changed files
with
58 additions
and
2 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
LayoutTests/fast/text/partial-layout-with-pagination-and-widow-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
|
||
PASS if no crash. | ||
|
||
|
||
|
||
|
35 changes: 35 additions & 0 deletions
35
LayoutTests/fast/text/partial-layout-with-pagination-and-widow.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<style> | ||
#container { | ||
text-indent: 200px each-line; | ||
white-space: pre; | ||
widows: 1; | ||
} | ||
|
||
.writing-mode { | ||
height: 102px; | ||
writing-mode: tb-rl; | ||
} | ||
|
||
*:nth-last-child(1) { | ||
-webkit-column-span: all; | ||
} | ||
|
||
*:read-only { | ||
-webkit-user-modify: read-write; | ||
padding: 10px; | ||
column-width: 100px; | ||
} | ||
</style> | ||
<span id=container><b class=writing-mode dir="auto"> | ||
<span style="unicode-bidi: isolate"> | ||
PASS if no crash. | ||
</span> | ||
</b> | ||
<span></span> | ||
<script> | ||
if (window.testRunner) | ||
testRunner.dumpAsText(); | ||
document.dir = "rtl"; | ||
window.getSelection().selectAllChildren(container); | ||
document.execCommand("justifyLeft", false, null); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters