зеркало из https://github.com/mozilla/gecko-dev.git
bug 567835 - add parentheses to make the required logic to happen r=dholbert
This commit is contained in:
Родитель
9088953686
Коммит
094c95c902
|
@ -292,7 +292,7 @@ nsTableFrame::PageBreakAfter(nsIFrame* aSourceFrame,
|
|||
const nsStyleDisplay* display = aSourceFrame->GetStyleDisplay();
|
||||
nsTableRowGroupFrame* prevRg = do_QueryFrame(aSourceFrame);
|
||||
// don't allow a page break after a repeated element ...
|
||||
if (display->mBreakAfter || (prevRg && prevRg->HasInternalBreakAfter()) &&
|
||||
if ((display->mBreakAfter || (prevRg && prevRg->HasInternalBreakAfter())) &&
|
||||
!IsRepeatedFrame(aSourceFrame)) {
|
||||
return !(aNextFrame && IsRepeatedFrame(aNextFrame)); // or before
|
||||
}
|
||||
|
@ -301,8 +301,8 @@ nsTableFrame::PageBreakAfter(nsIFrame* aSourceFrame,
|
|||
display = aNextFrame->GetStyleDisplay();
|
||||
// don't allow a page break before a repeated element ...
|
||||
nsTableRowGroupFrame* nextRg = do_QueryFrame(aNextFrame);
|
||||
if (display->mBreakBefore ||
|
||||
(nextRg && nextRg->HasInternalBreakBefore()) &&
|
||||
if ((display->mBreakBefore ||
|
||||
(nextRg && nextRg->HasInternalBreakBefore())) &&
|
||||
!IsRepeatedFrame(aNextFrame)) {
|
||||
return !IsRepeatedFrame(aSourceFrame); // or after
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче