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

Unified Diff: Source/core/platform/graphics/FloatPoint.h

Issue 18551004: Miscellaneous cleanup to reduce number of includes in platform/graphics/ Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 6 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/core/platform/graphics/FloatPoint.h
diff --git a/Source/core/platform/graphics/FloatPoint.h b/Source/core/platform/graphics/FloatPoint.h
index 1574deb38fef6e833545818bfc62bdd2ebbc7435..8b399c2bea25fee9fcbc1b816b9ae81e714a6ffb 100644
--- a/Source/core/platform/graphics/FloatPoint.h
+++ b/Source/core/platform/graphics/FloatPoint.h
@@ -29,7 +29,6 @@
#include "core/platform/graphics/FloatSize.h"
#include "core/platform/graphics/IntPoint.h"
-#include "wtf/MathExtras.h"
#if OS(DARWIN)
typedef struct CGPoint CGPoint;
@@ -209,10 +208,7 @@ inline float operator*(const FloatPoint& a, const FloatPoint& b)
return a.dot(b);
}
-inline IntPoint roundedIntPoint(const FloatPoint& p)
-{
- return IntPoint(clampToInteger(roundf(p.x())), clampToInteger(roundf(p.y())));
-}
+IntPoint roundedIntPoint(const FloatPoint&);
inline IntPoint flooredIntPoint(const FloatPoint& p)
{
« no previous file with comments | « Source/core/platform/graphics/CustomFontNotReadyAction.h ('k') | Source/core/platform/graphics/FloatPoint.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698