From b4783231a09eefba22026cfa37bdc6f920da20fd Mon Sep 17 00:00:00 2001 From: Ting-Yu Lin Date: Thu, 14 Sep 2017 13:11:22 +0800 Subject: [PATCH] Bug 1341009 - Reset aStatus before calling nsLineLayout::ReflowFrame(). r=dholbert This ensures the nsIFrame::Reflow() call in nsLineLayout::ReflowFrame() is using an empty reflow status. MozReview-Commit-ID: EBHs8xX7MI1 --HG-- extra : rebase_source : 806d5b542e1165b80e98d154c10d8c1c56b26a74 --- layout/generic/nsInlineFrame.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/layout/generic/nsInlineFrame.cpp b/layout/generic/nsInlineFrame.cpp index 390617ba117b..3c70df50cfd3 100644 --- a/layout/generic/nsInlineFrame.cpp +++ b/layout/generic/nsInlineFrame.cpp @@ -794,6 +794,7 @@ nsInlineFrame::ReflowInlineFrame(nsPresContext* aPresContext, nsLineLayout* lineLayout = aReflowInput.mLineLayout; bool reflowingFirstLetter = lineLayout->GetFirstLetterStyleOK(); bool pushedFrame; + aStatus.Reset(); lineLayout->ReflowFrame(aFrame, aStatus, nullptr, pushedFrame); if (aStatus.IsInlineBreakBefore()) {