summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--widget/cocoa/nsNativeThemeCocoa.mm14
1 files changed, 2 insertions, 12 deletions
diff --git a/widget/cocoa/nsNativeThemeCocoa.mm b/widget/cocoa/nsNativeThemeCocoa.mm
index ce87d1996..056c453f2 100644
--- a/widget/cocoa/nsNativeThemeCocoa.mm
+++ b/widget/cocoa/nsNativeThemeCocoa.mm
@@ -3404,18 +3404,8 @@ nsNativeThemeCocoa::GetMinimumWidgetSize(nsPresContext* aPresContext,
bool isSmall = (scrollbarFrame->StyleDisplay()->mAppearance == NS_THEME_SCROLLBAR_SMALL);
bool isHorizontal = (aWidgetType == NS_THEME_SCROLLBARTHUMB_HORIZONTAL);
- int32_t& minSize = isSmall ? kSmallScrollbarThumbMinSize : kRegularScrollbarThumbMinSize;
- if (IsScrollbarWidthThin(aFrame)) {
- minSize /= 2;
- }
- if (isHorizontal) {
- aResult->width = kRegularScrollbarThumbMinSize;
- aResult->height = minSize;
- } else {
- aResult->width = minSize;
- aResult->height = kRegularScrollbarThumbMinSize;
- }
-
+ int32_t& minSize = isHorizontal ? aResult->width : aResult->height;
+ minSize = isSmall ? kSmallScrollbarThumbMinSize : kRegularScrollbarThumbMinSize;
break;
}