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

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

Issue 25494003: Move geometry classes from core/platform/graphics to platform/geometry (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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
« no previous file with comments | « Source/platform/geometry/LayoutPoint.h ('k') | Source/platform/geometry/LayoutRect.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/geometry/LayoutRect.h
diff --git a/Source/core/platform/graphics/LayoutRect.h b/Source/platform/geometry/LayoutRect.h
similarity index 96%
rename from Source/core/platform/graphics/LayoutRect.h
rename to Source/platform/geometry/LayoutRect.h
index dc46a9b37547794469840025d7f4b889bcf301fa..61fb8bae6ffe6cd0a1a4a96144839b9d7a542f61 100644
--- a/Source/core/platform/graphics/LayoutRect.h
+++ b/Source/platform/geometry/LayoutRect.h
@@ -31,9 +31,9 @@
#ifndef LayoutRect_h
#define LayoutRect_h
-#include "core/platform/graphics/IntRect.h"
-#include "core/platform/graphics/LayoutBoxExtent.h"
-#include "core/platform/graphics/LayoutPoint.h"
+#include "platform/geometry/IntRect.h"
+#include "platform/geometry/LayoutBoxExtent.h"
+#include "platform/geometry/LayoutPoint.h"
#include "wtf/Vector.h"
namespace WebCore {
@@ -202,14 +202,14 @@ inline bool operator!=(const LayoutRect& a, const LayoutRect& b)
inline IntRect pixelSnappedIntRect(const LayoutRect& rect)
{
- return IntRect(roundedIntPoint(rect.location()), IntSize(snapSizeToPixel(rect.width(), rect.x()),
- snapSizeToPixel(rect.height(), rect.y())));
+ return IntRect(roundedIntPoint(rect.location()), IntSize(
+ snapSizeToPixel(rect.width(), rect.x()),
+ snapSizeToPixel(rect.height(), rect.y())));
}
IntRect enclosingIntRect(const LayoutRect&);
LayoutRect enclosingLayoutRect(const FloatRect&);
-
inline IntRect pixelSnappedIntRect(LayoutUnit left, LayoutUnit top, LayoutUnit width, LayoutUnit height)
{
return IntRect(left.round(), top.round(), snapSizeToPixel(width, left), snapSizeToPixel(height, top));
« no previous file with comments | « Source/platform/geometry/LayoutPoint.h ('k') | Source/platform/geometry/LayoutRect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698