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

Unified Diff: Source/core/svg/SVGURIReference.h

Issue 169103002: Drop [LegacyImplementedInBaseClass] from SVGURIReference IDL interface (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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
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

Powered by Google App Engine
This is Rietveld 408576698