Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r182051 - Inline continuation code should not take anonymous co…
…ntaining wrapper granted. https://bugs.webkit.org/show_bug.cgi?id=133312 Reviewed by Dave Hyatt. It's wrong to assume that when RenderInline is part of an inline continuation, its containing block is an anonymous wrapper and its sibling might be a block level renderer. When the inline continuation is no longer needed, for example when the block level renderer that initiated the continuation is detached from the render tree, the inline renderes still continue to form continuation.(however they no longer require anonymous wrappers) Source/WebCore: Test: fast/inline/crash-when-position-property-is-changed-and-no-longer-in-continuation.html * rendering/RenderInline.cpp: (WebCore::updateStyleOfAnonymousBlockContinuations): (WebCore::RenderInline::styleDidChange): LayoutTests: * fast/inline/crash-when-position-property-is-changed-and-no-longer-in-continuation-expected.txt: Added. * fast/inline/crash-when-position-property-is-changed-and-no-longer-in-continuation.html: Added.
- Loading branch information
1 parent
c799bcc
commit 1a5d2ac
Showing
5 changed files
with
83 additions
and
17 deletions.
There are no files selected for viewing
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
1 change: 1 addition & 0 deletions
1
...inline/crash-when-position-property-is-changed-and-no-longer-in-continuation-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 @@ | ||
PASS if no crash or assert in debug. |
28 changes: 28 additions & 0 deletions
28
...ts/fast/inline/crash-when-position-property-is-changed-and-no-longer-in-continuation.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,28 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>This tests that position property can be changed on a inline element once it is not part of an active continuation.</title> | ||
</head> | ||
<body> | ||
PASS if no crash or assert in debug. | ||
<div style="position: absolute"> | ||
<span id=foo> | ||
<div id=removethis></div> | ||
</span> | ||
</div> | ||
<span></span> | ||
<script> | ||
if (window.testRunner) { | ||
testRunner.dumpAsText(); | ||
testRunner.waitUntilDone(); | ||
} | ||
setTimeout(function() { | ||
var blockToRemove = document.getElementById("removethis"); | ||
blockToRemove.parentNode.removeChild(blockToRemove); | ||
document.getElementById("foo").style.position="relative"; | ||
if (window.testRunner) | ||
testRunner.notifyDone(); | ||
}, 0); | ||
</script> | ||
</body> | ||
</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
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