Bug 1313083 - Fix REALLY_NOISY_REFLOW line layout debug flag. draft
authorJeremy Chen <jeremychen@mozilla.com>
Wed, 26 Oct 2016 23:15:36 +0800
changeset 429817 5fb7c9bb5ca9ffbb306dc67300d060bebbf8ce1a
parent 429816 bdc06298044eda33d2580e07b809c00269cdcc3d
child 429818 5aa7ac320d6a9c7e2a2de54dadcd8dab3fc3122b
push id33664
push userjichen@mozilla.com
push dateWed, 26 Oct 2016 15:16:12 +0000
bugs1313083, 789096
milestone52.0a1
Bug 1313083 - Fix REALLY_NOISY_REFLOW line layout debug flag. We might miss this while introducing writing-mode APIs to nsLineLayout in Bug 789096. MozReview-Commit-ID: IrW8fEXbM2s
layout/generic/nsLineLayout.cpp
--- a/layout/generic/nsLineLayout.cpp
+++ b/layout/generic/nsLineLayout.cpp
@@ -299,18 +299,18 @@ nsLineLayout::UpdateBand(WritingMode aWM
 {
   WritingMode lineWM = mRootSpan->mWritingMode;
   // need to convert to our writing mode, because we might have a different
   // mode from the caller due to dir: auto
   LogicalRect availSpace = aNewAvailSpace.ConvertTo(lineWM, aWM,
                                                     ContainerSize());
 #ifdef REALLY_NOISY_REFLOW
   printf("nsLL::UpdateBand %d, %d, %d, %d, (converted to %d, %d, %d, %d); frame=%p\n  will set mImpacted to true\n",
-         aNewAvailSpace.x, aNewAvailSpace.y,
-         aNewAvailSpace.width, aNewAvailSpace.height,
+         aNewAvailSpace.IStart(aWM), aNewAvailSpace.BStart(aWM),
+         aNewAvailSpace.ISize(aWM), aNewAvailSpace.BSize(aWM),
          availSpace.IStart(lineWM), availSpace.BStart(lineWM),
          availSpace.ISize(lineWM), availSpace.BSize(lineWM),
          aFloatFrame);
 #endif
 #ifdef DEBUG
   if ((availSpace.ISize(lineWM) != NS_UNCONSTRAINEDSIZE) &&
       CRAZY_SIZE(availSpace.ISize(lineWM)) &&
       !LineContainerFrame()->GetParent()->IsCrazySizeAssertSuppressed()) {