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

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

Issue 2134253002: Adjust src and dest rects when drawing images instead of using a clip (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
Index: third_party/WebKit/Source/core/paint/ImagePainter.h
diff --git a/third_party/WebKit/Source/core/paint/ImagePainter.h b/third_party/WebKit/Source/core/paint/ImagePainter.h
index fce4d6185bb065dcd7e4ef16367f7c2f03af664b..20c4ea152ddec94172ed03aadf11c2efa3efca74 100644
--- a/third_party/WebKit/Source/core/paint/ImagePainter.h
+++ b/third_party/WebKit/Source/core/paint/ImagePainter.h
@@ -22,7 +22,9 @@ public:
void paint(const PaintInfo&, const LayoutPoint& paintOffset);
void paintReplaced(const PaintInfo&, const LayoutPoint& paintOffset);
- void paintIntoRect(GraphicsContext&, const LayoutRect&);
+
+ // Paint the full image into the dest, after clipping by the content rect.
chrishtr 2016/07/11 18:11:24 "into |destRect|, after clipping by |contentRect|"
pdr. 2016/07/11 19:58:17 Done.
+ void paintIntoRect(GraphicsContext&, const LayoutRect& destRect, const LayoutRect& contentRect);
private:
void paintAreaElementFocusRing(const PaintInfo&, const LayoutPoint& paintOffset);

Powered by Google App Engine
This is Rietveld 408576698