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

Side by Side Diff: Source/core/svg/SVGPathSeg.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/SVGNumberTearOff.cpp ('k') | Source/core/svg/SVGPathSegList.h » ('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) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org>
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 PathSegCurveToQuadraticSmoothAbs = 18, 57 PathSegCurveToQuadraticSmoothAbs = 18,
58 PathSegCurveToQuadraticSmoothRel = 19 58 PathSegCurveToQuadraticSmoothRel = 19
59 }; 59 };
60 60
61 enum SVGPathSegRole { 61 enum SVGPathSegRole {
62 PathSegUnalteredRole = 0, 62 PathSegUnalteredRole = 0,
63 PathSegNormalizedRole = 1, 63 PathSegNormalizedRole = 1,
64 PathSegUndefinedRole = 2 64 PathSegUndefinedRole = 2
65 }; 65 };
66 66
67 class NewSVGPropertyBase; 67 class SVGPropertyBase;
68 class SVGPathElement; 68 class SVGPathElement;
69 class SVGElement; 69 class SVGElement;
70 70
71 class SVGPathSeg : public RefCounted<SVGPathSeg>, public ScriptWrappable { 71 class SVGPathSeg : public RefCounted<SVGPathSeg>, public ScriptWrappable {
72 public: 72 public:
73 // SVGPathSeg itself is used as a tear-off type. 73 // SVGPathSeg itself is used as a tear-off type.
74 // FIXME: A tear-off type should be introduced to distinguish animVal/baseVa l 74 // FIXME: A tear-off type should be introduced to distinguish animVal/baseVa l
75 typedef SVGPathSeg TearOffType; 75 typedef SVGPathSeg TearOffType;
76 76
77 explicit SVGPathSeg(SVGPathElement* contextElement); 77 explicit SVGPathSeg(SVGPathElement* contextElement);
(...skipping 20 matching lines...) Expand all
98 PATHSEG_LINETO_VERTICAL_REL = PathSegLineToVerticalRel, 98 PATHSEG_LINETO_VERTICAL_REL = PathSegLineToVerticalRel,
99 PATHSEG_CURVETO_CUBIC_SMOOTH_ABS = PathSegCurveToCubicSmoothAbs, 99 PATHSEG_CURVETO_CUBIC_SMOOTH_ABS = PathSegCurveToCubicSmoothAbs,
100 PATHSEG_CURVETO_CUBIC_SMOOTH_REL = PathSegCurveToCubicSmoothRel, 100 PATHSEG_CURVETO_CUBIC_SMOOTH_REL = PathSegCurveToCubicSmoothRel,
101 PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = PathSegCurveToQuadraticSmoothAbs, 101 PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = PathSegCurveToQuadraticSmoothAbs,
102 PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = PathSegCurveToQuadraticSmoothRel 102 PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = PathSegCurveToQuadraticSmoothRel
103 }; 103 };
104 104
105 virtual unsigned short pathSegType() const = 0; 105 virtual unsigned short pathSegType() const = 0;
106 virtual String pathSegTypeAsLetter() const = 0; 106 virtual String pathSegTypeAsLetter() const = 0;
107 107
108 NewSVGPropertyBase* ownerList() const 108 SVGPropertyBase* ownerList() const
109 { 109 {
110 return m_ownerList; 110 return m_ownerList;
111 } 111 }
112 112
113 void setOwnerList(NewSVGPropertyBase* ownerList) 113 void setOwnerList(SVGPropertyBase* ownerList)
114 { 114 {
115 // Previous owner list must be cleared before setting new owner list. 115 // Previous owner list must be cleared before setting new owner list.
116 ASSERT((!ownerList && m_ownerList) || (ownerList && !m_ownerList)); 116 ASSERT((!ownerList && m_ownerList) || (ownerList && !m_ownerList));
117 117
118 m_ownerList = ownerList; 118 m_ownerList = ownerList;
119 } 119 }
120 120
121 void setContextElement(SVGElement* contextElement) 121 void setContextElement(SVGElement* contextElement)
122 { 122 {
123 m_contextElement = contextElement; 123 m_contextElement = contextElement;
124 } 124 }
125 125
126 protected: 126 protected:
127 void commitChange(); 127 void commitChange();
128 128
129 private: 129 private:
130 // FIXME: oilpan: These are kept as raw ptrs to break reference cycle. Shoul d be Member in oilpan. 130 // FIXME: oilpan: These are kept as raw ptrs to break reference cycle. Shoul d be Member in oilpan.
131 NewSVGPropertyBase* m_ownerList; 131 SVGPropertyBase* m_ownerList;
132 SVGElement* m_contextElement; 132 SVGElement* m_contextElement;
133 }; 133 };
134 134
135 } // namespace WebCore 135 } // namespace WebCore
136 136
137 #endif 137 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGNumberTearOff.cpp ('k') | Source/core/svg/SVGPathSegList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698