Bug 1674610 - Remove a useless else after break in nsTableRowGroupFrame.cpp. r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D100488
This commit is contained in:
Akshat Dixit 2020-12-26 20:52:46 +00:00
parent 3bd15f9e8e
commit a53e597f51

View File

@ -1334,17 +1334,15 @@ nsresult nsTableRowGroupFrame::SplitRowGroup(nsPresContext* aPresContext,
}
break;
} // if (rowRect.YMost() > availHeight)
else {
aDesiredSize.Height() = rowRect.YMost();
prevRowFrame = rowFrame;
// see if there is a page break after the row
nsTableRowFrame* nextRow = rowFrame->GetNextRow();
if (nextRow && nsTableFrame::PageBreakAfter(rowFrame, nextRow)) {
PushChildren(nextRow, rowFrame);
aStatus.Reset();
aStatus.SetIncomplete();
break;
}
aDesiredSize.Height() = rowRect.YMost();
prevRowFrame = rowFrame;
// see if there is a page break after the row
nsTableRowFrame* nextRow = rowFrame->GetNextRow();
if (nextRow && nsTableFrame::PageBreakAfter(rowFrame, nextRow)) {
PushChildren(nextRow, rowFrame);
aStatus.Reset();
aStatus.SetIncomplete();
break;
}
// after the 1st row that has a height, we can't be on top
// of the page anymore.