mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-25 20:01:50 +00:00
Bug 798020: Reduce severity of fatal assert about unconstrained-width flexbox, since gigantic widths in web content can reach our "unconstrained" sentinel value, and it's not actually dangerous. r=dbaron
This commit is contained in:
parent
0e5afd7a1f
commit
bb021b1e90
4
layout/generic/crashtests/798020-1.html
Normal file
4
layout/generic/crashtests/798020-1.html
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<body style="letter-spacing: 693626589697em;"><div style="display: inline-flex;">data</div></body>
|
||||||
|
</html>
|
@ -393,3 +393,4 @@ test-pref(layout.css.flexbox.enabled,true) load 737313-2.html
|
|||||||
test-pref(layout.css.flexbox.enabled,true) load 737313-3.html
|
test-pref(layout.css.flexbox.enabled,true) load 737313-3.html
|
||||||
load 762764-1.html
|
load 762764-1.html
|
||||||
load 786740-1.html
|
load 786740-1.html
|
||||||
|
asserts(8) test-pref(layout.css.flexbox.enabled,true) load 798020-1.html
|
||||||
|
@ -1790,9 +1790,9 @@ nsFlexContainerFrame::ComputeFlexContainerMainSize(
|
|||||||
return mainSize;
|
return mainSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
MOZ_ASSERT(!IsAxisHorizontal(aAxisTracker.GetMainAxis()),
|
NS_WARN_IF_FALSE(!IsAxisHorizontal(aAxisTracker.GetMainAxis()),
|
||||||
"Computed width should always be constrained, so horizontal "
|
"Computed width should always be constrained, so horizontal "
|
||||||
"flex containers should always have a constrained main-size");
|
"flex containers should have a constrained main-size");
|
||||||
|
|
||||||
// Otherwise, use the sum of our items' hypothetical main sizes, clamped
|
// Otherwise, use the sum of our items' hypothetical main sizes, clamped
|
||||||
// to our computed min/max main-size properties.
|
// to our computed min/max main-size properties.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user