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

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

Issue 208133002: [SVG] Remove "New" prefix from properties implementation. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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
« no previous file with comments | « Source/core/svg/SVGTransform.cpp ('k') | Source/core/svg/SVGTransformList.cpp » ('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) 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 15 matching lines...) Expand all
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef SVGTransformList_h 31 #ifndef SVGTransformList_h
32 #define SVGTransformList_h 32 #define SVGTransformList_h
33 33
34 #include "bindings/v8/ScriptWrappable.h" 34 #include "bindings/v8/ScriptWrappable.h"
35 #include "core/svg/SVGTransform.h" 35 #include "core/svg/SVGTransform.h"
36 #include "core/svg/properties/NewSVGListPropertyHelper.h" 36 #include "core/svg/properties/SVGListPropertyHelper.h"
37 37
38 namespace WebCore { 38 namespace WebCore {
39 39
40 class SVGTransformListTearOff; 40 class SVGTransformListTearOff;
41 41
42 class SVGTransformList FINAL : public NewSVGListPropertyHelper<SVGTransformList, SVGTransform> { 42 class SVGTransformList FINAL : public SVGListPropertyHelper<SVGTransformList, SV GTransform> {
43 public: 43 public:
44 typedef SVGTransformListTearOff TearOffType; 44 typedef SVGTransformListTearOff TearOffType;
45 45
46 static PassRefPtr<SVGTransformList> create() 46 static PassRefPtr<SVGTransformList> create()
47 { 47 {
48 return adoptRef(new SVGTransformList()); 48 return adoptRef(new SVGTransformList());
49 } 49 }
50 50
51 static PassRefPtr<SVGTransformList> create(SVGTransformType, const String&); 51 static PassRefPtr<SVGTransformList> create(SVGTransformType, const String&);
52 52
53 virtual ~SVGTransformList(); 53 virtual ~SVGTransformList();
54 54
55 PassRefPtr<SVGTransform> createSVGTransformFromMatrix(const AffineTransform& ) const; 55 PassRefPtr<SVGTransform> createSVGTransformFromMatrix(const AffineTransform& ) const;
56 PassRefPtr<SVGTransform> consolidate(); 56 PassRefPtr<SVGTransform> consolidate();
57 57
58 bool concatenate(AffineTransform& result) const; 58 bool concatenate(AffineTransform& result) const;
59 59
60 // NewSVGPropertyBase: 60 // SVGPropertyBase:
61 virtual PassRefPtr<NewSVGPropertyBase> cloneForAnimation(const String&) cons t OVERRIDE; 61 virtual PassRefPtr<SVGPropertyBase> cloneForAnimation(const String&) const O VERRIDE;
62 PassRefPtr<SVGTransformList> clone(); 62 PassRefPtr<SVGTransformList> clone();
63 63
64 virtual String valueAsString() const OVERRIDE; 64 virtual String valueAsString() const OVERRIDE;
65 void setValueAsString(const String&, ExceptionState&); 65 void setValueAsString(const String&, ExceptionState&);
66 bool parse(const UChar*& ptr, const UChar* end); 66 bool parse(const UChar*& ptr, const UChar* end);
67 bool parse(const LChar*& ptr, const LChar* end); 67 bool parse(const LChar*& ptr, const LChar* end);
68 68
69 virtual void add(PassRefPtr<NewSVGPropertyBase>, SVGElement*) OVERRIDE; 69 virtual void add(PassRefPtr<SVGPropertyBase>, SVGElement*) OVERRIDE;
70 virtual void calculateAnimatedValue(SVGAnimationElement*, float percentage, unsigned repeatCount, PassRefPtr<NewSVGPropertyBase> fromValue, PassRefPtr<NewSV GPropertyBase> toValue, PassRefPtr<NewSVGPropertyBase> toAtEndOfDurationValue, S VGElement*) OVERRIDE; 70 virtual void calculateAnimatedValue(SVGAnimationElement*, float percentage, unsigned repeatCount, PassRefPtr<SVGPropertyBase> fromValue, PassRefPtr<SVGPrope rtyBase> toValue, PassRefPtr<SVGPropertyBase> toAtEndOfDurationValue, SVGElement *) OVERRIDE;
71 virtual float calculateDistance(PassRefPtr<NewSVGPropertyBase> to, SVGElemen t*) OVERRIDE; 71 virtual float calculateDistance(PassRefPtr<SVGPropertyBase> to, SVGElement*) OVERRIDE;
72 72
73 static AnimatedPropertyType classType() { return AnimatedTransformList; } 73 static AnimatedPropertyType classType() { return AnimatedTransformList; }
74 74
75 private: 75 private:
76 SVGTransformList(); 76 SVGTransformList();
77 77
78 bool adjustFromToListValues(PassRefPtr<SVGTransformList> fromList, PassRefPt r<SVGTransformList> toList, float percentage, bool isToAnimation, bool resizeAni matedListIfNeeded); 78 bool adjustFromToListValues(PassRefPtr<SVGTransformList> fromList, PassRefPt r<SVGTransformList> toList, float percentage, bool isToAnimation, bool resizeAni matedListIfNeeded);
79 79
80 template <typename CharType> 80 template <typename CharType>
81 bool parseInternal(const CharType*& ptr, const CharType* end); 81 bool parseInternal(const CharType*& ptr, const CharType* end);
82 }; 82 };
83 83
84 } // namespace WebCore 84 } // namespace WebCore
85 85
86 #endif // SVGTransformList_h 86 #endif // SVGTransformList_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGTransform.cpp ('k') | Source/core/svg/SVGTransformList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698