| 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));
|
|
|