summaryrefslogtreecommitdiffstats
path: root/layout/generic/BlockReflowInput.cpp
diff options
context:
space:
mode:
authorMats Palmgren <mats@mozilla.com>2019-11-29 10:48:50 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-11-29 10:48:50 +0100
commit6ea8e51aaa192d920ffd6b8a7d4cc4e998d7222a (patch)
treec1eb96e91f59a8bbf8afe08c085829411b1f254c /layout/generic/BlockReflowInput.cpp
parent013ef52eddc20d97d821195de85b4de27877dc58 (diff)
downloadUXP-6ea8e51aaa192d920ffd6b8a7d4cc4e998d7222a.tar
UXP-6ea8e51aaa192d920ffd6b8a7d4cc4e998d7222a.tar.gz
UXP-6ea8e51aaa192d920ffd6b8a7d4cc4e998d7222a.tar.lz
UXP-6ea8e51aaa192d920ffd6b8a7d4cc4e998d7222a.tar.xz
UXP-6ea8e51aaa192d920ffd6b8a7d4cc4e998d7222a.zip
Remove unnecessary calls to ReparentFloatsForInlineChild in
nsInlineFrame.
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