diff --git a/layout/generic/nsFloatManager.cpp b/layout/generic/nsFloatManager.cpp index 08ecadb542a1..1bebe7f45995 100644 --- a/layout/generic/nsFloatManager.cpp +++ b/layout/generic/nsFloatManager.cpp @@ -6,12 +6,14 @@ /* class that manages rules for positioning floats */ #include "nsFloatManager.h" -#include "nsIPresShell.h" -#include "nsMemory.h" + +#include + #include "mozilla/ReflowInput.h" #include "nsBlockDebugFlags.h" #include "nsError.h" -#include +#include "nsIPresShell.h" +#include "nsMemory.h" using namespace mozilla; @@ -468,7 +470,7 @@ nsFloatManager::List(FILE* out) const for (uint32_t i = 0; i < mFloats.Length(); ++i) { const FloatInfo &fi = mFloats[i]; - fprintf_stderr(out, "Float %u: frame=%p rect={%d,%d,%d,%d} ymost={l:%d, r:%d}\n", + fprintf_stderr(out, "Float %u: frame=%p rect={%d,%d,%d,%d} BEnd={l:%d, r:%d}\n", i, static_cast(fi.mFrame), fi.LineLeft(), fi.BStart(), fi.ISize(), fi.BSize(), fi.mLeftBEnd, fi.mRightBEnd); @@ -555,7 +557,7 @@ nsFloatManager::FloatInfo::~FloatInfo() nsAutoFloatManager::~nsAutoFloatManager() { - // Restore the old float manager in the reflow state if necessary. + // Restore the old float manager in the reflow input if necessary. if (mNew) { #ifdef NOISY_FLOATMANAGER printf("restoring old float manager %p\n", mOld); @@ -565,8 +567,8 @@ nsAutoFloatManager::~nsAutoFloatManager() #ifdef NOISY_FLOATMANAGER if (mOld) { - static_cast(mReflowInput.frame)->ListTag(stdout); - printf(": space-manager %p after reflow\n", mOld); + mReflowInput.mFrame->ListTag(stdout); + printf(": float manager %p after reflow\n", mOld); mOld->List(stdout); } #endif @@ -579,7 +581,7 @@ nsresult nsAutoFloatManager::CreateFloatManager(nsPresContext *aPresContext) { // Create a new float manager and install it in the reflow - // state. `Remember' the old float manager so we can restore it + // input. `Remember' the old float manager so we can restore it // later. mNew = new nsFloatManager(aPresContext->PresShell(), mReflowInput.GetWritingMode()); @@ -591,7 +593,7 @@ nsAutoFloatManager::CreateFloatManager(nsPresContext *aPresContext) mNew, mReflowInput.mFloatManager); #endif - // Set the float manager in the existing reflow state + // Set the float manager in the existing reflow input. mOld = mReflowInput.mFloatManager; mReflowInput.mFloatManager = mNew; return NS_OK; diff --git a/layout/generic/nsFloatManager.h b/layout/generic/nsFloatManager.h index 7c3e067da25f..d1fae3f9f5c1 100644 --- a/layout/generic/nsFloatManager.h +++ b/layout/generic/nsFloatManager.h @@ -370,7 +370,7 @@ private: /** * A helper class to manage maintenance of the float manager during * nsBlockFrame::Reflow. It automatically restores the old float - * manager in the reflow state when the object goes out of scope. + * manager in the reflow input when the object goes out of scope. */ class nsAutoFloatManager { using ReflowInput = mozilla::ReflowInput; @@ -386,7 +386,7 @@ public: /** * Create a new float manager for the specified frame. This will * `remember' the old float manager, and install the new float - * manager in the reflow state. + * manager in the reflow input. */ nsresult CreateFloatManager(nsPresContext *aPresContext);