summaryrefslogtreecommitdiffstats
path: root/layout/generic/BlockReflowInput.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'layout/generic/BlockReflowInput.cpp')
-rw-r--r--layout/generic/BlockReflowInput.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/layout/generic/BlockReflowInput.cpp b/layout/generic/BlockReflowInput.cpp
index 10084fd8b..86248ac14 100644
--- a/layout/generic/BlockReflowInput.cpp
+++ b/layout/generic/BlockReflowInput.cpp
@@ -716,6 +716,8 @@ FloatMarginISize(const ReflowInput& aCBReflowInput,
bool
BlockReflowInput::FlowAndPlaceFloat(nsIFrame* aFloat)
{
+ MOZ_ASSERT(aFloat->GetParent() == mBlock);
+
WritingMode wm = mReflowInput.GetWritingMode();
// Save away the Y coordinate before placing the float. We will
// restore mBCoord at the end after placing the float. This is