Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Unified Diff: third_party/WebKit/Source/core/paint/ThemePainterMac.mm

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698