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

Unified Diff: ui/gfx/point_base.h

Issue 11081007: Remove implicit flooring Scale() method from Point and Size. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | « ui/gfx/point.h ('k') | ui/gfx/point_conversions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/point_base.h
diff --git a/ui/gfx/point_base.h b/ui/gfx/point_base.h
index e6574d47f1199e0d45f2d73d10ee436e6142dda9..fcb2289705b438dffdac3bc4c613cf3ba64656ee 100644
--- a/ui/gfx/point_base.h
+++ b/ui/gfx/point_base.h
@@ -33,15 +33,6 @@ class UI_EXPORT PointBase {
y_ += delta_y;
}
- Class Scale(float scale) const WARN_UNUSED_RESULT {
- return Scale(scale, scale);
- }
-
- Class Scale(float x_scale, float y_scale) const WARN_UNUSED_RESULT {
- return Class(static_cast<Type>(x_ * x_scale),
- static_cast<Type>(y_ * y_scale));
- }
-
Class Add(const Class& other) const WARN_UNUSED_RESULT {
const Class* orig = static_cast<const Class*>(this);
Class copy = *orig;
« no previous file with comments | « ui/gfx/point.h ('k') | ui/gfx/point_conversions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698