| Index: third_party/WebKit/Source/core/paint/ThemePainterMac.mm
|
| diff --git a/third_party/WebKit/Source/core/paint/ThemePainterMac.mm b/third_party/WebKit/Source/core/paint/ThemePainterMac.mm
|
| index 050b942e30d8645252970f84624f4b6176006e65..accbf0c545be0490c101e58f82e80885694bbad9 100644
|
| --- a/third_party/WebKit/Source/core/paint/ThemePainterMac.mm
|
| +++ b/third_party/WebKit/Source/core/paint/ThemePainterMac.mm
|
| @@ -272,10 +272,11 @@ bool ThemePainterMac::paintMenuListButton(const LayoutObject& o,
|
| o.styleRef().borderBottomWidth());
|
| // Since we actually know the size of the control here, we restrict the font
|
| // scale to make sure the arrows will fit vertically in the bounds
|
| - float fontScale = std::min(
|
| - o.styleRef().fontSize() / LayoutThemeMac::baseFontSize,
|
| - bounds.height() / (LayoutThemeMac::menuListBaseArrowHeight * 2 +
|
| - LayoutThemeMac::menuListBaseSpaceBetweenArrows));
|
| + float fontScale =
|
| + std::min(o.styleRef().fontSize() / LayoutThemeMac::baseFontSize,
|
| + bounds.height() /
|
| + (LayoutThemeMac::menuListBaseArrowHeight * 2 +
|
| + LayoutThemeMac::menuListBaseSpaceBetweenArrows));
|
| float centerY = bounds.y() + bounds.height() / 2.0f;
|
| float arrowHeight = LayoutThemeMac::menuListBaseArrowHeight * fontScale;
|
| float arrowWidth = LayoutThemeMac::menuListBaseArrowWidth * fontScale;
|
|
|