From 0939fde1a45d757debf36394c5a76bfb0951b8d7 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Tue, 12 Jan 2021 13:07:40 +0000 Subject: Issue #1705 - Part 9b: Revert overzealous changes on Mac (cocoa). --- widget/cocoa/nsNativeThemeCocoa.mm | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'widget') 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; } -- cgit v1.2.3