Index: ui/gfx/point.h |
diff --git a/ui/gfx/point.h b/ui/gfx/point.h |
index f81dd90f935c3a874321746b1ce2aadeffaf7cc8..4404582fb427f4ec655e9a6ebfa52348a340a5e6 100644 |
--- a/ui/gfx/point.h |
+++ b/ui/gfx/point.h |
@@ -74,7 +74,7 @@ inline Point operator-(const Point& lhs, const Vector2d& rhs) { |
} |
inline Vector2d operator-(const Point& lhs, const Point& rhs) { |
- return lhs.OffsetFrom(rhs); |
+ return Vector2d(lhs.x() - rhs.x(), lhs.y() - rhs.y()); |
} |
inline Point PointAtOffsetFromOrigin(const Vector2d& offset_from_origin) { |