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

This commit is contained in:
Xidorn Quan 2015-03-31 16:30:29 +11:00
parent c33ccaefb0
commit 50431936c7
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;
}