mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 876074: Soften flexbox assertion about out-of-order children, since it's not dangerous and it can be triggered by unrelated-to-flexbox tree mutations. r=bz
This commit is contained in:
parent
3f37ee7897
commit
47db2ab059
17
layout/generic/crashtests/876074-1.html
Normal file
17
layout/generic/crashtests/876074-1.html
Normal file
@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<script>
|
||||
|
||||
function boom()
|
||||
{
|
||||
document.getElementById("c").style.content = "'x'";
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body style="display: inline-flex;" onload="boom();"><div></div><div style="display: table-caption;"></div><canvas id="c"></canvas></body>
|
||||
|
||||
</html>
|
@ -496,3 +496,4 @@ test-pref(layout.css.flexbox.enabled,true) load 854263-1.html
|
||||
test-pref(layout.css.flexbox.enabled,true) load 862947-1.html
|
||||
needs-focus pref(accessibility.browsewithcaret,true) load 868906.html
|
||||
test-pref(layout.css.flexbox.enabled,true) load 866547-1.html
|
||||
asserts(1-4) test-pref(layout.css.flexbox.enabled,true) load 876074-1.html # bug 876749
|
||||
|
@ -1138,8 +1138,9 @@ nsFlexContainerFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
||||
const nsRect& aDirtyRect,
|
||||
const nsDisplayListSet& aLists)
|
||||
{
|
||||
MOZ_ASSERT(nsLayoutUtils::IsFrameListSorted<IsOrderLEQWithDOMFallback>(mFrames),
|
||||
"Frame list should've been sorted in reflow");
|
||||
NS_ASSERTION(
|
||||
nsLayoutUtils::IsFrameListSorted<IsOrderLEQWithDOMFallback>(mFrames),
|
||||
"Child frames aren't sorted correctly");
|
||||
|
||||
DisplayBorderBackgroundOutline(aBuilder, aLists);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user