Bug 1831976 - Fix typos in comments regarding CSS named pages pref. r=dholbert

Replace underscore with hyphen in the pref name.

Differential Revision: https://phabricator.services.mozilla.com/D177421
This commit is contained in:
Ting-Yu Lin
2023-05-09 00:10:44 +00:00
parent c093f3c1f2
commit afdbeac05d
3 changed files with 3 additions and 3 deletions

View File

@@ -1254,7 +1254,7 @@ class nsCSSFrameConstructor final : public nsFrameManager {
* the frame.
*
* Note that this does not add PageValuesProperty to the frame when not in a
* paginated context, or if layout.css.named_pages.enabled is set to false.
* paginated context, or if layout.css.named-pages.enabled is set to false.
*/
class MOZ_RAII AutoFrameConstructionPageName final {
nsFrameConstructorState& mState;

View File

@@ -209,7 +209,7 @@ ReflowInput::ReflowInput(nsPresContext* aPresContext,
"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");
"layout.css.named-pages.enabled is false");
}
{

View File

@@ -2672,7 +2672,7 @@ void nsBlockFrame::ReflowDirtyLines(BlockReflowState& aState) {
"reflow");
MOZ_ASSERT(StaticPrefs::layout_css_named_pages_enabled(),
"canBreakForPageNames should not be set when "
"layout.css.named_pages.enabled is false");
"layout.css.named-pages.enabled is false");
}
// Reflow the lines that are already ours