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

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

Issue 180973005: Respect SVG fragment identifiers in <img> src attribute (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: remove include Created 6 years, 8 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/html/parser/HTMLSrcsetParserTest.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 891d1bc199b802ea764809241272b84ad3143609..3b491ee32e23c08bbbdf8ddb9e42540e0aadc29a 100644
--- a/Source/core/svg/graphics/SVGImage.h
+++ b/Source/core/svg/graphics/SVGImage.h
@@ -29,6 +29,7 @@
#include "platform/graphics/Image.h"
#include "platform/heap/Handle.h"
+#include "platform/weborigin/KURL.h"
namespace WebCore {
@@ -53,6 +54,7 @@ public:
virtual bool isSVGImage() const OVERRIDE { return true; }
virtual IntSize size() const OVERRIDE { return m_intrinsicSize; }
+ void setURL(const KURL& url) { m_url = url; }
virtual bool currentFrameHasSingleSecurityOrigin() const OVERRIDE;
@@ -101,6 +103,7 @@ private:
OwnPtr<SVGImageChromeClient> m_chromeClient;
OwnPtrWillBePersistent<Page> m_page;
IntSize m_intrinsicSize;
+ KURL m_url;
};
DEFINE_IMAGE_TYPE_CASTS(SVGImage);
« no previous file with comments | « Source/core/html/parser/HTMLSrcsetParserTest.cpp ('k') | Source/core/svg/graphics/SVGImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698