Bug 1764437 - Check for prev/next sibling when propagating start/end page values...
commit673e9552a0fba0bac928a3a345c78f49d9e38799
authorEmily McDonough <emcdonough@mozilla.com>
Tue, 20 Sep 2022 21:42:34 +0000 (20 21:42 +0000)
committerEmily McDonough <emcdonough@mozilla.com>
Tue, 20 Sep 2022 21:42:34 +0000 (20 21:42 +0000)
treebaa663a757f3cc58cfc38553ad21a4a5beedbd1d
parente6ee4b6c4e20f136c22ae89958b7dc3fdeade572
Bug 1764437 - Check for prev/next sibling when propagating start/end page values for frames r=dholbert

This also properly handles placeholder frames, and ensures that when checking
next/prev sibling we ignore placeholder frames.

To properly test this for multiple levels of page value propagation, we also
need to use FirstInFlow to get page values when checking for breaks in block
frames.

Differential Revision: https://phabricator.services.mozilla.com/D157175
15 files changed:
layout/base/nsCSSFrameConstructor.cpp
layout/generic/nsBlockFrame.cpp
layout/reftests/css-page/page-name-propagated-001-ref.html [new file with mode: 0644]
layout/reftests/css-page/page-name-propagated-001.html [new file with mode: 0644]
layout/reftests/css-page/page-name-propagated-002-ref.html [new file with mode: 0644]
layout/reftests/css-page/page-name-propagated-002.html [new file with mode: 0644]
layout/reftests/css-page/page-name-propagated-003-ref.html [new file with mode: 0644]
layout/reftests/css-page/page-name-propagated-003.html [new file with mode: 0644]
layout/reftests/css-page/page-name-propagated-004-ref.html [new file with mode: 0644]
layout/reftests/css-page/page-name-propagated-004.html [new file with mode: 0644]
layout/reftests/css-page/page-name-propagated-005-ref.html [new file with mode: 0644]
layout/reftests/css-page/page-name-propagated-005.html [new file with mode: 0644]
layout/reftests/css-page/page-name-propagated-006-ref.html [new file with mode: 0644]
layout/reftests/css-page/page-name-propagated-006.html [new file with mode: 0644]
layout/reftests/css-page/reftest.list