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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user