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

Side by Side Diff: Source/core/svg/SVGAnimatedNumberOptionalNumber.h

Issue 304863002: SVG: Remove SVGAnimatedPropertyBase::startAnimation and its overrides which are already all NOOP (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 30 matching lines...) Expand all
41 // while DOM attribute and SMIL animations operate on this class. 41 // while DOM attribute and SMIL animations operate on this class.
42 // From Javascript, the two SVGAnimatedNumbers |firstNumber| and |secondNumber| are used. 42 // From Javascript, the two SVGAnimatedNumbers |firstNumber| and |secondNumber| are used.
43 // For example, see SVGFEDropShadowElement::stdDeviation{X,Y}() 43 // For example, see SVGFEDropShadowElement::stdDeviation{X,Y}()
44 class SVGAnimatedNumberOptionalNumber : public SVGAnimatedPropertyCommon<SVGNumb erOptionalNumber> { 44 class SVGAnimatedNumberOptionalNumber : public SVGAnimatedPropertyCommon<SVGNumb erOptionalNumber> {
45 public: 45 public:
46 static PassRefPtr<SVGAnimatedNumberOptionalNumber> create(SVGElement* contex tElement, const QualifiedName& attributeName, float initialFirstValue = 0, float initialSecondValue = 0) 46 static PassRefPtr<SVGAnimatedNumberOptionalNumber> create(SVGElement* contex tElement, const QualifiedName& attributeName, float initialFirstValue = 0, float initialSecondValue = 0)
47 { 47 {
48 return adoptRef(new SVGAnimatedNumberOptionalNumber(contextElement, attr ibuteName, initialFirstValue, initialSecondValue)); 48 return adoptRef(new SVGAnimatedNumberOptionalNumber(contextElement, attr ibuteName, initialFirstValue, initialSecondValue));
49 } 49 }
50 50
51 virtual void animationStarted() OVERRIDE;
52 virtual void setAnimatedValue(PassRefPtr<SVGPropertyBase>) OVERRIDE; 51 virtual void setAnimatedValue(PassRefPtr<SVGPropertyBase>) OVERRIDE;
53 virtual bool needsSynchronizeAttribute() OVERRIDE; 52 virtual bool needsSynchronizeAttribute() OVERRIDE;
54 virtual void animationEnded() OVERRIDE; 53 virtual void animationEnded() OVERRIDE;
55 54
56 SVGAnimatedNumber* firstNumber() { return m_firstNumber.get(); } 55 SVGAnimatedNumber* firstNumber() { return m_firstNumber.get(); }
57 SVGAnimatedNumber* secondNumber() { return m_secondNumber.get(); } 56 SVGAnimatedNumber* secondNumber() { return m_secondNumber.get(); }
58 57
59 protected: 58 protected:
60 SVGAnimatedNumberOptionalNumber(SVGElement* contextElement, const QualifiedN ame& attributeName, float initialFirstValue, float initialSecondValue); 59 SVGAnimatedNumberOptionalNumber(SVGElement* contextElement, const QualifiedN ame& attributeName, float initialFirstValue, float initialSecondValue);
61 60
62 RefPtr<SVGAnimatedNumber> m_firstNumber; 61 RefPtr<SVGAnimatedNumber> m_firstNumber;
63 RefPtr<SVGAnimatedNumber> m_secondNumber; 62 RefPtr<SVGAnimatedNumber> m_secondNumber;
64 }; 63 };
65 64
66 } // namespace WebCore 65 } // namespace WebCore
67 66
68 #endif // SVGAnimatedNumberOptionalNumber_h 67 #endif // SVGAnimatedNumberOptionalNumber_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698