-
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] Do not try to measure text content across InlineItems
https://bugs.webkit.org/show_bug.cgi?id=260935 <rdar://114696241> Reviewed by Antti Koivisto. This happens when ubidi_getLogicalRun makes us split inside a cluster (bug?) producing multiple InlineItems. (simplifiedMinimumInstrinsicWidthBreak extra check is added to mirror what we already do at the slow codepath) * LayoutTests/fast/text/complex-text-with-bidi-boundary-crash-expected.txt: Added. * LayoutTests/fast/text/complex-text-with-bidi-boundary-crash.html: Added. * Source/WebCore/layout/formattingContexts/inline/InlineContentBreaker.cpp: (WebCore::Layout::InlineContentBreaker::simplifiedMinimumInstrinsicWidthBreak const): * Source/WebCore/layout/formattingContexts/inline/text/TextUtil.cpp: (WebCore::Layout::TextUtil::firstUserPerceivedCharacterLength): Canonical link: https://commits.webkit.org/267495@main
- Loading branch information
1 parent
734bc0c
commit 1a2b1a5
Showing
4 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
LayoutTests/fast/text/complex-text-with-bidi-boundary-crash-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 @@ | ||
𐠀 |
14 changes: 14 additions & 0 deletions
14
LayoutTests/fast/text/complex-text-with-bidi-boundary-crash.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,14 @@ | ||
<style> | ||
div { | ||
float: left; | ||
word-break: break-word; | ||
} | ||
</style> | ||
<!-- PASS if no crash or assert --> | ||
<div id=container></div> | ||
<script> | ||
if (window.testRunner) | ||
testRunner.dumpAsText(); | ||
document.body.offsetHeight; | ||
container.append('\u0890\ud802\udc00'); | ||
</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
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