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

Unified Diff: Source/platform/geometry/DoublePoint.h

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
« no previous file with comments | « Source/platform/fonts/FontDescription.h ('k') | Source/platform/geometry/DoubleSize.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/geometry/DoublePoint.h
diff --git a/Source/platform/geometry/DoublePoint.h b/Source/platform/geometry/DoublePoint.h
index f7f79736d38a153ced68640a76b04f31f3c4b15d..d300294c70fb28eb2d1284cf1e60b5be778d9b85 100644
--- a/Source/platform/geometry/DoublePoint.h
+++ b/Source/platform/geometry/DoublePoint.h
@@ -83,7 +83,7 @@ inline DoublePoint operator-(const DoublePoint& a)
inline IntPoint flooredIntPoint(const DoublePoint& p)
{
- return IntPoint(clampToInteger(floor(p.x())), clampToInteger(floor(p.y())));
+ return IntPoint(clampTo<int>(floor(p.x())), clampTo<int>(floor(p.y())));
}
inline FloatPoint toFloatPoint(const DoublePoint& a)
« no previous file with comments | « Source/platform/fonts/FontDescription.h ('k') | Source/platform/geometry/DoubleSize.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698