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

Unified Diff: Source/platform/mac/ThemeMac.mm

Issue 641643004: Reapply the non-MathExtras parts of (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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: Source/platform/mac/ThemeMac.mm
diff --git a/Source/platform/mac/ThemeMac.mm b/Source/platform/mac/ThemeMac.mm
index a405ba50289a7383c1ea37a1c0dfb4bb5d6caf89..0c8007f2a7abc4c79d2524b6313d38fe4a0766cb 100644
--- a/Source/platform/mac/ThemeMac.mm
+++ b/Source/platform/mac/ThemeMac.mm
@@ -550,7 +550,7 @@ static void paintStepper(ControlStates states, GraphicsContext* context, const I
// Center the stepper rectangle in the specified area.
backgroundBounds.origin.x = bounds.origin.x + (bounds.size.width - backgroundBounds.size.width) / 2;
if (backgroundBounds.size.height < bounds.size.height) {
- int heightDiff = clampToInteger(bounds.size.height - backgroundBounds.size.height);
+ int heightDiff = clampTo<int>(bounds.size.height - backgroundBounds.size.height);
backgroundBounds.origin.y = bounds.origin.y + (heightDiff / 2) + 1;
}
« no previous file with comments | « Source/platform/graphics/skia/NativeImageSkia.cpp ('k') | Source/platform/transforms/PerspectiveTransformOperation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698