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

Unified Diff: ui/gfx/rect_f.cc

Issue 10996037: Do not convert from RectF to Rect by flooring. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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
Index: ui/gfx/rect_f.cc
diff --git a/ui/gfx/rect_f.cc b/ui/gfx/rect_f.cc
index 6677c29e459df79ef09c51e1faba82fdc54ab1bf..c515731b5813c14f581518f2470a6ab6c3b5f711 100644
--- a/ui/gfx/rect_f.cc
+++ b/ui/gfx/rect_f.cc
@@ -8,6 +8,7 @@
#include "base/stringprintf.h"
#include "ui/gfx/insets_f.h"
#include "ui/gfx/rect_base_impl.h"
+#include "ui/gfx/safe_floor_ceil.h"
sky 2012/09/27 20:33:55 Is this needed?
namespace gfx {
@@ -36,10 +37,6 @@ RectF::RectF(const gfx::PointF& origin, const gfx::SizeF& size)
RectF::~RectF() {}
-Rect RectF::ToRect() const {
- return Rect(origin().ToPoint(), size().ToSize());
-}
-
std::string RectF::ToString() const {
return base::StringPrintf("%s %s",
origin().ToString().c_str(),

Powered by Google App Engine
This is Rietveld 408576698