Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r174085 - REGRESSION (r168046): Confused column spans when comb…
…ined with dynamic animations https://bugs.webkit.org/show_bug.cgi?id=134048. Reviewed by Dean Jackson. Source/WebCore: Added fast/multicol/multicol-fieldset-span-changes.html * rendering/RenderMultiColumnFlowThread.cpp: (WebCore::RenderMultiColumnFlowThread::processPossibleSpannerDescendant): Refactor handling of insertions into the multicolumn flow thread into a helper function, processPossibleSpannerDescendant. This makes it easier to call the code from more than one place. (WebCore::RenderMultiColumnFlowThread::flowThreadDescendantInserted): Modify the nested columns span shifting code to avoid problems. The new code suppresses notifications and does the move of the spanner back into the original spot *before* removing the placeholder. This ensures that the placeholder parent still exists. The stale placeholder is then removed and destroyed after the spanner has been put back into place. (WebCore::RenderMultiColumnFlowThread::handleSpannerRemoval): (WebCore::RenderMultiColumnFlowThread::flowThreadRelativeWillBeRemoved): Refactor the removal notifications for spanners into a helper function so that it can be called to do cleanup from the code that cleans up stale placeholders on a shift. * rendering/RenderMultiColumnFlowThread.h: Modified to add the new helpers. LayoutTests: * fast/multicol/multicol-fieldset-span-changes-expected.txt: Added. * fast/multicol/multicol-fieldset-span-changes.html: Added. Canonical link: https://commits.webkit.org/154760.60@webkitgtk/2.6 git-svn-id: https://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-2.6@174447 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
c3c05ed
commit 35e9560
Showing
6 changed files
with
178 additions
and
111 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/multicol-fieldset-span-changes-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 @@ | ||
This test passes if it doesn't crash. ': |
20 changes: 20 additions & 0 deletions
20
LayoutTests/fast/multicol/multicol-fieldset-span-changes.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,20 @@ | ||
<p>This test passes if it doesn't crash. '<a id="a"></a>: | ||
<script> | ||
if (window.testRunner) | ||
testRunner.dumpAsText(); | ||
document.getElementById("a").appendChild(document.createElement("fieldset")).setAttribute("style","-webkit-column-span:all;"); | ||
head = document.getElementsByTagName("head")[0]; | ||
var style = document.createElement("style"); | ||
var rule = document.createTextNode(":first-of-type { \n\ | ||
-webkit-animation-name: name1; \n\ | ||
-webkit-animation-duration: 6s; \n\ | ||
} \n\ | ||
@-webkit-keyframes name1 { \n\ | ||
from { \n\ | ||
} \n\ | ||
to { \n\ | ||
-webkit-column-width: auto \n\ | ||
"); | ||
style.appendChild(rule); | ||
head.appendChild(style); | ||
</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