Index: Source/core/svg/SVGURIReference.h |
diff --git a/Source/core/svg/SVGURIReference.h b/Source/core/svg/SVGURIReference.h |
index ee59ed66bcd6d57cdc303d5dadf05451491d2989..93d4d072ab0dda5180be8dc767720726a9b9c0f0 100644 |
--- a/Source/core/svg/SVGURIReference.h |
+++ b/Source/core/svg/SVGURIReference.h |
@@ -22,6 +22,7 @@ |
#define SVGURIReference_h |
#include "core/dom/Document.h" |
+#include "core/svg/SVGAnimatedString.h" |
namespace WebCore { |
@@ -48,6 +49,20 @@ public: |
KURL url = document.completeURL(uri); |
return !equalIgnoringFragmentIdentifier(url, document.url()); |
} |
+ |
+ // SVGURIReference JS API. |
+ static SVGAnimatedString* href(SVGURIReference* object) { return object->href(); } |
+ |
+ SVGAnimatedString* href() const { return m_href.get(); } |
+ const String& hrefString() const { return m_href->currentValue()->value(); } |
+ |
+ bool parseAttribute(const QualifiedName&, const AtomicString& value, SVGParsingError&); |
+ |
+protected: |
+ explicit SVGURIReference(SVGElement*); |
+ |
+private: |
+ RefPtr<SVGAnimatedString> m_href; |
}; |
} // namespace WebCore |