Bug 1466614: Remove a no longer used function. r=me CLOSED TREE

MozReview-Commit-ID: GBFaR3SNY0F
This commit is contained in:
Emilio Cobos Álvarez 2018-07-30 11:58:50 +02:00
Родитель 048663ea0a
Коммит f8c5ea739f
1 изменённых файлов: 0 добавлений и 28 удалений

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

@ -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)