Backed out 2 changesets (bug 1865172) for causing wpt failures in page-name-unnamed-trailing-001-print.html.

Backed out changeset fc1f91bbfd85 (bug 1865172)
Backed out changeset 17019e03e97c (bug 1865172)
This commit is contained in:
Stanca Serban
2024-02-24 01:53:19 +02:00
parent e41893f2c5
commit f3138fcd27
8 changed files with 10 additions and 197 deletions

View File

@@ -8042,20 +8042,6 @@ nsIFrame* nsCSSFrameConstructor::CreateContinuingFrame(
return newFrame;
}
void nsCSSFrameConstructor::MaybeSetNextPageContentFramePageName(
const nsIFrame* aFrame) {
MOZ_ASSERT(aFrame, "Frame should not be null");
// No parent means the root frame, which isn't what this funciton is for.
MOZ_ASSERT(aFrame->GetParent(),
"Frame should be the first child placed on a new page, not the "
"root frame.");
if (mNextPageContentFramePageName) {
return;
}
const nsAtom* const autoValue = aFrame->GetParent()->GetAutoPageValue();
mNextPageContentFramePageName = aFrame->ComputePageValue(autoValue);
}
nsresult nsCSSFrameConstructor::ReplicateFixedFrames(
nsPageContentFrame* aParentFrame) {
// Now deal with fixed-pos things.... They should appear on all pages,