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

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

Issue 1334703002: NOT FOR LANDING Pass URL to Image::draw (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « Source/core/paint/BoxPainter.cpp ('k') | Source/core/paint/ImagePainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/ImagePainter.h
diff --git a/Source/core/paint/ImagePainter.h b/Source/core/paint/ImagePainter.h
index f7097e3842e7dcc9198293ef541c276d7da63bff..113dbf461ab31e446791ec5e60c7607bfac4f5ef 100644
--- a/Source/core/paint/ImagePainter.h
+++ b/Source/core/paint/ImagePainter.h
@@ -5,20 +5,21 @@
#ifndef ImagePainter_h
#define ImagePainter_h
+#include "platform/weborigin/KURL.h"
#include "wtf/Allocator.h"
namespace blink {
class GraphicsContext;
-struct PaintInfo;
+class LayoutImage;
class LayoutPoint;
class LayoutRect;
-class LayoutImage;
+struct PaintInfo;
class ImagePainter {
STACK_ALLOCATED();
public:
- ImagePainter(LayoutImage& layoutImage) : m_layoutImage(layoutImage) { }
+ ImagePainter(LayoutImage& layoutImage, const KURL& url) : m_layoutImage(layoutImage), m_url(url) { }
void paint(const PaintInfo&, const LayoutPoint& paintOffset);
void paintReplaced(const PaintInfo&, const LayoutPoint& paintOffset);
@@ -28,6 +29,7 @@ private:
void paintAreaElementFocusRing(const PaintInfo&, const LayoutPoint& paintOffset);
LayoutImage& m_layoutImage;
+ KURL m_url;
};
} // namespace blink
« no previous file with comments | « Source/core/paint/BoxPainter.cpp ('k') | Source/core/paint/ImagePainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698