Skip to content

Commit

Permalink
Bug 1819335 Part 1 - Do not create a forced break for CSS named page …
Browse files Browse the repository at this point in the history
…change immediately before an nsPageBreakFrame. r=dholbert

Differential Revision: https://phabricator.services.mozilla.com/D191710
  • Loading branch information
Emily McDonough committed Oct 30, 2023
1 parent 1d69a1a commit ceb9f99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layout/generic/nsBlockFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3082,7 +3082,7 @@ void nsBlockFrame::ReflowDirtyLines(BlockReflowState& aState) {
if (canBreakForPageNames && (!aState.mReflowInput.mFlags.mIsTopOfPage ||
!aState.IsAdjacentWithBStart())) {
const nsIFrame* const frame = line->mFirstChild;
if (!frame->IsPlaceholderFrame()) {
if (!frame->IsPlaceholderFrame() && !frame->IsPageBreakFrame()) {
nextPageName = frame->GetStartPageValue();
// Walk back to the last frame that isn't a placeholder.
const nsIFrame* prevFrame = frame->GetPrevSibling();
Expand Down

0 comments on commit ceb9f99

Please sign in to comment.