summaryrefslogtreecommitdiffstats
path: root/WebCore/svg/SVGAElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/svg/SVGAElement.h')
-rw-r--r--WebCore/svg/SVGAElement.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/WebCore/svg/SVGAElement.h b/WebCore/svg/SVGAElement.h
index 0effda2..f919a6e 100644
--- a/WebCore/svg/SVGAElement.h
+++ b/WebCore/svg/SVGAElement.h
@@ -46,6 +46,7 @@ namespace WebCore {
virtual bool isValid() const { return SVGTests::isValid(); }
virtual String title() const;
+ virtual String target() const { return svgTarget(); }
virtual void parseMappedAttribute(Attribute*);
virtual void svgAttributeChanged(const QualifiedName&);
@@ -62,10 +63,13 @@ namespace WebCore {
virtual bool childShouldCreateRenderer(Node*) const;
- DECLARE_ANIMATED_PROPERTY(SVGAElement, SVGNames::targetAttr, String, Target, target)
+ // This defines a non-virtual "String& target() const" method before, that would clash with "virtual String target() const"
+ // in Element. That's why it's now named "String& svgTarget() const", to avoid the clash. The CodeGenerators take care
+ // of calling svgTargetAnimated() instead of targetAnimated(), see CodeGenerator.pm.
+ DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGAElement, SVGNames::targetAttr, String, SVGTarget, svgTarget)
// SVGURIReference
- DECLARE_ANIMATED_PROPERTY(SVGAElement, XLinkNames::hrefAttr, String, Href, href)
+ DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGAElement, XLinkNames::hrefAttr, String, Href, href)
// SVGExternalResourcesRequired
DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGAElement, SVGNames::externalResourcesRequiredAttr, bool, ExternalResourcesRequired, externalResourcesRequired)