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

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: Remove dcheck for containment 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..287dc59e35745fc2d387b57443e48cbc19b65fc2 100644
--- a/third_party/WebKit/Source/core/paint/ImagePainter.h
+++ b/third_party/WebKit/Source/core/paint/ImagePainter.h
@@ -22,7 +22,10 @@ public:
void paint(const PaintInfo&, const LayoutPoint& paintOffset);
void paintReplaced(const PaintInfo&, const LayoutPoint& paintOffset);
- void paintIntoRect(GraphicsContext&, const LayoutRect&);
+
+ // Paint the image into |destRect|, after clipping by |contentRect|. Both |destRect| and
+ // |contentRect| should be in local coordinates plus the paint offset.
+ 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