Bug 1146107 - Replace MOZ_ASSERT with NS_WARN_IF_FALSE on isize check in ruby base container. r=dholbert
This commit is contained in:
6
layout/generic/crashtests/1146107.html
Normal file
6
layout/generic/crashtests/1146107.html
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<body>
|
||||||
|
<div style="display: ruby-base; margin: -47891343%"></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -579,4 +579,5 @@ asserts(3-7) load 1137723-2.html # bug 1019192, bug 1138133
|
|||||||
asserts(0-3) load 1134667.html
|
asserts(0-3) load 1134667.html
|
||||||
asserts(0-3) load 1134667.html
|
asserts(0-3) load 1134667.html
|
||||||
asserts(0-3) load 1134667.html
|
asserts(0-3) load 1134667.html
|
||||||
|
load 1146107.html
|
||||||
load 1146114.html
|
load 1146114.html
|
||||||
|
|||||||
@@ -518,8 +518,9 @@ nsRubyBaseContainerFrame::Reflow(nsPresContext* aPresContext,
|
|||||||
// When there are no frames inside the ruby base container, EndSpan
|
// When there are no frames inside the ruby base container, EndSpan
|
||||||
// will return 0. However, in this case, the actual width of the
|
// will return 0. However, in this case, the actual width of the
|
||||||
// container could be non-zero because of non-empty ruby annotations.
|
// container could be non-zero because of non-empty ruby annotations.
|
||||||
MOZ_ASSERT(NS_INLINE_IS_BREAK(aStatus) ||
|
// XXX When bug 765861 gets fixed, this warning should be upgraded.
|
||||||
isize == lineSpanSize || mFrames.IsEmpty());
|
NS_WARN_IF_FALSE(NS_INLINE_IS_BREAK(aStatus) ||
|
||||||
|
isize == lineSpanSize || mFrames.IsEmpty(), "bad isize");
|
||||||
|
|
||||||
// If there exists any span, the columns must either be completely
|
// If there exists any span, the columns must either be completely
|
||||||
// reflowed, or be not reflowed at all.
|
// reflowed, or be not reflowed at all.
|
||||||
|
|||||||
Reference in New Issue
Block a user