From 6ea8e51aaa192d920ffd6b8a7d4cc4e998d7222a Mon Sep 17 00:00:00 2001 From: Mats Palmgren Date: Fri, 29 Nov 2019 10:48:50 +0100 Subject: Remove unnecessary calls to ReparentFloatsForInlineChild in nsInlineFrame. --- layout/generic/BlockReflowInput.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'layout/generic/BlockReflowInput.cpp') 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 -- cgit v1.2.3