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

Unified Diff: Source/core/svg/graphics/SVGImageForContainer.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/svg/graphics/SVGImageCache.cpp ('k') | Source/core/svg/graphics/SVGImageForContainer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/graphics/SVGImageForContainer.h
diff --git a/Source/core/svg/graphics/SVGImageForContainer.h b/Source/core/svg/graphics/SVGImageForContainer.h
index aea94bc459b158e38fc97a650e9ac3be33c3850f..1333acfcd6f0ad11e9d87cd0ff12538df762f4b2 100644
--- a/Source/core/svg/graphics/SVGImageForContainer.h
+++ b/Source/core/svg/graphics/SVGImageForContainer.h
@@ -30,6 +30,7 @@
#include "platform/geometry/FloatRect.h"
#include "platform/geometry/FloatSize.h"
#include "platform/graphics/Image.h"
+#include "platform/weborigin/KURL.h"
namespace WebCore {
@@ -43,6 +44,7 @@ public:
virtual bool isSVGImage() const OVERRIDE { return true; }
virtual IntSize size() const OVERRIDE;
+ void setURL(const KURL& url) { m_image->setURL(url); }
virtual bool usesContainerSize() const OVERRIDE { return m_image->usesContainerSize(); }
virtual bool hasRelativeWidth() const OVERRIDE { return m_image->hasRelativeWidth(); }
« no previous file with comments | « Source/core/svg/graphics/SVGImageCache.cpp ('k') | Source/core/svg/graphics/SVGImageForContainer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698