зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1466614: Remove a no longer used function. r=me CLOSED TREE
MozReview-Commit-ID: GBFaR3SNY0F
This commit is contained in:
Родитель
048663ea0a
Коммит
f8c5ea739f
|
@ -427,34 +427,6 @@ GetSystemMetric(nsIDocument* aDocument, const nsMediaFeature* aFeature,
|
|||
aResult.SetIntValue(hasMetric ? 1 : 0, eCSSUnit_Integer);
|
||||
}
|
||||
|
||||
static void
|
||||
GetWindowsTheme(nsIDocument* aDocument, const nsMediaFeature* aFeature,
|
||||
nsCSSValue& aResult)
|
||||
{
|
||||
aResult.Reset();
|
||||
|
||||
MOZ_ASSERT(aFeature->mReqFlags & nsMediaFeature::eUserAgentAndChromeOnly);
|
||||
if (nsContentUtils::ShouldResistFingerprinting(aDocument)) {
|
||||
return;
|
||||
}
|
||||
|
||||
#ifdef XP_WIN
|
||||
uint8_t windowsThemeId = GetWindowsThemeIdentifier();
|
||||
|
||||
// Classic mode should fail to match.
|
||||
if (windowsThemeId == LookAndFeel::eWindowsTheme_Classic)
|
||||
return;
|
||||
|
||||
// Look up the appropriate theme string
|
||||
for (const auto& theme : kThemeStrings) {
|
||||
if (windowsThemeId == theme.mId) {
|
||||
aResult.SetAtomIdentValue((*theme.mName)->ToAddRefed());
|
||||
break;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
static void
|
||||
GetOperatingSystemVersion(nsIDocument* aDocument, const nsMediaFeature* aFeature,
|
||||
nsCSSValue& aResult)
|
||||
|
|
Загрузка…
Ссылка в новой задаче