diff options
author | Moonchild <moonchild@palemoon.org> | 2021-01-12 13:07:40 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2021-01-12 13:07:40 +0000 |
commit | 0939fde1a45d757debf36394c5a76bfb0951b8d7 (patch) | |
tree | 1bca11b5e8761f73d3ebec77e1b959a9a988015e /widget | |
parent | 59ef3f4eda3c4959dc4a7cf48f59c1f3dfbc2757 (diff) | |
download | UXP-0939fde1a45d757debf36394c5a76bfb0951b8d7.tar UXP-0939fde1a45d757debf36394c5a76bfb0951b8d7.tar.gz UXP-0939fde1a45d757debf36394c5a76bfb0951b8d7.tar.lz UXP-0939fde1a45d757debf36394c5a76bfb0951b8d7.tar.xz UXP-0939fde1a45d757debf36394c5a76bfb0951b8d7.zip |
Issue #1705 - Part 9b: Revert overzealous changes on Mac (cocoa).
Diffstat (limited to 'widget')
-rw-r--r-- | widget/cocoa/nsNativeThemeCocoa.mm | 14 |
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; } |