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

Unified Diff: Source/platform/geometry/DoubleSize.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/geometry/DoublePoint.h ('k') | Source/platform/geometry/FloatPoint.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/geometry/DoubleSize.h
diff --git a/Source/platform/geometry/DoubleSize.h b/Source/platform/geometry/DoubleSize.h
index 2cc2b71b372ddd7707e24a72de8f525fd4b8bb23..52ee7a907e0f089058f458e896055350e2944f43 100644
--- a/Source/platform/geometry/DoubleSize.h
+++ b/Source/platform/geometry/DoubleSize.h
@@ -60,7 +60,7 @@ inline bool operator!=(const DoubleSize& a, const DoubleSize& b)
inline IntSize flooredIntSize(const DoubleSize& p)
{
- return IntSize(clampToInteger(floor(p.width())), clampToInteger(floor(p.height())));
+ return IntSize(clampTo<int>(floor(p.width())), clampTo<int>(floor(p.height())));
}
inline FloatSize toFloatSize(const DoubleSize& p)
« no previous file with comments | « Source/platform/geometry/DoublePoint.h ('k') | Source/platform/geometry/FloatPoint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698