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

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

Issue 344883007: SVG: Move/rename reference management to SVGElement (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove sed script from CL Created 6 years, 5 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 | Annotate | Revision Log
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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 if (shouldApply == DontApplyAnimation) 168 if (shouldApply == DontApplyAnimation)
169 return; 169 return;
170 170
171 if (shouldApply == ApplyXMLAnimation) { 171 if (shouldApply == ApplyXMLAnimation) {
172 // SVG DOM animVal animation code-path. 172 // SVG DOM animVal animation code-path.
173 WillBeHeapVector<RawPtrWillBeMember<SVGElement> > animatedElements = fin dElementInstances(targetElement); 173 WillBeHeapVector<RawPtrWillBeMember<SVGElement> > animatedElements = fin dElementInstances(targetElement);
174 ASSERT(!animatedElements.isEmpty()); 174 ASSERT(!animatedElements.isEmpty());
175 175
176 WillBeHeapVector<RawPtrWillBeMember<SVGElement> >::const_iterator end = animatedElements.end(); 176 WillBeHeapVector<RawPtrWillBeMember<SVGElement> >::const_iterator end = animatedElements.end();
177 for (WillBeHeapVector<RawPtrWillBeMember<SVGElement> >::const_iterator i t = animatedElements.begin(); it != end; ++it) 177 for (WillBeHeapVector<RawPtrWillBeMember<SVGElement> >::const_iterator i t = animatedElements.begin(); it != end; ++it)
178 document().accessSVGExtensions().addElementReferencingTarget(this, * it); 178 addReferenceTo(*it);
179 179
180 if (!m_animatedProperty) 180 if (!m_animatedProperty)
181 m_animatedProperty = animator->startAnimValAnimation(animatedElement s); 181 m_animatedProperty = animator->startAnimValAnimation(animatedElement s);
182 else 182 else
183 m_animatedProperty = animator->resetAnimValToBaseVal(animatedElement s); 183 m_animatedProperty = animator->resetAnimValToBaseVal(animatedElement s);
184 184
185 return; 185 return;
186 } 186 }
187 187
188 // CSS properties animation code-path. 188 // CSS properties animation code-path.
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 return m_animator.get(); 396 return m_animator.get();
397 } 397 }
398 398
399 void SVGAnimateElement::trace(Visitor* visitor) 399 void SVGAnimateElement::trace(Visitor* visitor)
400 { 400 {
401 visitor->trace(m_animator); 401 visitor->trace(m_animator);
402 SVGAnimationElement::trace(visitor); 402 SVGAnimationElement::trace(visitor);
403 } 403 }
404 404
405 } 405 }
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGResource.cpp ('k') | Source/core/svg/SVGDocumentExtensions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698