Bug 1275831 - part1: fix NOISY_FLOAT block layout debug flag. r=dholbert
authorJeremy Chen <jeremychen@mozilla.com>
Fri, 27 May 2016 16:06:27 +0800
changeset 372099 2f504de936e78b736b52cff7f860305f82531ba4
parent 372098 0fa7d5fb96afee035e4fe0cfa27692c9c7d344a2
child 372100 ce387c631efabbf7fcae3dab65b8e389b180b2ae
push id19437
push userdburns@mozilla.com
push dateFri, 27 May 2016 11:32:28 +0000
reviewersdholbert
bugs1275831
milestone49.0a1
Bug 1275831 - part1: fix NOISY_FLOAT block layout debug flag. r=dholbert MozReview-Commit-ID: AOgV0TK6uyj
layout/generic/nsBlockFrame.cpp
--- a/layout/generic/nsBlockFrame.cpp
+++ b/layout/generic/nsBlockFrame.cpp
@@ -6134,18 +6134,18 @@ nsBlockFrame::ReflowFloat(nsBlockReflowS
                   "aFloat must be an out-of-flow frame");
   // Reflow the float.
   aReflowStatus = NS_FRAME_COMPLETE;
 
   WritingMode wm = aState.mReflowState.GetWritingMode();
 #ifdef NOISY_FLOAT
   printf("Reflow Float %p in parent %p, availSpace(%d,%d,%d,%d)\n",
          aFloat, this,
-         aFloatAvailableSpace.IStart(wm), aFloatAvailableSpace.BStart(wm),
-         aFloatAvailableSpace.ISize(wm), aFloatAvailableSpace.BSize(wm)
+         aAdjustedAvailableSpace.IStart(wm), aAdjustedAvailableSpace.BStart(wm),
+         aAdjustedAvailableSpace.ISize(wm), aAdjustedAvailableSpace.BSize(wm)
   );
 #endif
 
   nsHTMLReflowState
     floatRS(aState.mPresContext, aState.mReflowState, aFloat,
             aAdjustedAvailableSpace.Size(wm).ConvertTo(aFloat->GetWritingMode(),
                                                        wm));