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

Unified Diff: third_party/WebKit/Source/core/svg/SVGAnimateTransformElement.cpp

Issue 2599853003: Remove SVGAnimateElement::hasValidAttributeType (Closed)
Patch Set: Created 4 years 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 | « third_party/WebKit/Source/core/svg/SVGAnimateTransformElement.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/svg/SVGAnimateTransformElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGAnimateTransformElement.cpp b/third_party/WebKit/Source/core/svg/SVGAnimateTransformElement.cpp
index 770793580dc537088910a76b803b4a9a945d06dc..51032713c354a0fc6e7e355e7d01a5c4a02c6c5f 100644
--- a/third_party/WebKit/Source/core/svg/SVGAnimateTransformElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGAnimateTransformElement.cpp
@@ -35,15 +35,12 @@ inline SVGAnimateTransformElement::SVGAnimateTransformElement(
DEFINE_NODE_FACTORY(SVGAnimateTransformElement)
-bool SVGAnimateTransformElement::hasValidAttributeType() {
- SVGElement* targetElement = this->targetElement();
- if (!targetElement)
+bool SVGAnimateTransformElement::hasValidTarget() {
+ if (!SVGAnimateElement::hasValidTarget())
return false;
-
if (getAttributeType() == AttributeTypeCSS)
return false;
-
- return animatedPropertyType() == AnimatedTransformList;
+ return m_type == AnimatedTransformList;
}
void SVGAnimateTransformElement::resolveTargetProperty() {
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGAnimateTransformElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698