commit 931471037b8a4f16ce3ccfa864310540cac255c1
parent dfc8a11388b0807ada896de9ddf8276e6a740498
Author: Jeffrey Houghton <houghtonjk17@gmail.com>
Date: Mon, 10 Nov 2025 05:20:29 +0000
Bug 1900302 - Removed font.size.inflation.disabledInMasterProcess pref and references.r=emilio,layout-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D271857
Diffstat:
3 files changed, 0 insertions(+), 26 deletions(-)
diff --git a/layout/base/PresShell.cpp b/layout/base/PresShell.cpp
@@ -709,7 +709,6 @@ PresShell::PresShell(Document* aDocument)
mResizeEventPending(false),
mVisualViewportResizeEventPending(false),
mFontSizeInflationForceEnabled(false),
- mFontSizeInflationDisabledInMasterProcess(false),
mFontSizeInflationEnabled(false),
mIsNeverPainting(false),
mResolutionUpdated(false),
@@ -909,8 +908,6 @@ void PresShell::Init(nsPresContext* aPresContext, nsViewManager* aViewManager) {
StaticPrefs::font_size_inflation_lineThreshold();
mFontSizeInflationForceEnabled =
StaticPrefs::font_size_inflation_forceEnabled();
- mFontSizeInflationDisabledInMasterProcess =
- StaticPrefs::font_size_inflation_disabledInMasterProcess();
// We'll compute the font size inflation state in Initialize(), when we know
// the document type.
@@ -12568,12 +12565,6 @@ bool PresShell::DetermineFontSizeInflationState() {
if (!tab->AsyncPanZoomEnabled()) {
return false;
}
- } else if (XRE_IsParentProcess()) {
- // We're in the master process. Cancel inflation if it's been
- // explicitly disabled.
- if (FontSizeInflationDisabledInMasterProcess()) {
- return false;
- }
}
}
diff --git a/layout/base/PresShell.h b/layout/base/PresShell.h
@@ -1129,10 +1129,6 @@ class PresShell final : public nsStubDocumentObserver,
return mFontSizeInflationForceEnabled;
}
- bool FontSizeInflationDisabledInMasterProcess() const {
- return mFontSizeInflationDisabledInMasterProcess;
- }
-
bool FontSizeInflationEnabled() const { return mFontSizeInflationEnabled; }
/**
@@ -3444,7 +3440,6 @@ class PresShell final : public nsStubDocumentObserver,
bool mVisualViewportResizeEventPending : 1;
bool mFontSizeInflationForceEnabled : 1;
- bool mFontSizeInflationDisabledInMasterProcess : 1;
bool mFontSizeInflationEnabled : 1;
// If a document belongs to an invisible DocShell, this flag must be set
diff --git a/modules/libpref/init/StaticPrefList.yaml b/modules/libpref/init/StaticPrefList.yaml
@@ -6215,18 +6215,6 @@
value: false
mirror: always
-# In products with multi-mode pan-and-zoom and non-pan-and-zoom UIs,
-# this pref disables font inflation in master-process contexts where
-# existing heuristics can't be used determine enabled-ness.
-#
-# This pref has no effect if font inflation is not enabled through
-# either of the prefs above. The "forceEnabled" pref above overrides
-# this pref.
-- name: font.size.inflation.disabledInMasterProcess
- type: bool
- value: false
- mirror: always
-
# Defines the font size inflation mapping intercept parameter.
#
# Font size inflation computes a minimum font size, m, based on