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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGAnimateElement.cpp

Issue 2623513005: Introduce Element::AttributeModificationParams (Closed)
Patch Set: Created 3 years, 11 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org>
4 * Copyright (C) 2008 Apple Inc. All rights reserved. 4 * Copyright (C) 2008 Apple Inc. All rights reserved.
5 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 5 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 } 145 }
146 return InsertionDone; 146 return InsertionDone;
147 } 147 }
148 148
149 void SVGAnimateElement::removedFrom(ContainerNode* rootParent) { 149 void SVGAnimateElement::removedFrom(ContainerNode* rootParent) {
150 if (rootParent->isConnected()) 150 if (rootParent->isConnected())
151 setAttributeName(anyQName()); 151 setAttributeName(anyQName());
152 SVGAnimationElement::removedFrom(rootParent); 152 SVGAnimationElement::removedFrom(rootParent);
153 } 153 }
154 154
155 void SVGAnimateElement::parseAttribute(const QualifiedName& name, 155 void SVGAnimateElement::parseAttribute(
156 const AtomicString& oldValue, 156 const AttributeModificationParams& params) {
157 const AtomicString& value) { 157 if (params.name == SVGNames::attributeTypeAttr) {
158 if (name == SVGNames::attributeTypeAttr) { 158 setAttributeType(params.newValue);
159 setAttributeType(value);
160 return; 159 return;
161 } 160 }
162 SVGAnimationElement::parseAttribute(name, oldValue, value); 161 SVGAnimationElement::parseAttribute(params);
163 } 162 }
164 163
165 void SVGAnimateElement::svgAttributeChanged(const QualifiedName& attrName) { 164 void SVGAnimateElement::svgAttributeChanged(const QualifiedName& attrName) {
166 if (attrName == SVGNames::attributeTypeAttr) { 165 if (attrName == SVGNames::attributeTypeAttr) {
167 } else if (attrName == SVGNames::attributeNameAttr) { 166 } else if (attrName == SVGNames::attributeNameAttr) {
168 setAttributeName(constructQualifiedName( 167 setAttributeName(constructQualifiedName(
169 *this, fastGetAttribute(SVGNames::attributeNameAttr))); 168 *this, fastGetAttribute(SVGNames::attributeNameAttr)));
170 } else { 169 } else {
171 SVGAnimationElement::svgAttributeChanged(attrName); 170 SVGAnimationElement::svgAttributeChanged(attrName);
172 return; 171 return;
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 DEFINE_TRACE(SVGAnimateElement) { 613 DEFINE_TRACE(SVGAnimateElement) {
615 visitor->trace(m_fromProperty); 614 visitor->trace(m_fromProperty);
616 visitor->trace(m_toProperty); 615 visitor->trace(m_toProperty);
617 visitor->trace(m_toAtEndOfDurationProperty); 616 visitor->trace(m_toAtEndOfDurationProperty);
618 visitor->trace(m_animatedValue); 617 visitor->trace(m_animatedValue);
619 visitor->trace(m_targetProperty); 618 visitor->trace(m_targetProperty);
620 SVGAnimationElement::trace(visitor); 619 SVGAnimationElement::trace(visitor);
621 } 620 }
622 621
623 } // namespace blink 622 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGAnimateElement.h ('k') | third_party/WebKit/Source/core/svg/SVGAnimateMotionElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698