зеркало из https://github.com/mozilla/pjs.git
bug 567835 - add parentheses to make the required logic to happen r=dholbert
This commit is contained in:
Родитель
5f12594742
Коммит
0decb13879
|
@ -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
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче