From f058e5cdbd17028ce50e8ef0f4ca6df7c8d2b4d1 Mon Sep 17 00:00:00 2001 From: Xidorn Quan Date: Wed, 9 Jan 2019 16:37:02 +0000 Subject: [PATCH] Bug 1516068 - Fix a wrong indentation in nsNativeThemeWin. r=jmathies Differential Revision: https://phabricator.services.mozilla.com/D15246 --HG-- extra : moz-landing-system : lando --- widget/windows/nsNativeThemeWin.cpp | 66 ++++++++++++++--------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/widget/windows/nsNativeThemeWin.cpp b/widget/windows/nsNativeThemeWin.cpp index 7193bbffd225..fa4922abb27d 100644 --- a/widget/windows/nsNativeThemeWin.cpp +++ b/widget/windows/nsNativeThemeWin.cpp @@ -3026,40 +3026,40 @@ nsresult nsNativeThemeWin::ClassicGetMinimumWidgetSize( (*aResult).width = (*aResult).height = 15; *aIsOverridable = false; break; - case StyleAppearance::ScrollbarthumbVertical: - (*aResult).width = ::GetSystemMetrics(SM_CXVSCROLL); - (*aResult).height = ::GetSystemMetrics(SM_CYVTHUMB); - // Without theming, divide the thumb size by two in order to look more - // native - if (!GetTheme(aAppearance)) { - (*aResult).height >>= 1; - } - // If scrollbar-width is thin, divide the thickness by two to make - // it look more compact. - if (IsScrollbarWidthThin(aFrame)) { - aResult->width >>= 1; - } - *aIsOverridable = false; - break; - case StyleAppearance::ScrollbarthumbHorizontal: - (*aResult).width = ::GetSystemMetrics(SM_CXHTHUMB); - (*aResult).height = ::GetSystemMetrics(SM_CYHSCROLL); - // Without theming, divide the thumb size by two in order to look more - // native - if (!GetTheme(aAppearance)) { - (*aResult).width >>= 1; - } - // If scrollbar-width is thin, divide the thickness by two to make - // it look more compact. - if (IsScrollbarWidthThin(aFrame)) { - aResult->height >>= 1; - } - *aIsOverridable = false; - break; - case StyleAppearance::ScrollbarHorizontal: - (*aResult).width = ::GetSystemMetrics(SM_CXHTHUMB) << 1; - break; } + case StyleAppearance::ScrollbarthumbVertical: + (*aResult).width = ::GetSystemMetrics(SM_CXVSCROLL); + (*aResult).height = ::GetSystemMetrics(SM_CYVTHUMB); + // Without theming, divide the thumb size by two in order to look more + // native + if (!GetTheme(aAppearance)) { + (*aResult).height >>= 1; + } + // If scrollbar-width is thin, divide the thickness by two to make + // it look more compact. + if (IsScrollbarWidthThin(aFrame)) { + aResult->width >>= 1; + } + *aIsOverridable = false; + break; + case StyleAppearance::ScrollbarthumbHorizontal: + (*aResult).width = ::GetSystemMetrics(SM_CXHTHUMB); + (*aResult).height = ::GetSystemMetrics(SM_CYHSCROLL); + // Without theming, divide the thumb size by two in order to look more + // native + if (!GetTheme(aAppearance)) { + (*aResult).width >>= 1; + } + // If scrollbar-width is thin, divide the thickness by two to make + // it look more compact. + if (IsScrollbarWidthThin(aFrame)) { + aResult->height >>= 1; + } + *aIsOverridable = false; + break; + case StyleAppearance::ScrollbarHorizontal: + (*aResult).width = ::GetSystemMetrics(SM_CXHTHUMB) << 1; + break; case StyleAppearance::Menuseparator: { aResult->width = 0; aResult->height = 10;