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

Unified Diff: ui/gfx/rect_base.h

Issue 10996037: Do not convert from RectF to Rect by flooring. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing mac build. Created 8 years, 3 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/rect.h ('k') | ui/gfx/rect_conversions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/rect_base.h
diff --git a/ui/gfx/rect_base.h b/ui/gfx/rect_base.h
index 22193069bf17801ab3fbd1e29ae5d0c0d667ee0f..b6b5c99c6c5d29beaeba23770eeaf8a5d1280b7e 100644
--- a/ui/gfx/rect_base.h
+++ b/ui/gfx/rect_base.h
@@ -65,16 +65,6 @@ class UI_EXPORT RectBase {
Offset(point.x(), point.y());
}
- /// Scales the rectangle by |scale|.
- 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(origin_.Scale(x_scale, y_scale),
- size_.Scale(x_scale, y_scale));
- }
-
InsetsClass InsetsFrom(const Class& inner) const {
return InsetsClass(inner.y() - y(),
inner.x() - x(),
« no previous file with comments | « ui/gfx/rect.h ('k') | ui/gfx/rect_conversions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698