diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-02-18 13:56:18 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-02-18 14:56:31 +0100 |
commit | a24398e42d2f300b5979d1fb45a481e2912fd4f3 (patch) | |
tree | 82c15ba37726971108f6b92c15a70e9f57950846 /widget/windows/nsUXThemeData.cpp | |
parent | b55f0e7f0d3c66b609ac8979265c62bd1fa85bb6 (diff) | |
download | UXP-a24398e42d2f300b5979d1fb45a481e2912fd4f3.tar UXP-a24398e42d2f300b5979d1fb45a481e2912fd4f3.tar.gz UXP-a24398e42d2f300b5979d1fb45a481e2912fd4f3.tar.lz UXP-a24398e42d2f300b5979d1fb45a481e2912fd4f3.tar.xz UXP-a24398e42d2f300b5979d1fb45a481e2912fd4f3.zip |
Remove unnecessary code in /widget.
- Remove numerous blocklist entries that no longer apply.
- Remove CanComputeVirtualKeyCodeFromScanCode(), because it's always true.
- Remove ShowXP{Folder,File}Picker(), since we have native pickers on supported Windows versions.
- Remove the config.trim_on_minimize preference, which is pointless on NT6+ and will just cause problems if used.
Tag #22.
Diffstat (limited to 'widget/windows/nsUXThemeData.cpp')
-rw-r--r-- | widget/windows/nsUXThemeData.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/widget/windows/nsUXThemeData.cpp b/widget/windows/nsUXThemeData.cpp index bcbd32484..4d9ac9570 100644 --- a/widget/windows/nsUXThemeData.cpp +++ b/widget/windows/nsUXThemeData.cpp @@ -143,10 +143,8 @@ nsUXThemeData::InitTitlebarInfo() sCommandButtons[3].cx = sCommandButtons[0].cx * 3; sCommandButtons[3].cy = sCommandButtons[0].cy; - // Use system metrics for pre-vista, otherwise trigger a - // refresh on the next layout. - sTitlebarInfoPopulatedAero = sTitlebarInfoPopulatedThemed = - !IsVistaOrLater(); + // Trigger a refresh on the next layout. + sTitlebarInfoPopulatedAero = sTitlebarInfoPopulatedThemed = false; } // static @@ -306,7 +304,7 @@ void nsUXThemeData::UpdateNativeThemeInfo() { // Trigger a refresh of themed button metrics if needed - sTitlebarInfoPopulatedThemed = !IsVistaOrLater(); + sTitlebarInfoPopulatedThemed = false; sIsDefaultWindowsTheme = false; sThemeId = LookAndFeel::eWindowsTheme_Generic; |