Bug 1341009 - Reset aStatus before calling nsLineLayout::ReflowFrame().
This ensures the nsIFrame::Reflow() call in nsLineLayout::ReflowFrame() is
using an empty reflow status.
MozReview-Commit-ID: EBHs8xX7MI1
--- a/layout/generic/nsInlineFrame.cpp
+++ b/layout/generic/nsInlineFrame.cpp
@@ -789,16 +789,17 @@ nsInlineFrame::ReflowInlineFrame(nsPresC
const ReflowInput& aReflowInput,
InlineReflowInput& irs,
nsIFrame* aFrame,
nsReflowStatus& aStatus)
{
nsLineLayout* lineLayout = aReflowInput.mLineLayout;
bool reflowingFirstLetter = lineLayout->GetFirstLetterStyleOK();
bool pushedFrame;
+ aStatus.Reset();
lineLayout->ReflowFrame(aFrame, aStatus, nullptr, pushedFrame);
if (aStatus.IsInlineBreakBefore()) {
if (aFrame != mFrames.FirstChild()) {
// Change break-before status into break-after since we have
// already placed at least one child frame. This preserves the
// break-type so that it can be propagated upward.
StyleClear oldBreakType = aStatus.BreakType();