Issue #1705 - Part 9b: Revert overzealous changes on Mac (cocoa).

This commit is contained in:
Moonchild 2021-01-12 13:07:40 +00:00 committed by roytam1
commit 4461ea7a07

View file

@ -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;
}