Bug 1283721 - Use block-size rather than height for computing float available space. r?jfkthame draft
authorXidorn Quan <me@upsuper.org>
Thu, 07 Jul 2016 16:48:21 +1000
changeset 384825 2147837b8eb5263e57f431236442448f3a9d1d4d
parent 384709 fe36cec7e13d45330cb6c3a8118cb557df7e21b7
child 524798 f310cd0a5b9d5321d308c08b57777340178e53d4
push id22373
push userxquan@mozilla.com
push dateThu, 07 Jul 2016 09:37:05 +0000
reviewersjfkthame
bugs1283721
milestone50.0a1
Bug 1283721 - Use block-size rather than height for computing float available space. r?jfkthame MozReview-Commit-ID: HyGmoYJDOkd
layout/generic/nsBlockFrame.cpp
--- a/layout/generic/nsBlockFrame.cpp
+++ b/layout/generic/nsBlockFrame.cpp
@@ -3399,17 +3399,17 @@ nsBlockFrame::ReflowBlockFrame(nsBlockRe
       // reflow again.
       if (!replacedBlock) {
         break;
       }
 
       LogicalRect oldFloatAvailableSpaceRect(floatAvailableSpace.mRect);
       floatAvailableSpace = aState.GetFloatAvailableSpaceForBSize(
                               aState.mBCoord + bStartMargin,
-                              brc.GetMetrics().Height(),
+                              brc.GetMetrics().BSize(wm),
                               &floatManagerState);
       NS_ASSERTION(floatAvailableSpace.mRect.BStart(wm) ==
                      oldFloatAvailableSpaceRect.BStart(wm),
                    "yikes");
       // Restore the height to the position of the next band.
       floatAvailableSpace.mRect.BSize(wm) =
         oldFloatAvailableSpaceRect.BSize(wm);
       // Determine whether the available space shrunk on either side,