summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2021-01-12 13:07:40 +0000
committerMoonchild <moonchild@palemoon.org>2021-01-12 13:07:40 +0000
commit0939fde1a45d757debf36394c5a76bfb0951b8d7 (patch)
tree1bca11b5e8761f73d3ebec77e1b959a9a988015e
parent59ef3f4eda3c4959dc4a7cf48f59c1f3dfbc2757 (diff)
downloadUXP-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).
-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;
}