-
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.
Invalidate existing inline layout content when simplified out-of-flow…
… is sufficient https://bugs.webkit.org/show_bug.cgi?id=267487 rdar://120496542 Reviewed by Antti Koivisto. Do not leave stale inline content around. * LayoutTests/fast/inline/dynamic-inline-content-with-out-of-flow-child-expected.txt: Added. * LayoutTests/fast/inline/dynamic-inline-content-with-out-of-flow-child.html: Added. * Source/WebCore/rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::layoutModernLines): Originally-landed-as: 272448.102@safari-7618-branch (6d2f579). rdar://124556312 Canonical link: https://commits.webkit.org/276105@main
- Loading branch information
1 parent
ceb7e89
commit ffe58e2
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
LayoutTests/fast/inline/dynamic-inline-content-with-out-of-flow-child-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,2 @@ | ||
|
||
PASS if no crash or assert |
19 changes: 19 additions & 0 deletions
19
LayoutTests/fast/inline/dynamic-inline-content-with-out-of-flow-child.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,19 @@ | ||
<style> | ||
img { | ||
position: absolute; | ||
} | ||
</style> | ||
<div><img id=img></div> | ||
<div id=move_here>remove</div> | ||
<div id=result></div> | ||
<script> | ||
if (window.testRunner) | ||
testRunner.dumpAsText(); | ||
document.execCommand("selectAll", false); | ||
let selection = document.getSelection(); | ||
move_here.appendChild(img); | ||
document.body.offsetHeight; | ||
selection.deleteFromDocument(); | ||
document.body.offsetHeight; | ||
result.innerText = "PASS if no crash or assert"; | ||
</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