Bug 1414774 - Initialize sCSDCloseButton/sCSDMaximizeButton/sCSDMinimizeButton, r=jhorak

MozReview-Commit-ID: 10Yk1gFu0Vk

--HG--
extra : rebase_source : 2fbe514f920e85cb5a857a0f5293edd4f023db06
This commit is contained in:
Martin Stransky 2017-11-06 11:41:38 +01:00
parent 78338236d0
commit 8d2317143c

View File

@ -1084,6 +1084,12 @@ nsLookAndFeel::EnsureInit()
false);
}
// We need to initialize whole CSD config explicitly because it's queried
// as -moz-gtk* media features.
sCSDCloseButton = false;
sCSDMaximizeButton = false;
sCSDMinimizeButton = false;
if (sCSDAvailable) {
static auto sGtkHeaderBarGetDecorationLayoutPtr =
(const gchar* (*)(GtkWidget*))