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

Unified Diff: ui/gfx/rect.h

Issue 11110004: Make gfx::Rect class operations consistently mutate the class they are called on. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
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
Index: ui/gfx/rect.h
diff --git a/ui/gfx/rect.h b/ui/gfx/rect.h
index 0f0794875efd5788b08caee1a0dd51f2b0186d03..eee19abc1c3b8a473237d1913fe90cad53244ab9 100644
--- a/ui/gfx/rect.h
+++ b/ui/gfx/rect.h
@@ -72,15 +72,6 @@ class UI_EXPORT Rect : public RectBase<Rect, Point, Size, Insets, int> {
return RectF(origin().x(), origin().y(), size().width(), size().height());
}
- RectF Scale(float scale) const WARN_UNUSED_RESULT {
- return Scale(scale, scale);
- }
-
- RectF Scale(float x_scale, float y_scale) const WARN_UNUSED_RESULT {
- RectF original = *this;
- return original.Scale(x_scale, y_scale);
- }
-
std::string ToString() const;
};
« no previous file with comments | « ui/gfx/image/image_skia_operations.cc ('k') | ui/gfx/rect_base.h » ('j') | ui/gfx/rect_base.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698