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

Unified Diff: Source/core/platform/graphics/IntPoint.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
« no previous file with comments | « Source/core/platform/graphics/ImageOrientation.cpp ('k') | Source/core/platform/graphics/IntPoint.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/graphics/IntPoint.h
diff --git a/Source/core/platform/graphics/IntPoint.h b/Source/core/platform/graphics/IntPoint.h
index d230aa6f82761cd37e5fc4c4bda9228e775ac062..bb7c4e25eb3eb35426260efecd75916bec8c920d 100644
--- a/Source/core/platform/graphics/IntPoint.h
+++ b/Source/core/platform/graphics/IntPoint.h
@@ -28,7 +28,6 @@
#define IntPoint_h
#include "core/platform/graphics/IntSize.h"
-#include "wtf/MathExtras.h"
#include "wtf/Platform.h"
#if OS(DARWIN)
@@ -59,12 +58,8 @@ public:
void move(const IntSize& s) { move(s.width(), s.height()); }
void moveBy(const IntPoint& offset) { move(offset.x(), offset.y()); }
void move(int dx, int dy) { m_x += dx; m_y += dy; }
- void scale(float sx, float sy)
- {
- m_x = lroundf(static_cast<float>(m_x * sx));
- m_y = lroundf(static_cast<float>(m_y * sy));
- }
-
+ void scale(float sx, float sy);
+
IntPoint expandedTo(const IntPoint& other) const
{
return IntPoint(m_x > other.m_x ? m_x : other.m_x,
« no previous file with comments | « Source/core/platform/graphics/ImageOrientation.cpp ('k') | Source/core/platform/graphics/IntPoint.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698