mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 567835 - add parentheses to make the required logic to happen r=dholbert
This commit is contained in:
parent
2b3e20e689
commit
7593d0501d
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user