Bug 1146103 followup - Add comment mentions upgrading warning and add crashtest for the assertion.

--HG--
extra : source : 0323205d9d9a6fa58bedb6f8f922fd200b9b392d
This commit is contained in:
Xidorn Quan 2015-03-31 16:30:29 +11:00
parent 7ee8cc4465
commit b54fc57dba
3 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,6 @@
<!DOCTYPE html>
<html>
<body>
<div style="display: ruby-text; margin: -47891343%"></div>
</body>
</html>

View File

@ -579,5 +579,6 @@ 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
load 1146103.html
load 1146107.html
load 1146114.html

View File

@ -150,6 +150,7 @@ nsRubyTextContainerFrame::Reflow(nsPresContext* aPresContext,
LogicalSize size(lineWM, mISize, 0);
if (!mFrames.IsEmpty()) {
if (MOZ_UNLIKELY(minBCoord > maxBCoord)) {
// XXX When bug 765861 gets fixed, this warning should be upgraded.
NS_WARNING("bad block coord");
minBCoord = maxBCoord = 0;
}