-
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.
Cherry-pick 272448.28@safari-7618-branch (2658caa). https://bugs.webk…
…it.org/show_bug.cgi?id=267268 [IFC] Do not treat out-of-flow line break as text content https://bugs.webkit.org/show_bug.cgi?id=267268 rdar://120662940 Reviewed by Antti Koivisto. Out-of-flow line break is not eligible for simplified (text-only) line building. * LayoutTests/fast/text/out-of-flow-line-break-crash-expected.txt: Added. * LayoutTests/fast/text/out-of-flow-line-break-crash.html: Added. * Source/WebCore/layout/formattingContexts/inline/InlineItemsBuilder.cpp: (WebCore::Layout::isTextOrLineBreak): * Source/WebCore/layout/formattingContexts/inline/TextOnlySimpleLineBuilder.cpp: (WebCore::Layout::TextOnlySimpleLineBuilder::placeNonWrappingInlineTextContent): Canonical link: https://commits.webkit.org/272448.28@safari-7618-branch Canonical link: https://commits.webkit.org/274313.58@webkitglib/2.44
- Loading branch information
1 parent
2b28f8e
commit dafa1ea
Showing
4 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
LayoutTests/fast/text/out-of-flow-line-break-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,4 @@ | ||
PASS if no crash or assert. | ||
|
||
|
||
text |
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,24 @@ | ||
<style> | ||
br, span, pre, a { | ||
position: absolute; | ||
} | ||
</style> | ||
PASS if no crash or assert. | ||
<div id=container> | ||
<meter id=meter> | ||
<textarea id=textarea>foobar</textarea> | ||
</div> | ||
<meter id=mm></meter> | ||
<pre contenteditable="true"> | ||
<embed id=embed><span></span> | ||
</pre> | ||
<script> | ||
if (window.testRunner) | ||
testRunner.dumpAsText(); | ||
embed.appendChild(meter); | ||
textarea.setSelectionRange(1,0,"text"); | ||
container.appendChild(meter); | ||
document.execCommand("selectAll", false); | ||
document.execCommand("createLink", false, "#link"); | ||
document.execCommand("insertText", false, "text"); | ||
</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