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

Unified Diff: Source/core/svg/SVGAElement.cpp

Issue 18053005: Introduce SVGGraphicsElement IDL interface (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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/SVGAElement.cpp
diff --git a/Source/core/svg/SVGAElement.cpp b/Source/core/svg/SVGAElement.cpp
index b02c7783e7f5083328f0a64e096602c289f5458e..5eca43772ab6ac11dd57bd84117d11b0c7ca56cb 100644
--- a/Source/core/svg/SVGAElement.cpp
+++ b/Source/core/svg/SVGAElement.cpp
@@ -59,15 +59,14 @@ DEFINE_ANIMATED_STRING(SVGAElement, XLinkNames::hrefAttr, Href, href)
DEFINE_ANIMATED_BOOLEAN(SVGAElement, SVGNames::externalResourcesRequiredAttr, ExternalResourcesRequired, externalResourcesRequired)
BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGAElement)
- REGISTER_LOCAL_ANIMATED_PROPERTY(svgTarget)
- REGISTER_LOCAL_ANIMATED_PROPERTY(href)
- REGISTER_LOCAL_ANIMATED_PROPERTY(externalResourcesRequired)
- REGISTER_PARENT_ANIMATED_PROPERTIES(SVGStyledTransformableElement)
- REGISTER_PARENT_ANIMATED_PROPERTIES(SVGTests)
+ REGISTER_LOCAL_ANIMATED_PROPERTY(svgTarget)
+ REGISTER_LOCAL_ANIMATED_PROPERTY(href)
+ REGISTER_LOCAL_ANIMATED_PROPERTY(externalResourcesRequired)
+ REGISTER_PARENT_ANIMATED_PROPERTIES(SVGGraphicsElement)
END_REGISTER_ANIMATED_PROPERTIES
inline SVGAElement::SVGAElement(const QualifiedName& tagName, Document* document)
- : SVGStyledTransformableElement(tagName, document)
+ : SVGGraphicsElement(tagName, document)
{
ASSERT(hasTagName(SVGNames::aTag));
ScriptWrappable::init(this);
@@ -106,7 +105,7 @@ bool SVGAElement::isSupportedAttribute(const QualifiedName& attrName)
void SVGAElement::parseAttribute(const QualifiedName& name, const AtomicString& value)
{
if (!isSupportedAttribute(name)) {
- SVGStyledTransformableElement::parseAttribute(name, value);
+ SVGGraphicsElement::parseAttribute(name, value);
return;
}
@@ -130,7 +129,7 @@ void SVGAElement::parseAttribute(const QualifiedName& name, const AtomicString&
void SVGAElement::svgAttributeChanged(const QualifiedName& attrName)
{
if (!isSupportedAttribute(attrName)) {
- SVGStyledTransformableElement::svgAttributeChanged(attrName);
+ SVGGraphicsElement::svgAttributeChanged(attrName);
return;
}
@@ -192,13 +191,13 @@ void SVGAElement::defaultEventHandler(Event* event)
}
}
- SVGStyledTransformableElement::defaultEventHandler(event);
+ SVGGraphicsElement::defaultEventHandler(event);
}
bool SVGAElement::supportsFocus() const
{
if (rendererIsEditable())
- return SVGStyledTransformableElement::supportsFocus();
+ return SVGGraphicsElement::supportsFocus();
return true;
}
@@ -212,7 +211,7 @@ bool SVGAElement::rendererIsFocusable() const
bool SVGAElement::isURLAttribute(const Attribute& attribute) const
{
- return attribute.name().localName() == hrefAttr || SVGStyledTransformableElement::isURLAttribute(attribute);
+ return attribute.name().localName() == hrefAttr || SVGGraphicsElement::isURLAttribute(attribute);
}
bool SVGAElement::isMouseFocusable() const

Powered by Google App Engine
This is Rietveld 408576698