tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit aa57c3a3aabd70071202054a95e75fcdb467363a
parent b5b11f736866c424e9b4e6a7065751c673f3001c
Author: Jonathan Kew <jkew@mozilla.com>
Date:   Thu,  2 Oct 2025 18:26:55 +0000

Bug 1992227 - Force reflow when the text-autospace.enabled pref is toggled. r=layout-reviewers,dshin

Differential Revision: https://phabricator.services.mozilla.com/D267283

Diffstat:
Mlayout/base/nsPresContext.cpp | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/layout/base/nsPresContext.cpp b/layout/base/nsPresContext.cpp @@ -336,6 +336,7 @@ static const char* gExactCallbackPrefs[] = { "layout.css.dpi", "layout.css.letter-spacing.model", "layout.css.ruby.normalize-metrics-factor", + "layout.css.text-autospace.enabled", "layout.css.text-transform.uppercase-eszett.enabled", "privacy.trackingprotection.enabled", nullptr, @@ -599,6 +600,7 @@ void nsPresContext::PreferenceChanged(const char* aPrefName) { if (prefName.EqualsLiteral( "layout.css.text-transform.uppercase-eszett.enabled") || + prefName.EqualsLiteral("layout.css.text-autospace.enabled") || prefName.EqualsLiteral("layout.css.letter-spacing.model")) { changeHint |= NS_STYLE_HINT_REFLOW; }