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

Unified Diff: third_party/WebKit/Source/core/paint/NinePieceImageGrid.h

Issue 1477393003: Use LayoutUnit in NinePieceImage drawing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase on top of leviw's sub-pixel changes Created 5 years 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 | third_party/WebKit/Source/core/paint/NinePieceImageGrid.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/NinePieceImageGrid.h
diff --git a/third_party/WebKit/Source/core/paint/NinePieceImageGrid.h b/third_party/WebKit/Source/core/paint/NinePieceImageGrid.h
index b23a07b9e479f3b915892448415b1251bba1dc92..5fc4394cf0df833c90be21af3eb3b48b12d49c80 100644
--- a/third_party/WebKit/Source/core/paint/NinePieceImageGrid.h
+++ b/third_party/WebKit/Source/core/paint/NinePieceImageGrid.h
@@ -8,8 +8,8 @@
#include "core/CoreExport.h"
#include "platform/geometry/FloatRect.h"
#include "platform/geometry/FloatSize.h"
-#include "platform/geometry/IntRect.h"
-#include "platform/geometry/IntSize.h"
+#include "platform/geometry/LayoutRect.h"
+#include "platform/geometry/LayoutSize.h"
#include "platform/graphics/Image.h"
#include "platform/heap/Heap.h"
@@ -62,7 +62,7 @@ class CORE_EXPORT NinePieceImageGrid {
STACK_ALLOCATED();
public:
- NinePieceImageGrid(const NinePieceImage&, IntSize imageSize, IntRect borderImageArea,
+ NinePieceImageGrid(const NinePieceImage&, LayoutSize imageSize, LayoutRect borderImageArea,
const IntRectOutsets& borderWidths);
struct CORE_EXPORT NinePieceDrawInfo {
@@ -94,8 +94,8 @@ private:
void setDrawInfoEdge(NinePieceDrawInfo&, NinePiece) const;
void setDrawInfoMiddle(NinePieceDrawInfo&) const;
- IntRect m_borderImageArea;
- IntSize m_imageSize;
+ LayoutRect m_borderImageArea;
+ LayoutSize m_imageSize;
Image::TileRule m_horizontalTileRule;
Image::TileRule m_verticalTileRule;
bool m_fill;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/NinePieceImageGrid.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698