mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 965961 - Remove unused css selectors for windows versions. r=bz
This commit is contained in:
parent
0063737dca
commit
fdd75c44eb
@ -2047,13 +2047,6 @@ GK_ATOM(windows_theme_royale, "windows-theme-royale")
|
||||
GK_ATOM(windows_theme_zune, "windows-theme-zune")
|
||||
GK_ATOM(windows_theme_generic, "windows-theme-generic")
|
||||
|
||||
// windows version info selector metrics, helpful in removing ambiguity
|
||||
// in theme selectors.
|
||||
GK_ATOM(windows_version_xp, "windows-version-xp")
|
||||
GK_ATOM(windows_version_vista, "windows-version-vista")
|
||||
GK_ATOM(windows_version_win7, "windows-version-win7")
|
||||
GK_ATOM(windows_version_win8, "windows-version-win8")
|
||||
|
||||
// And the same again, as media query keywords.
|
||||
GK_ATOM(_moz_color_picker_available, "-moz-color-picker-available")
|
||||
GK_ATOM(_moz_scrollbar_start_backward, "-moz-scrollbar-start-backward")
|
||||
|
@ -1243,27 +1243,6 @@ InitSystemMetrics()
|
||||
}
|
||||
#endif
|
||||
|
||||
// os version metrics, currently only defined for Windows.
|
||||
if (NS_SUCCEEDED(
|
||||
LookAndFeel::GetInt(LookAndFeel::eIntID_OperatingSystemVersionIdentifier,
|
||||
&metricResult))) {
|
||||
switch(metricResult) {
|
||||
case LookAndFeel::eOperatingSystemVersion_WindowsXP:
|
||||
sSystemMetrics->AppendElement(nsGkAtoms::windows_version_xp);
|
||||
break;
|
||||
case LookAndFeel::eOperatingSystemVersion_WindowsVista:
|
||||
sSystemMetrics->AppendElement(nsGkAtoms::windows_version_vista);
|
||||
break;
|
||||
case LookAndFeel::eOperatingSystemVersion_Windows7:
|
||||
sSystemMetrics->AppendElement(nsGkAtoms::windows_version_win7);
|
||||
break;
|
||||
case LookAndFeel::eOperatingSystemVersion_Windows8:
|
||||
sSystemMetrics->AppendElement(nsGkAtoms::windows_version_win8);
|
||||
break;
|
||||
// don't add anything for future versions
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user