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

Side by Side Diff: Source/core/svg/SVGAnimatedTypeAnimator.cpp

Issue 896773002: [svg2] Make 'x' and 'y' presentation attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 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 unified diff | Download patch
« no previous file with comments | « Source/core/svg/SVGAnimateElement.cpp ('k') | Source/core/svg/SVGAnimationElement.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) Research In Motion Limited 2011-2012. All rights reserved. 2 * Copyright (C) Research In Motion Limited 2011-2012. All rights reserved.
3 * Copyright (C) 2013 Samsung Electronics. All rights reserved. 3 * Copyright (C) 2013 Samsung Electronics. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 PassRefPtrWillBeRawPtr<SVGPropertyBase> SVGAnimatedTypeAnimator::startAnimValAni mation(const SVGElementInstances& list) 181 PassRefPtrWillBeRawPtr<SVGPropertyBase> SVGAnimatedTypeAnimator::startAnimValAni mation(const SVGElementInstances& list)
182 { 182 {
183 ASSERT(isAnimatingSVGDom()); 183 ASSERT(isAnimatingSVGDom());
184 SVGElement::InstanceUpdateBlocker blocker(m_contextElement); 184 SVGElement::InstanceUpdateBlocker blocker(m_contextElement);
185 185
186 return resetAnimation(list); 186 return resetAnimation(list);
187 } 187 }
188 188
189 void SVGAnimatedTypeAnimator::stopAnimValAnimation(const SVGElementInstances& li st) 189 void SVGAnimatedTypeAnimator::stopAnimValAnimation(const SVGElementInstances& li st)
190 { 190 {
191 ASSERT(isAnimatingSVGDom()); 191 if (!isAnimatingSVGDom())
192 return;
193
192 SVGElement::InstanceUpdateBlocker blocker(m_contextElement); 194 SVGElement::InstanceUpdateBlocker blocker(m_contextElement);
193 195
194 for (SVGElement* elementInstance : list) { 196 for (SVGElement* elementInstance : list) {
195 RefPtrWillBeRawPtr<SVGAnimatedPropertyBase> animatedProperty = elementIn stance->propertyFromAttribute(m_animatedProperty->attributeName()); 197 RefPtrWillBeRawPtr<SVGAnimatedPropertyBase> animatedProperty = elementIn stance->propertyFromAttribute(m_animatedProperty->attributeName());
196 if (animatedProperty) 198 if (animatedProperty)
197 animatedProperty->animationEnded(); 199 animatedProperty->animationEnded();
198 } 200 }
199 } 201 }
200 202
201 PassRefPtrWillBeRawPtr<SVGPropertyBase> SVGAnimatedTypeAnimator::resetAnimValToB aseVal(const SVGElementInstances& list) 203 PassRefPtrWillBeRawPtr<SVGPropertyBase> SVGAnimatedTypeAnimator::resetAnimValToB aseVal(const SVGElementInstances& list)
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 } 252 }
251 253
252 void SVGAnimatedTypeAnimator::trace(Visitor* visitor) 254 void SVGAnimatedTypeAnimator::trace(Visitor* visitor)
253 { 255 {
254 visitor->trace(m_animationElement); 256 visitor->trace(m_animationElement);
255 visitor->trace(m_contextElement); 257 visitor->trace(m_contextElement);
256 visitor->trace(m_animatedProperty); 258 visitor->trace(m_animatedProperty);
257 } 259 }
258 260
259 } 261 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGAnimateElement.cpp ('k') | Source/core/svg/SVGAnimationElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698