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

Unified Diff: Source/platform/geometry/IntBoxExtent.h

Issue 206373006: Rename IntRectExtent to IntBoxExtent (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | « Source/platform/blink_platform.gypi ('k') | Source/platform/geometry/IntRectExtent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/geometry/IntBoxExtent.h
diff --git a/Source/platform/geometry/IntRectExtent.h b/Source/platform/geometry/IntBoxExtent.h
similarity index 87%
rename from Source/platform/geometry/IntRectExtent.h
rename to Source/platform/geometry/IntBoxExtent.h
index 76961d19de2ac982660abf72da2fbb35ebb7cdde..32e58b381ddf06b26bda962639f9eb4b1ab9c90c 100644
--- a/Source/platform/geometry/IntRectExtent.h
+++ b/Source/platform/geometry/IntBoxExtent.h
@@ -27,16 +27,16 @@
* SUCH DAMAGE.
*/
-#ifndef IntRectExtent_h
-#define IntRectExtent_h
+#ifndef IntBoxExtent_h
+#define IntBoxExtent_h
#include "platform/geometry/LayoutRect.h"
namespace WebCore {
-class IntRectExtent {
+class IntBoxExtent {
public:
- IntRectExtent()
+ IntBoxExtent()
: m_top(0)
, m_right(0)
, m_bottom(0)
@@ -44,7 +44,7 @@ public:
{
}
- IntRectExtent(int top, int right, int bottom, int left)
+ IntBoxExtent(int top, int right, int bottom, int left)
: m_top(top)
, m_right(right)
, m_bottom(bottom)
@@ -82,7 +82,7 @@ private:
int m_left;
};
-inline bool operator==(const IntRectExtent& a, const IntRectExtent& b)
+inline bool operator==(const IntBoxExtent& a, const IntBoxExtent& b)
{
return a.top() == b.top()
&& a.right() == b.right()
@@ -90,12 +90,12 @@ inline bool operator==(const IntRectExtent& a, const IntRectExtent& b)
&& a.left() == b.left();
}
-inline bool operator!=(const IntRectExtent& a, const IntRectExtent& b)
+inline bool operator!=(const IntBoxExtent& a, const IntBoxExtent& b)
{
return !(a == b);
}
-inline void operator+=(IntRectExtent& a, const IntRectExtent& b)
+inline void operator+=(IntBoxExtent& a, const IntBoxExtent& b)
{
a.setTop(a.top() + b.top());
a.setRight(a.right() + b.right());
@@ -106,4 +106,4 @@ inline void operator+=(IntRectExtent& a, const IntRectExtent& b)
} // namespace WebCore
-#endif // IntRectExtent_h
+#endif // IntBoxExtent_h
« no previous file with comments | « Source/platform/blink_platform.gypi ('k') | Source/platform/geometry/IntRectExtent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698