mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 08:15:31 +00:00
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:
parent
3bd15f9e8e
commit
a53e597f51
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user