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

Unified Diff: third_party/WebKit/Source/core/paint/NinePieceImagePainter.cpp

Issue 1478283002: Less type conversion for NinePieceImage painting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/platform/graphics/GraphicsContext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/NinePieceImagePainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/NinePieceImagePainter.cpp b/third_party/WebKit/Source/core/paint/NinePieceImagePainter.cpp
index afd882d68dbbdf202c41b862f7eadeed0d6d660e..2ffe6a12cd2144d04e9f5e3435a065f92b686bdc 100644
--- a/third_party/WebKit/Source/core/paint/NinePieceImagePainter.cpp
+++ b/third_party/WebKit/Source/core/paint/NinePieceImagePainter.cpp
@@ -74,8 +74,8 @@ bool NinePieceImagePainter::paint(GraphicsContext* graphicsContext, const Layout
if (drawInfo.isCornerPiece) {
graphicsContext->drawImage(image.get(), drawInfo.destination, drawInfo.source, op);
} else {
- graphicsContext->drawTiledImage(image.get(), enclosingIntRect(drawInfo.destination),
- enclosingIntRect(drawInfo.source), drawInfo.tileScale, drawInfo.tileRule.horizontal,
+ graphicsContext->drawTiledImage(image.get(), drawInfo.destination,
+ drawInfo.source, drawInfo.tileScale, drawInfo.tileRule.horizontal,
drawInfo.tileRule.vertical, op);
}
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/GraphicsContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698