bug 567835 - add parentheses to make the required logic to happen r=dholbert

This commit is contained in:
Bernd 2010-05-27 07:31:11 +02:00
parent 2b3e20e689
commit 7593d0501d

View File

@ -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
}