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

Unified Diff: Source/core/platform/graphics/IntRect.h

Issue 16571008: Get rid of pixelSnapped* from IntRect. These are unused. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/graphics/IntRect.h
diff --git a/Source/core/platform/graphics/IntRect.h b/Source/core/platform/graphics/IntRect.h
index cbb78d0a0f75846d7f3ea167f12f1d224f2bbfb3..a6767a304756f93dcc617bebfc21ab7043549071 100644
--- a/Source/core/platform/graphics/IntRect.h
+++ b/Source/core/platform/graphics/IntRect.h
@@ -27,7 +27,8 @@
#define IntRect_h
#include "core/platform/graphics/IntPoint.h"
-#include <wtf/Vector.h>
+#include "wtf/FastAllocBase.h"
+#include "wtf/Vector.h"
#if OS(DARWIN)
typedef struct CGRect CGRect;
@@ -58,7 +59,7 @@ public:
explicit IntRect(const FloatRect&); // don't do this implicitly since it's lossy
explicit IntRect(const LayoutRect&); // don't do this implicitly since it's lossy
-
+
IntPoint location() const { return m_location; }
IntSize size() const { return m_size; }
@@ -72,17 +73,6 @@ public:
int width() const { return m_size.width(); }
int height() const { return m_size.height(); }
- // FIXME: These methods are here only to ease the transition to sub-pixel layout. They should
- // be removed when we close http://webkit.org/b/60318
- int pixelSnappedX() const { return m_location.x(); }
- int pixelSnappedY() const { return m_location.y(); }
- int pixelSnappedMaxX() const { return x() + width(); }
- int pixelSnappedMaxY() const { return y() + height(); }
- int pixelSnappedWidth() const { return m_size.width(); }
- int pixelSnappedHeight() const { return m_size.height(); }
- IntPoint pixelSnappedLocation() const { return location(); }
- IntSize pixelSnappedSize() const { return size(); }
-
void setX(int x) { m_location.setX(x); }
void setY(int y) { m_location.setY(y); }
void setWidth(int width) { m_size.setWidth(width); }
@@ -130,7 +120,7 @@ public:
IntPoint maxXMinYCorner() const { return IntPoint(m_location.x() + m_size.width(), m_location.y()); } // typically topRight
IntPoint minXMaxYCorner() const { return IntPoint(m_location.x(), m_location.y() + m_size.height()); } // typically bottomLeft
IntPoint maxXMaxYCorner() const { return IntPoint(m_location.x() + m_size.width(), m_location.y() + m_size.height()); } // typically bottomRight
-
+
bool intersects(const IntRect&) const;
bool contains(const IntRect&) const;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698