Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
ASSERTION FAILED: !newRelayoutRoot.container() || !newRelayoutRoot.co…
…ntainer()->needsLayout() in WebCore::FrameView::scheduleRelayoutOfSubtree https://bugs.webkit.org/show_bug.cgi?id=151605#c1 Reviewed by David Hyatt. Do not let RenderMultiColumnSet/RenderFlowThread mark ancestors dirty while updating scrollbars for overflow content. While updating scrollbars, we only layout descendants so marking parents dirty is unnecessary and could lead to an invalid dirty state. Source/WebCore: Test: fast/multicol/body-stuck-with-dirty-bit-with-columns.html * rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::layoutSpecialExcludedChild): * rendering/RenderFlowThread.cpp: (WebCore::RenderFlowThread::invalidateRegions): * rendering/RenderFlowThread.h: * rendering/RenderMultiColumnSet.cpp: (WebCore::RenderMultiColumnSet::prepareForLayout): LayoutTests: * fast/multicol/body-stuck-with-dirty-bit-with-columns-expected.txt: Added. * fast/multicol/body-stuck-with-dirty-bit-with-columns.html: Added. Canonical link: https://commits.webkit.org/171192@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@195069 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
80 additions
and 5 deletions.
- +14 −0 LayoutTests/ChangeLog
- +1 −0 LayoutTests/fast/multicol/body-stuck-with-dirty-bit-with-columns-expected.txt
- +39 −0 LayoutTests/fast/multicol/body-stuck-with-dirty-bit-with-columns.html
- +21 −0 Source/WebCore/ChangeLog
- +1 −1 Source/WebCore/rendering/RenderBlockFlow.cpp
- +2 −2 Source/WebCore/rendering/RenderFlowThread.cpp
- +1 −1 Source/WebCore/rendering/RenderFlowThread.h
- +1 −1 Source/WebCore/rendering/RenderMultiColumnSet.cpp
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
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
@@ -0,0 +1 @@ | ||
|
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
@@ -0,0 +1,39 @@ | ||
<title>This tests that we don't leave any renderer dirty when layout is done. PASS if no crash or assert in debug.</title> | ||
<style> | ||
*{ | ||
-webkit-columns: 55px 87; | ||
overflow-y: scroll; | ||
-webkit-background-composite: source-out; | ||
width: 0%; | ||
} | ||
*|* { | ||
display: inline-flex; | ||
} | ||
</style> | ||
<summary id="id_0"> | ||
aa | ||
<progress></progress> | ||
</summary> | ||
<script> | ||
if (window.testRunner) | ||
testRunner.waitUntilDone(); | ||
|
||
setTimeout(function() { | ||
if (window.localStorage.stage == 3) { | ||
delete window.localStorage.stage; | ||
if (window.testRunner) { | ||
testRunner.dumpAsText(); | ||
testRunner.notifyDone(); | ||
} | ||
} else { | ||
if (window.localStorage.stage) | ||
window.localStorage.stage++; | ||
else | ||
window.localStorage.stage = 1; | ||
window.scrollTo(0,document.body.scrollHeight); | ||
v_0 = document.getElementById('id_0'); | ||
v_0.removeChild(v_0.childNodes[0]); | ||
location.reload(); | ||
} | ||
}, 0); | ||
</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
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