Backed out 2 changesets (bug 1663562) for causing bustages in nsPresContext.cpp

CLOSED TREE

Backed out changeset 67cbb5422dbc (bug 1663562)
Backed out changeset 574709176152 (bug 1663562)
This commit is contained in:
Mihai Alexandru Michis 2020-09-15 07:22:29 +03:00
Родитель 147ca18b99
Коммит a64de8bf5f
3 изменённых файлов: 1 добавлений и 21 удалений

Просмотреть файл

@ -1,7 +1,6 @@
[DEFAULT]
prefs =
plugin.load_flash_only=false
font.size.inflation.skipmaybereflowwithwebrender=true
support-files =
audio.ogg
audioEndedDuringPlaying.webm

Просмотреть файл

@ -269,13 +269,11 @@ static const char* gExactCallbackPrefs[] = {
"nglayout.debug.paint_flashing",
"nglayout.debug.paint_flashing_chrome",
"intl.accept_languages",
"dom.meta-viewport.enabled",
nullptr,
};
static const char* gPrefixCallbackPrefs[] = {
"font.", "browser.display.", "browser.viewport.",
"bidi.", "gfx.font_rendering.", nullptr,
"font.", "browser.display.", "bidi.", "gfx.font_rendering.", nullptr,
};
void nsPresContext::Destroy() {
@ -499,17 +497,6 @@ void nsPresContext::PreferenceChanged(const char* aPrefName) {
}
return;
}
if (StringBeginsWith(prefName, "browser.viewport."_ns) ||
StringBeginsWith(prefName, "font.size.inflation."_ns) ||
prefName.EqualsLiteral("dom.meta-viewport.enabled")) {
if (mPresShell &&
(!gfxVars::UseWebRender() ||
!StaticPrefs::font_size_inflation_skipmaybereflowwithwebrender())) {
mPresShell->MaybeReflowForInflationScreenSizeChange();
}
}
// Changing any of these potentially changes the value of @media
// (prefers-contrast).
if (prefName.EqualsLiteral("layout.css.prefers-contrast.enabled") ||

Просмотреть файл

@ -3702,12 +3702,6 @@
value: 0
mirror: always
# temporary pref to work around a problem (bug 1663562)
- name: font.size.inflation.skipmaybereflowwithwebrender
type: RelaxedAtomicBool
value: false
mirror: always
# This setting corresponds to a global text zoom setting affecting
# all content that is not already subject to font size inflation.
# It is interpreted as a percentage value that is applied on top