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

Side by Side Diff: Source/core/svg/properties/SVGAnimatedProperty.h

Issue 924943009: Fix template angle bracket syntax in svg (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 G* * Redistributions in binary form must reproduce the above 10 G* * Redistributions in binary form must reproduce the above
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 bool m_baseValueUpdated; 242 bool m_baseValueUpdated;
243 }; 243 };
244 244
245 // Implementation of SVGAnimatedProperty which uses tear-off value types. 245 // Implementation of SVGAnimatedProperty which uses tear-off value types.
246 // These classes has "void" for its PrimitiveType. 246 // These classes has "void" for its PrimitiveType.
247 // This is for classes which return special type for its "animVal". 247 // This is for classes which return special type for its "animVal".
248 // Examples are SVGAnimatedLength, SVGAnimatedRect, SVGAnimated*List, etc. 248 // Examples are SVGAnimatedLength, SVGAnimatedRect, SVGAnimated*List, etc.
249 template <typename Property, typename TearOffType> 249 template <typename Property, typename TearOffType>
250 class SVGAnimatedProperty<Property, TearOffType, void> : public SVGAnimatedPrope rtyCommon<Property> { 250 class SVGAnimatedProperty<Property, TearOffType, void> : public SVGAnimatedPrope rtyCommon<Property> {
251 public: 251 public:
252 static PassRefPtrWillBeRawPtr<SVGAnimatedProperty<Property> > create(SVGElem ent* contextElement, const QualifiedName& attributeName, PassRefPtrWillBeRawPtr< Property> initialValue) 252 static PassRefPtrWillBeRawPtr<SVGAnimatedProperty<Property>> create(SVGEleme nt* contextElement, const QualifiedName& attributeName, PassRefPtrWillBeRawPtr<P roperty> initialValue)
253 { 253 {
254 return adoptRefWillBeNoop(new SVGAnimatedProperty<Property>(contextEleme nt, attributeName, initialValue)); 254 return adoptRefWillBeNoop(new SVGAnimatedProperty<Property>(contextEleme nt, attributeName, initialValue));
255 } 255 }
256 256
257 virtual void setAnimatedValue(PassRefPtrWillBeRawPtr<SVGPropertyBase> value) override 257 virtual void setAnimatedValue(PassRefPtrWillBeRawPtr<SVGPropertyBase> value) override
258 { 258 {
259 SVGAnimatedPropertyCommon<Property>::setAnimatedValue(value); 259 SVGAnimatedPropertyCommon<Property>::setAnimatedValue(value);
260 updateAnimValTearOffIfNeeded(); 260 updateAnimValTearOffIfNeeded();
261 } 261 }
262 262
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 // When animated: 321 // When animated:
322 // m_animValTearOff targets m_currentValue. 322 // m_animValTearOff targets m_currentValue.
323 // m_baseValTearOff targets m_baseValue. 323 // m_baseValTearOff targets m_baseValue.
324 RefPtrWillBeMember<TearOffType> m_baseValTearOff; 324 RefPtrWillBeMember<TearOffType> m_baseValTearOff;
325 RefPtrWillBeMember<TearOffType> m_animValTearOff; 325 RefPtrWillBeMember<TearOffType> m_animValTearOff;
326 }; 326 };
327 327
328 } // namespace blink 328 } // namespace blink
329 329
330 #endif // SVGAnimatedProperty_h 330 #endif // SVGAnimatedProperty_h
OLDNEW
« no previous file with comments | « Source/core/svg/graphics/filters/SVGFilterBuilder.h ('k') | Source/core/svg/properties/SVGListPropertyHelper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698