Bug 1828020 - Remove the layout.css.named-pages.enabled pref r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D175438
This commit is contained in:
Emily McDonough
2023-05-16 20:32:11 +00:00
parent 7afedc32f1
commit 3debfe816d
17 changed files with 21 additions and 66 deletions

View File

@@ -140,8 +140,7 @@ ReflowInput::ReflowInput(nsPresContext* aPresContext, nsIFrame* aFrame,
if (!aFlags.contains(InitFlag::CallerWillInit)) {
Init(aPresContext);
}
// If we encounter a PageContent frame, this will be flipped on and the pref
// layout.css.named-pages.enabled will be checked.
// When we encounter a PageContent frame this will be set to true.
mFlags.mCanHaveClassABreakpoints = false;
}
@@ -207,9 +206,6 @@ ReflowInput::ReflowInput(nsPresContext* aPresContext,
if (aParentReflowInput.mFlags.mCanHaveClassABreakpoints) {
MOZ_ASSERT(aPresContext->IsPaginated(),
"mCanHaveClassABreakpoints set during non-paginated reflow.");
MOZ_ASSERT(StaticPrefs::layout_css_named_pages_enabled(),
"mCanHaveClassABreakpoints should not be set when "
"layout.css.named-pages.enabled is false");
}
{
@@ -222,8 +218,7 @@ ReflowInput::ReflowInput(nsPresContext* aPresContext,
MOZ_ASSERT(!mFlags.mCanHaveClassABreakpoints,
"mFlags.mCanHaveClassABreakpoints should have been "
"initalized to false before we found nsPageContentFrame");
mFlags.mCanHaveClassABreakpoints =
StaticPrefs::layout_css_named_pages_enabled();
mFlags.mCanHaveClassABreakpoints = true;
break;
case LayoutFrameType::Block: // FALLTHROUGH
case LayoutFrameType::Canvas: // FALLTHROUGH