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

Unified Diff: Source/core/svg/graphics/SVGImage.h

Issue 22604008: Allow SVG images to not taint the canvas with drawImage/drawPattern (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase after r156375 Created 7 years, 4 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/rendering/svg/RenderSVGRoot.cpp ('k') | Source/core/svg/graphics/SVGImage.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/graphics/SVGImage.h
diff --git a/Source/core/svg/graphics/SVGImage.h b/Source/core/svg/graphics/SVGImage.h
index 186f2b74f424d9ea3246e941ec7831c8cd08055d..65a1a0516e50b4f66ec2af97e61dbf1a3c66b39f 100644
--- a/Source/core/svg/graphics/SVGImage.h
+++ b/Source/core/svg/graphics/SVGImage.h
@@ -31,6 +31,7 @@
namespace WebCore {
+class Element;
class FrameView;
class ImageBuffer;
class Page;
@@ -45,12 +46,16 @@ public:
return adoptRef(new SVGImage(observer));
}
+ static bool isInSVGImage(const Element*);
+
RenderBox* embeddedContentBox() const;
FrameView* frameView() const;
virtual bool isSVGImage() const OVERRIDE { return true; }
virtual IntSize size() const OVERRIDE { return m_intrinsicSize; }
+ virtual bool hasSingleSecurityOrigin() const OVERRIDE;
+
virtual bool hasRelativeWidth() const OVERRIDE;
virtual bool hasRelativeHeight() const OVERRIDE;
« no previous file with comments | « Source/core/rendering/svg/RenderSVGRoot.cpp ('k') | Source/core/svg/graphics/SVGImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698