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

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

Issue 1627713002: Add more missing closing namespace comments. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, address comment (also filed llvm.org/PR26290) Created 4 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) 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 void setAnimatedValueOnAllTargetProperties(const SVGElementInstances& list, cons t QualifiedName& attributeName, PassRefPtrWillBeRawPtr<SVGPropertyBase> passValu e) 167 void setAnimatedValueOnAllTargetProperties(const SVGElementInstances& list, cons t QualifiedName& attributeName, PassRefPtrWillBeRawPtr<SVGPropertyBase> passValu e)
168 { 168 {
169 RefPtrWillBeRawPtr<SVGPropertyBase> value = passValue; 169 RefPtrWillBeRawPtr<SVGPropertyBase> value = passValue;
170 170
171 for (SVGElement* elementInstance : list) { 171 for (SVGElement* elementInstance : list) {
172 if (SVGAnimatedPropertyBase* animatedProperty = elementInstance->propert yFromAttribute(attributeName)) 172 if (SVGAnimatedPropertyBase* animatedProperty = elementInstance->propert yFromAttribute(attributeName))
173 animatedProperty->setAnimatedValue(value); 173 animatedProperty->setAnimatedValue(value);
174 } 174 }
175 } 175 }
176 176
177 } 177 } // namespace
178 178
179 PassRefPtrWillBeRawPtr<SVGPropertyBase> SVGAnimatedTypeAnimator::resetAnimation( const SVGElementInstances& list) 179 PassRefPtrWillBeRawPtr<SVGPropertyBase> SVGAnimatedTypeAnimator::resetAnimation( const SVGElementInstances& list)
180 { 180 {
181 ASSERT(isAnimatingSVGDom()); 181 ASSERT(isAnimatingSVGDom());
182 RefPtrWillBeRawPtr<SVGPropertyBase> animatedValue = m_animatedProperty->crea teAnimatedValue(); 182 RefPtrWillBeRawPtr<SVGPropertyBase> animatedValue = m_animatedProperty->crea teAnimatedValue();
183 ASSERT(animatedValue->type() == m_type); 183 ASSERT(animatedValue->type() == m_type);
184 setAnimatedValueOnAllTargetProperties(list, m_animatedProperty->attributeNam e(), animatedValue); 184 setAnimatedValueOnAllTargetProperties(list, m_animatedProperty->attributeNam e(), animatedValue);
185 185
186 return animatedValue.release(); 186 return animatedValue.release();
187 } 187 }
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 return fromValue->calculateDistance(toValue, m_contextElement); 258 return fromValue->calculateDistance(toValue, m_contextElement);
259 } 259 }
260 260
261 DEFINE_TRACE(SVGAnimatedTypeAnimator) 261 DEFINE_TRACE(SVGAnimatedTypeAnimator)
262 { 262 {
263 visitor->trace(m_animationElement); 263 visitor->trace(m_animationElement);
264 visitor->trace(m_contextElement); 264 visitor->trace(m_contextElement);
265 visitor->trace(m_animatedProperty); 265 visitor->trace(m_animatedProperty);
266 } 266 }
267 267
268 } 268 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGAnimatedPath.cpp ('k') | third_party/WebKit/Source/core/svg/SVGAnimationElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698