Bug 1539017 - Update the parent for the outside ::marker frame in case we moved it to a ColumnSetWrapperFrame ancestor. r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D25313
This commit is contained in:
Mats Palmgren
2019-03-28 23:38:03 +01:00
parent 73099e4414
commit 28bd6cb7d2
3 changed files with 17 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
<style>
* {
column-width: 0em;
filter: drop-shadow(1px 0px 0px blue);
}
</style>
<script>
function go() {
a.style.cssFloat = "right"
document.bgColor = "-"
}
</script>
<body onload=go()>
<ol id="a">
<li>

View File

@@ -562,3 +562,4 @@ load 1511563.html
pref(layout.css.column-span.enabled,true) load 1524382.html pref(layout.css.column-span.enabled,true) load 1524382.html
pref(layout.css.column-span.enabled,true) load 1533885.html pref(layout.css.column-span.enabled,true) load 1533885.html
pref(layout.css.column-span.enabled,true) load 1534146.html pref(layout.css.column-span.enabled,true) load 1534146.html
pref(layout.css.column-span.enabled,true) load 1539017.html

View File

@@ -9815,6 +9815,7 @@ void nsCSSFrameConstructor::ProcessChildren(
listItem = do_QueryFrame(grandParent); listItem = do_QueryFrame(grandParent);
MOZ_ASSERT(listItem, "ColumnSetWrapperFrame is expected to be " MOZ_ASSERT(listItem, "ColumnSetWrapperFrame is expected to be "
"a nsBlockFrame subclass"); "a nsBlockFrame subclass");
childFrame->SetParent(listItem);
} }
} }
listItem->SetMarkerFrameForListItem(childFrame); listItem->SetMarkerFrameForListItem(childFrame);