Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick 259548.74@safari-7615-branch (25cddfa). rdar://107499427
Fix layout for positioned children for RenderMathMLUnderOver rdar://105071050 Reviewed by Alan Baradlay. Before this change, the layout method in RenderMathMLUnderOver (<mover>) never added positioned elements to the map for their container, which meant if the positioned children are dirty, their layout will never be triggered. This change fixes that by looking at direct children of RenderMathMLUnderOver and adding them to their container's positioned elements map, so that their layout happens as expected. * LayoutTests/mathml/mathml-mover-layout-crash-expected.txt: Added. * LayoutTests/mathml/mathml-mover-layout-crash.html: Added. * Source/WebCore/rendering/mathml/RenderMathMLUnderOver.cpp: (WebCore::RenderMathMLUnderOver::layoutBlock): * LayoutTests/platform/glib/imported/w3c/web-platform-tests/mathml/relations/html5-tree/dynamic-childlist-002-expected.txt: * LayoutTests/platform/mac-wk2/TestExpectations: Canonical link: https://commits.webkit.org/259548.74@safari-7615-branch Canonical link: https://commits.webkit.org/262472@main
- Loading branch information
1 parent
4b57654
commit c839c78
Showing
4 changed files
with
31 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
PASS if no crash. |
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,22 @@ | ||
<style> | ||
.mtableStyleClass { list-style: url('foo') inside; position: absolute; } | ||
</style> | ||
<script> | ||
function test() { | ||
if (window.testRunner) | ||
testRunner.dumpAsText(); | ||
mtrID.replaceWith("foo"); | ||
document.body.offsetTop; | ||
document.body.innerHTML = 'PASS if no crash.'; | ||
} | ||
</script> | ||
|
||
<body onload=test()> | ||
<math display="inline"> | ||
<mover> | ||
<mtable class="mtableStyleClass"> | ||
<mtr id="mtrID"></mtr> | ||
</mtable> | ||
</mover> | ||
</math> | ||
</body> |
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