Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r222008 - Switch multicolumn's spanner map from raw over to wea…
…k pointers. https://bugs.webkit.org/show_bug.cgi?id=176367 <rdar://problem/34254896> Reviewed by Antti Koivisto. Source/WebCore: Test: fast/multicol/spanner-crash-when-adding-summary.html * rendering/RenderMultiColumnFlowThread.cpp: (WebCore::RenderMultiColumnFlowThread::evacuateAndDestroy): (WebCore::RenderMultiColumnFlowThread::flowThreadDescendantInserted): (WebCore::RenderMultiColumnFlowThread::handleSpannerRemoval): * rendering/RenderMultiColumnFlowThread.h: * rendering/RenderMultiColumnSet.cpp: (WebCore::RenderMultiColumnSet::firstRendererInFlowThread const): (WebCore::RenderMultiColumnSet::lastRendererInFlowThread const): * rendering/RenderMultiColumnSpannerPlaceholder.cpp: (WebCore::RenderMultiColumnSpannerPlaceholder::RenderMultiColumnSpannerPlaceholder): * rendering/RenderMultiColumnSpannerPlaceholder.h: LayoutTests: * fast/multicol/spanner-crash-when-adding-summary-expected.txt: Added. * fast/multicol/spanner-crash-when-adding-summary.html: Added.
- Loading branch information
1 parent
74b89ab
commit fa51f6b
Showing
9 changed files
with
80 additions
and
12 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
LayoutTests/fast/multicol/spanner-crash-when-adding-summary-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. |
25 changes: 25 additions & 0 deletions
25
LayoutTests/fast/multicol/spanner-crash-when-adding-summary.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,25 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<style> | ||
div { | ||
column-count: 2; | ||
} | ||
details { | ||
border-image: url(#foo); | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div><details><summary style="column-span: all"></summary></details></div> | ||
PASS if no crash. | ||
<script> | ||
if (window.testRunner) | ||
testRunner.dumpAsText(); | ||
r = document.caretRangeFromPoint(0, 0); | ||
r.insertNode(document.createElement("summary")); | ||
document.body.offsetHeight; | ||
document.getElementsByTagName("summary")[1].remove(); | ||
</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
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
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