Changeset 183536 in webkit
- Timestamp:
- Apr 29, 2015 1:17:08 AM (9 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 34 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r183530 r183536 1 2015-04-29 Gyuyoung Kim <gyuyoung.kim@webkit.org> 2 3 Purge PassRefPtr from createSVGPathSegFoo factory functions 4 https://bugs.webkit.org/show_bug.cgi?id=144374 5 6 Reviewed by Darin Adler. 7 8 Use Ref instead of PassRefPtr in createSVGPathSegFoo functions because 9 those factory functions can't return null. Additionally let's remove unnecessary 10 #include<PassRefPtr.h> there. 11 12 No new tests, no behavior changes. 13 14 * svg/SVGColor.cpp: 15 (WebCore::SVGColor::cloneForCSSOM): 16 * svg/SVGColor.h: 17 * svg/SVGGlyphMap.h: 18 (WebCore::GlyphMapNode::create): 19 * svg/SVGPaint.cpp: 20 (WebCore::SVGPaint::cloneForCSSOM): 21 * svg/SVGPaint.h: 22 * svg/SVGPathElement.cpp: 23 (WebCore::SVGPathElement::createSVGPathSegClosePath): 24 (WebCore::SVGPathElement::createSVGPathSegMovetoAbs): 25 (WebCore::SVGPathElement::createSVGPathSegMovetoRel): 26 (WebCore::SVGPathElement::createSVGPathSegLinetoAbs): 27 (WebCore::SVGPathElement::createSVGPathSegLinetoRel): 28 (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicAbs): 29 (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicRel): 30 (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticAbs): 31 (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticRel): 32 (WebCore::SVGPathElement::createSVGPathSegArcAbs): 33 (WebCore::SVGPathElement::createSVGPathSegArcRel): 34 (WebCore::SVGPathElement::createSVGPathSegLinetoHorizontalAbs): 35 (WebCore::SVGPathElement::createSVGPathSegLinetoHorizontalRel): 36 (WebCore::SVGPathElement::createSVGPathSegLinetoVerticalAbs): 37 (WebCore::SVGPathElement::createSVGPathSegLinetoVerticalRel): 38 (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicSmoothAbs): 39 (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicSmoothRel): 40 (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothAbs): 41 (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothRel): 42 * svg/SVGPathElement.h: 43 * svg/SVGPathSegArcAbs.h: 44 (WebCore::SVGPathSegArcAbs::create): 45 * svg/SVGPathSegArcRel.h: 46 (WebCore::SVGPathSegArcRel::create): 47 * svg/SVGPathSegClosePath.h: 48 (WebCore::SVGPathSegClosePath::create): 49 * svg/SVGPathSegCurvetoCubicAbs.h: 50 (WebCore::SVGPathSegCurvetoCubicAbs::create): 51 * svg/SVGPathSegCurvetoCubicRel.h: 52 (WebCore::SVGPathSegCurvetoCubicRel::create): 53 * svg/SVGPathSegCurvetoCubicSmoothAbs.h: 54 (WebCore::SVGPathSegCurvetoCubicSmoothAbs::create): 55 * svg/SVGPathSegCurvetoCubicSmoothRel.h: 56 (WebCore::SVGPathSegCurvetoCubicSmoothRel::create): 57 * svg/SVGPathSegCurvetoQuadraticAbs.h: 58 (WebCore::SVGPathSegCurvetoQuadraticAbs::create): 59 * svg/SVGPathSegCurvetoQuadraticRel.h: 60 (WebCore::SVGPathSegCurvetoQuadraticRel::create): 61 * svg/SVGPathSegCurvetoQuadraticSmoothAbs.h: 62 (WebCore::SVGPathSegCurvetoQuadraticSmoothAbs::create): 63 * svg/SVGPathSegCurvetoQuadraticSmoothRel.h: 64 (WebCore::SVGPathSegCurvetoQuadraticSmoothRel::create): 65 * svg/SVGPathSegLinetoAbs.h: 66 (WebCore::SVGPathSegLinetoAbs::create): 67 * svg/SVGPathSegLinetoHorizontalAbs.h: 68 (WebCore::SVGPathSegLinetoHorizontalAbs::create): 69 * svg/SVGPathSegLinetoHorizontalRel.h: 70 (WebCore::SVGPathSegLinetoHorizontalRel::create): 71 * svg/SVGPathSegLinetoRel.h: 72 (WebCore::SVGPathSegLinetoRel::create): 73 * svg/SVGPathSegLinetoVerticalAbs.h: 74 (WebCore::SVGPathSegLinetoVerticalAbs::create): 75 * svg/SVGPathSegLinetoVerticalRel.h: 76 (WebCore::SVGPathSegLinetoVerticalRel::create): 77 * svg/SVGPathSegMovetoAbs.h: 78 (WebCore::SVGPathSegMovetoAbs::create): 79 * svg/SVGPathSegMovetoRel.h: 80 (WebCore::SVGPathSegMovetoRel::create): 81 * svg/SVGViewSpec.h: 82 (WebCore::SVGViewSpec::create): 83 * svg/animation/SMILTimeContainer.h: 84 (WebCore::SMILTimeContainer::create): 85 * svg/animation/SVGSMILElement.cpp: 86 (WebCore::ConditionEventListener::create): 87 * svg/graphics/SVGImage.h: 88 * svg/graphics/SVGImageForContainer.h: 89 * svg/graphics/filters/SVGFilter.cpp: 90 (WebCore::SVGFilter::create): 91 * svg/graphics/filters/SVGFilter.h: 92 1 93 2015-04-28 Simon Fraser <simon.fraser@apple.com> 2 94 -
trunk/Source/WebCore/svg/SVGColor.cpp
r163440 r183536 98 98 } 99 99 100 PassRefPtr<SVGColor> SVGColor::cloneForCSSOM() const100 Ref<SVGColor> SVGColor::cloneForCSSOM() const 101 101 { 102 return adoptRef( new SVGColor(SVGColorClass, *this));102 return adoptRef(*new SVGColor(SVGColorClass, *this)); 103 103 } 104 104 -
trunk/Source/WebCore/svg/SVGColor.h
r177259 r183536 25 25 #include "CSSValue.h" 26 26 #include "Color.h" 27 #include <wtf/PassRefPtr.h>28 27 29 28 namespace WebCore { … … 73 72 ~SVGColor() { } 74 73 75 PassRefPtr<SVGColor> cloneForCSSOM() const;74 Ref<SVGColor> cloneForCSSOM() const; 76 75 77 76 bool equals(const SVGColor&) const; -
trunk/Source/WebCore/svg/SVGGlyphMap.h
r165848 r183536 40 40 GlyphMapNode() { } 41 41 public: 42 static PassRefPtr<GlyphMapNode> create() { return adoptRef(new GlyphMapNode); }42 static Ref<GlyphMapNode> create() { return adoptRef(*new GlyphMapNode); } 43 43 44 44 Vector<SVGGlyph> glyphs; -
trunk/Source/WebCore/svg/SVGPaint.cpp
r163440 r183536 105 105 } 106 106 107 PassRefPtr<SVGPaint> SVGPaint::cloneForCSSOM() const107 Ref<SVGPaint> SVGPaint::cloneForCSSOM() const 108 108 { 109 return adoptRef( new SVGPaint(*this));109 return adoptRef(*new SVGPaint(*this)); 110 110 } 111 111 -
trunk/Source/WebCore/svg/SVGPaint.h
r177259 r183536 91 91 String customCSSText() const; 92 92 93 PassRefPtr<SVGPaint> cloneForCSSOM() const;93 Ref<SVGPaint> cloneForCSSOM() const; 94 94 95 95 bool equals(const SVGPaint&) const; -
trunk/Source/WebCore/svg/SVGPathElement.cpp
r183160 r183536 115 115 } 116 116 117 Ref Ptr<SVGPathSegClosePath> SVGPathElement::createSVGPathSegClosePath(SVGPathSegRole role)117 Ref<SVGPathSegClosePath> SVGPathElement::createSVGPathSegClosePath(SVGPathSegRole role) 118 118 { 119 119 return SVGPathSegClosePath::create(this, role); 120 120 } 121 121 122 Ref Ptr<SVGPathSegMovetoAbs> SVGPathElement::createSVGPathSegMovetoAbs(float x, float y, SVGPathSegRole role)122 Ref<SVGPathSegMovetoAbs> SVGPathElement::createSVGPathSegMovetoAbs(float x, float y, SVGPathSegRole role) 123 123 { 124 124 return SVGPathSegMovetoAbs::create(this, role, x, y); 125 125 } 126 126 127 Ref Ptr<SVGPathSegMovetoRel> SVGPathElement::createSVGPathSegMovetoRel(float x, float y, SVGPathSegRole role)127 Ref<SVGPathSegMovetoRel> SVGPathElement::createSVGPathSegMovetoRel(float x, float y, SVGPathSegRole role) 128 128 { 129 129 return SVGPathSegMovetoRel::create(this, role, x, y); 130 130 } 131 131 132 Ref Ptr<SVGPathSegLinetoAbs> SVGPathElement::createSVGPathSegLinetoAbs(float x, float y, SVGPathSegRole role)132 Ref<SVGPathSegLinetoAbs> SVGPathElement::createSVGPathSegLinetoAbs(float x, float y, SVGPathSegRole role) 133 133 { 134 134 return SVGPathSegLinetoAbs::create(this, role, x, y); 135 135 } 136 136 137 Ref Ptr<SVGPathSegLinetoRel> SVGPathElement::createSVGPathSegLinetoRel(float x, float y, SVGPathSegRole role)137 Ref<SVGPathSegLinetoRel> SVGPathElement::createSVGPathSegLinetoRel(float x, float y, SVGPathSegRole role) 138 138 { 139 139 return SVGPathSegLinetoRel::create(this, role, x, y); 140 140 } 141 141 142 Ref Ptr<SVGPathSegCurvetoCubicAbs> SVGPathElement::createSVGPathSegCurvetoCubicAbs(float x, float y, float x1, float y1, float x2, float y2, SVGPathSegRole role)142 Ref<SVGPathSegCurvetoCubicAbs> SVGPathElement::createSVGPathSegCurvetoCubicAbs(float x, float y, float x1, float y1, float x2, float y2, SVGPathSegRole role) 143 143 { 144 144 return SVGPathSegCurvetoCubicAbs::create(this, role, x, y, x1, y1, x2, y2); 145 145 } 146 146 147 Ref Ptr<SVGPathSegCurvetoCubicRel> SVGPathElement::createSVGPathSegCurvetoCubicRel(float x, float y, float x1, float y1, float x2, float y2, SVGPathSegRole role)147 Ref<SVGPathSegCurvetoCubicRel> SVGPathElement::createSVGPathSegCurvetoCubicRel(float x, float y, float x1, float y1, float x2, float y2, SVGPathSegRole role) 148 148 { 149 149 return SVGPathSegCurvetoCubicRel::create(this, role, x, y, x1, y1, x2, y2); 150 150 } 151 151 152 Ref Ptr<SVGPathSegCurvetoQuadraticAbs> SVGPathElement::createSVGPathSegCurvetoQuadraticAbs(float x, float y, float x1, float y1, SVGPathSegRole role)152 Ref<SVGPathSegCurvetoQuadraticAbs> SVGPathElement::createSVGPathSegCurvetoQuadraticAbs(float x, float y, float x1, float y1, SVGPathSegRole role) 153 153 { 154 154 return SVGPathSegCurvetoQuadraticAbs::create(this, role, x, y, x1, y1); 155 155 } 156 156 157 Ref Ptr<SVGPathSegCurvetoQuadraticRel> SVGPathElement::createSVGPathSegCurvetoQuadraticRel(float x, float y, float x1, float y1, SVGPathSegRole role)157 Ref<SVGPathSegCurvetoQuadraticRel> SVGPathElement::createSVGPathSegCurvetoQuadraticRel(float x, float y, float x1, float y1, SVGPathSegRole role) 158 158 { 159 159 return SVGPathSegCurvetoQuadraticRel::create(this, role, x, y, x1, y1); 160 160 } 161 161 162 Ref Ptr<SVGPathSegArcAbs> SVGPathElement::createSVGPathSegArcAbs(float x, float y, float r1, float r2, float angle, bool largeArcFlag, bool sweepFlag, SVGPathSegRole role)162 Ref<SVGPathSegArcAbs> SVGPathElement::createSVGPathSegArcAbs(float x, float y, float r1, float r2, float angle, bool largeArcFlag, bool sweepFlag, SVGPathSegRole role) 163 163 { 164 164 return SVGPathSegArcAbs::create(this, role, x, y, r1, r2, angle, largeArcFlag, sweepFlag); 165 165 } 166 166 167 Ref Ptr<SVGPathSegArcRel> SVGPathElement::createSVGPathSegArcRel(float x, float y, float r1, float r2, float angle, bool largeArcFlag, bool sweepFlag, SVGPathSegRole role)167 Ref<SVGPathSegArcRel> SVGPathElement::createSVGPathSegArcRel(float x, float y, float r1, float r2, float angle, bool largeArcFlag, bool sweepFlag, SVGPathSegRole role) 168 168 { 169 169 return SVGPathSegArcRel::create(this, role, x, y, r1, r2, angle, largeArcFlag, sweepFlag); 170 170 } 171 171 172 Ref Ptr<SVGPathSegLinetoHorizontalAbs> SVGPathElement::createSVGPathSegLinetoHorizontalAbs(float x, SVGPathSegRole role)172 Ref<SVGPathSegLinetoHorizontalAbs> SVGPathElement::createSVGPathSegLinetoHorizontalAbs(float x, SVGPathSegRole role) 173 173 { 174 174 return SVGPathSegLinetoHorizontalAbs::create(this, role, x); 175 175 } 176 176 177 Ref Ptr<SVGPathSegLinetoHorizontalRel> SVGPathElement::createSVGPathSegLinetoHorizontalRel(float x, SVGPathSegRole role)177 Ref<SVGPathSegLinetoHorizontalRel> SVGPathElement::createSVGPathSegLinetoHorizontalRel(float x, SVGPathSegRole role) 178 178 { 179 179 return SVGPathSegLinetoHorizontalRel::create(this, role, x); 180 180 } 181 181 182 Ref Ptr<SVGPathSegLinetoVerticalAbs> SVGPathElement::createSVGPathSegLinetoVerticalAbs(float y, SVGPathSegRole role)182 Ref<SVGPathSegLinetoVerticalAbs> SVGPathElement::createSVGPathSegLinetoVerticalAbs(float y, SVGPathSegRole role) 183 183 { 184 184 return SVGPathSegLinetoVerticalAbs::create(this, role, y); 185 185 } 186 186 187 Ref Ptr<SVGPathSegLinetoVerticalRel> SVGPathElement::createSVGPathSegLinetoVerticalRel(float y, SVGPathSegRole role)187 Ref<SVGPathSegLinetoVerticalRel> SVGPathElement::createSVGPathSegLinetoVerticalRel(float y, SVGPathSegRole role) 188 188 { 189 189 return SVGPathSegLinetoVerticalRel::create(this, role, y); 190 190 } 191 191 192 Ref Ptr<SVGPathSegCurvetoCubicSmoothAbs> SVGPathElement::createSVGPathSegCurvetoCubicSmoothAbs(float x, float y, float x2, float y2, SVGPathSegRole role)192 Ref<SVGPathSegCurvetoCubicSmoothAbs> SVGPathElement::createSVGPathSegCurvetoCubicSmoothAbs(float x, float y, float x2, float y2, SVGPathSegRole role) 193 193 { 194 194 return SVGPathSegCurvetoCubicSmoothAbs::create(this, role, x, y, x2, y2); 195 195 } 196 196 197 Ref Ptr<SVGPathSegCurvetoCubicSmoothRel> SVGPathElement::createSVGPathSegCurvetoCubicSmoothRel(float x, float y, float x2, float y2, SVGPathSegRole role)197 Ref<SVGPathSegCurvetoCubicSmoothRel> SVGPathElement::createSVGPathSegCurvetoCubicSmoothRel(float x, float y, float x2, float y2, SVGPathSegRole role) 198 198 { 199 199 return SVGPathSegCurvetoCubicSmoothRel::create(this, role, x, y, x2, y2); 200 200 } 201 201 202 Ref Ptr<SVGPathSegCurvetoQuadraticSmoothAbs> SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothAbs(float x, float y, SVGPathSegRole role)202 Ref<SVGPathSegCurvetoQuadraticSmoothAbs> SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothAbs(float x, float y, SVGPathSegRole role) 203 203 { 204 204 return SVGPathSegCurvetoQuadraticSmoothAbs::create(this, role, x, y); 205 205 } 206 206 207 Ref Ptr<SVGPathSegCurvetoQuadraticSmoothRel> SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothRel(float x, float y, SVGPathSegRole role)207 Ref<SVGPathSegCurvetoQuadraticSmoothRel> SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothRel(float x, float y, SVGPathSegRole role) 208 208 { 209 209 return SVGPathSegCurvetoQuadraticSmoothRel::create(this, role, x, y); -
trunk/Source/WebCore/svg/SVGPathElement.h
r183160 r183536 62 62 unsigned getPathSegAtLength(float distance); 63 63 64 Ref Ptr<SVGPathSegClosePath> createSVGPathSegClosePath(SVGPathSegRole = PathSegUndefinedRole);65 Ref Ptr<SVGPathSegMovetoAbs> createSVGPathSegMovetoAbs(float x, float y, SVGPathSegRole = PathSegUndefinedRole);66 Ref Ptr<SVGPathSegMovetoRel> createSVGPathSegMovetoRel(float x, float y, SVGPathSegRole = PathSegUndefinedRole);67 Ref Ptr<SVGPathSegLinetoAbs> createSVGPathSegLinetoAbs(float x, float y, SVGPathSegRole = PathSegUndefinedRole);68 Ref Ptr<SVGPathSegLinetoRel> createSVGPathSegLinetoRel(float x, float y, SVGPathSegRole = PathSegUndefinedRole);69 Ref Ptr<SVGPathSegCurvetoCubicAbs> createSVGPathSegCurvetoCubicAbs(float x, float y, float x1, float y1, float x2, float y2, SVGPathSegRole = PathSegUndefinedRole);70 Ref Ptr<SVGPathSegCurvetoCubicRel> createSVGPathSegCurvetoCubicRel(float x, float y, float x1, float y1, float x2, float y2, SVGPathSegRole = PathSegUndefinedRole);71 Ref Ptr<SVGPathSegCurvetoQuadraticAbs> createSVGPathSegCurvetoQuadraticAbs(float x, float y, float x1, float y1, SVGPathSegRole = PathSegUndefinedRole);72 Ref Ptr<SVGPathSegCurvetoQuadraticRel> createSVGPathSegCurvetoQuadraticRel(float x, float y, float x1, float y1, SVGPathSegRole = PathSegUndefinedRole);73 Ref Ptr<SVGPathSegArcAbs> createSVGPathSegArcAbs(float x, float y, float r1, float r2, float angle, bool largeArcFlag, bool sweepFlag, SVGPathSegRole = PathSegUndefinedRole);74 Ref Ptr<SVGPathSegArcRel> createSVGPathSegArcRel(float x, float y, float r1, float r2, float angle, bool largeArcFlag, bool sweepFlag, SVGPathSegRole = PathSegUndefinedRole);75 Ref Ptr<SVGPathSegLinetoHorizontalAbs> createSVGPathSegLinetoHorizontalAbs(float x, SVGPathSegRole = PathSegUndefinedRole);76 Ref Ptr<SVGPathSegLinetoHorizontalRel> createSVGPathSegLinetoHorizontalRel(float x, SVGPathSegRole = PathSegUndefinedRole);77 Ref Ptr<SVGPathSegLinetoVerticalAbs> createSVGPathSegLinetoVerticalAbs(float y, SVGPathSegRole = PathSegUndefinedRole);78 Ref Ptr<SVGPathSegLinetoVerticalRel> createSVGPathSegLinetoVerticalRel(float y, SVGPathSegRole = PathSegUndefinedRole);79 Ref Ptr<SVGPathSegCurvetoCubicSmoothAbs> createSVGPathSegCurvetoCubicSmoothAbs(float x, float y, float x2, float y2, SVGPathSegRole = PathSegUndefinedRole);80 Ref Ptr<SVGPathSegCurvetoCubicSmoothRel> createSVGPathSegCurvetoCubicSmoothRel(float x, float y, float x2, float y2, SVGPathSegRole = PathSegUndefinedRole);81 Ref Ptr<SVGPathSegCurvetoQuadraticSmoothAbs> createSVGPathSegCurvetoQuadraticSmoothAbs(float x, float y, SVGPathSegRole = PathSegUndefinedRole);82 Ref Ptr<SVGPathSegCurvetoQuadraticSmoothRel> createSVGPathSegCurvetoQuadraticSmoothRel(float x, float y, SVGPathSegRole = PathSegUndefinedRole);64 Ref<SVGPathSegClosePath> createSVGPathSegClosePath(SVGPathSegRole = PathSegUndefinedRole); 65 Ref<SVGPathSegMovetoAbs> createSVGPathSegMovetoAbs(float x, float y, SVGPathSegRole = PathSegUndefinedRole); 66 Ref<SVGPathSegMovetoRel> createSVGPathSegMovetoRel(float x, float y, SVGPathSegRole = PathSegUndefinedRole); 67 Ref<SVGPathSegLinetoAbs> createSVGPathSegLinetoAbs(float x, float y, SVGPathSegRole = PathSegUndefinedRole); 68 Ref<SVGPathSegLinetoRel> createSVGPathSegLinetoRel(float x, float y, SVGPathSegRole = PathSegUndefinedRole); 69 Ref<SVGPathSegCurvetoCubicAbs> createSVGPathSegCurvetoCubicAbs(float x, float y, float x1, float y1, float x2, float y2, SVGPathSegRole = PathSegUndefinedRole); 70 Ref<SVGPathSegCurvetoCubicRel> createSVGPathSegCurvetoCubicRel(float x, float y, float x1, float y1, float x2, float y2, SVGPathSegRole = PathSegUndefinedRole); 71 Ref<SVGPathSegCurvetoQuadraticAbs> createSVGPathSegCurvetoQuadraticAbs(float x, float y, float x1, float y1, SVGPathSegRole = PathSegUndefinedRole); 72 Ref<SVGPathSegCurvetoQuadraticRel> createSVGPathSegCurvetoQuadraticRel(float x, float y, float x1, float y1, SVGPathSegRole = PathSegUndefinedRole); 73 Ref<SVGPathSegArcAbs> createSVGPathSegArcAbs(float x, float y, float r1, float r2, float angle, bool largeArcFlag, bool sweepFlag, SVGPathSegRole = PathSegUndefinedRole); 74 Ref<SVGPathSegArcRel> createSVGPathSegArcRel(float x, float y, float r1, float r2, float angle, bool largeArcFlag, bool sweepFlag, SVGPathSegRole = PathSegUndefinedRole); 75 Ref<SVGPathSegLinetoHorizontalAbs> createSVGPathSegLinetoHorizontalAbs(float x, SVGPathSegRole = PathSegUndefinedRole); 76 Ref<SVGPathSegLinetoHorizontalRel> createSVGPathSegLinetoHorizontalRel(float x, SVGPathSegRole = PathSegUndefinedRole); 77 Ref<SVGPathSegLinetoVerticalAbs> createSVGPathSegLinetoVerticalAbs(float y, SVGPathSegRole = PathSegUndefinedRole); 78 Ref<SVGPathSegLinetoVerticalRel> createSVGPathSegLinetoVerticalRel(float y, SVGPathSegRole = PathSegUndefinedRole); 79 Ref<SVGPathSegCurvetoCubicSmoothAbs> createSVGPathSegCurvetoCubicSmoothAbs(float x, float y, float x2, float y2, SVGPathSegRole = PathSegUndefinedRole); 80 Ref<SVGPathSegCurvetoCubicSmoothRel> createSVGPathSegCurvetoCubicSmoothRel(float x, float y, float x2, float y2, SVGPathSegRole = PathSegUndefinedRole); 81 Ref<SVGPathSegCurvetoQuadraticSmoothAbs> createSVGPathSegCurvetoQuadraticSmoothAbs(float x, float y, SVGPathSegRole = PathSegUndefinedRole); 82 Ref<SVGPathSegCurvetoQuadraticSmoothRel> createSVGPathSegCurvetoQuadraticSmoothRel(float x, float y, SVGPathSegRole = PathSegUndefinedRole); 83 83 84 84 // Used in the bindings only. -
trunk/Source/WebCore/svg/SVGPathSegArcAbs.h
r163440 r183536 29 29 class SVGPathSegArcAbs : public SVGPathSegArc { 30 30 public: 31 static PassRefPtr<SVGPathSegArcAbs> create(SVGPathElement* element, SVGPathSegRole role, float x, float y, float r1, float r2, float angle, bool largeArcFlag, bool sweepFlag)31 static Ref<SVGPathSegArcAbs> create(SVGPathElement* element, SVGPathSegRole role, float x, float y, float r1, float r2, float angle, bool largeArcFlag, bool sweepFlag) 32 32 { 33 return adoptRef( new SVGPathSegArcAbs(element, role, x, y, r1, r2, angle, largeArcFlag, sweepFlag));33 return adoptRef(*new SVGPathSegArcAbs(element, role, x, y, r1, r2, angle, largeArcFlag, sweepFlag)); 34 34 } 35 35 -
trunk/Source/WebCore/svg/SVGPathSegArcRel.h
r163440 r183536 29 29 class SVGPathSegArcRel : public SVGPathSegArc { 30 30 public: 31 static PassRefPtr<SVGPathSegArcRel> create(SVGPathElement* element, SVGPathSegRole role, float x, float y, float r1, float r2, float angle, bool largeArcFlag, bool sweepFlag)31 static Ref<SVGPathSegArcRel> create(SVGPathElement* element, SVGPathSegRole role, float x, float y, float r1, float r2, float angle, bool largeArcFlag, bool sweepFlag) 32 32 { 33 return adoptRef( new SVGPathSegArcRel(element, role, x, y, r1, r2, angle, largeArcFlag, sweepFlag));33 return adoptRef(*new SVGPathSegArcRel(element, role, x, y, r1, r2, angle, largeArcFlag, sweepFlag)); 34 34 } 35 35 -
trunk/Source/WebCore/svg/SVGPathSegClosePath.h
r163440 r183536 28 28 class SVGPathSegClosePath : public SVGPathSegWithContext { 29 29 public: 30 static PassRefPtr<SVGPathSegClosePath> create(SVGPathElement* element, SVGPathSegRole role)30 static Ref<SVGPathSegClosePath> create(SVGPathElement* element, SVGPathSegRole role) 31 31 { 32 return adoptRef( new SVGPathSegClosePath(element, role));32 return adoptRef(*new SVGPathSegClosePath(element, role)); 33 33 } 34 34 -
trunk/Source/WebCore/svg/SVGPathSegCurvetoCubicAbs.h
r163440 r183536 29 29 class SVGPathSegCurvetoCubicAbs : public SVGPathSegCurvetoCubic { 30 30 public: 31 static PassRefPtr<SVGPathSegCurvetoCubicAbs> create(SVGPathElement* element, SVGPathSegRole role, float x, float y, float x1, float y1, float x2, float y2)31 static Ref<SVGPathSegCurvetoCubicAbs> create(SVGPathElement* element, SVGPathSegRole role, float x, float y, float x1, float y1, float x2, float y2) 32 32 { 33 return adoptRef( new SVGPathSegCurvetoCubicAbs(element, role, x, y, x1, y1, x2, y2));33 return adoptRef(*new SVGPathSegCurvetoCubicAbs(element, role, x, y, x1, y1, x2, y2)); 34 34 } 35 35 -
trunk/Source/WebCore/svg/SVGPathSegCurvetoCubicRel.h
r163440 r183536 29 29 class SVGPathSegCurvetoCubicRel : public SVGPathSegCurvetoCubic { 30 30 public: 31 static PassRefPtr<SVGPathSegCurvetoCubicRel> create(SVGPathElement* element, SVGPathSegRole role, float x, float y, float x1, float y1, float x2, float y2)31 static Ref<SVGPathSegCurvetoCubicRel> create(SVGPathElement* element, SVGPathSegRole role, float x, float y, float x1, float y1, float x2, float y2) 32 32 { 33 return adoptRef( new SVGPathSegCurvetoCubicRel(element, role, x, y, x1, y1, x2, y2));33 return adoptRef(*new SVGPathSegCurvetoCubicRel(element, role, x, y, x1, y1, x2, y2)); 34 34 } 35 35 -
trunk/Source/WebCore/svg/SVGPathSegCurvetoCubicSmoothAbs.h
r163440 r183536 29 29 class SVGPathSegCurvetoCubicSmoothAbs : public SVGPathSegCurvetoCubicSmooth { 30 30 public: 31 static PassRefPtr<SVGPathSegCurvetoCubicSmoothAbs> create(SVGPathElement* element, SVGPathSegRole role, float x, float y, float x2, float y2)31 static Ref<SVGPathSegCurvetoCubicSmoothAbs> create(SVGPathElement* element, SVGPathSegRole role, float x, float y, float x2, float y2) 32 32 { 33 return adoptRef( new SVGPathSegCurvetoCubicSmoothAbs(element, role, x, y, x2, y2));33 return adoptRef(*new SVGPathSegCurvetoCubicSmoothAbs(element, role, x, y, x2, y2)); 34 34 } 35 35 -
trunk/Source/WebCore/svg/SVGPathSegCurvetoCubicSmoothRel.h
r163440 r183536 29 29 class SVGPathSegCurvetoCubicSmoothRel : public SVGPathSegCurvetoCubicSmooth { 30 30 public: 31 static PassRefPtr<SVGPathSegCurvetoCubicSmoothRel> create(SVGPathElement* element, SVGPathSegRole role, float x, float y, float x2, float y2)31 static Ref<SVGPathSegCurvetoCubicSmoothRel> create(SVGPathElement* element, SVGPathSegRole role, float x, float y, float x2, float y2) 32 32 { 33 return adoptRef( new SVGPathSegCurvetoCubicSmoothRel(element, role, x, y, x2, y2));33 return adoptRef(*new SVGPathSegCurvetoCubicSmoothRel(element, role, x, y, x2, y2)); 34 34 } 35 35 -
trunk/Source/WebCore/svg/SVGPathSegCurvetoQuadraticAbs.h
r163440 r183536 29 29 class SVGPathSegCurvetoQuadraticAbs : public SVGPathSegCurvetoQuadratic { 30 30 public: 31 static PassRefPtr<SVGPathSegCurvetoQuadraticAbs> create(SVGPathElement* element, SVGPathSegRole role, float x, float y, float x1, float y1)31 static Ref<SVGPathSegCurvetoQuadraticAbs> create(SVGPathElement* element, SVGPathSegRole role, float x, float y, float x1, float y1) 32 32 { 33 return adoptRef( new SVGPathSegCurvetoQuadraticAbs(element, role, x, y, x1, y1));33 return adoptRef(*new SVGPathSegCurvetoQuadraticAbs(element, role, x, y, x1, y1)); 34 34 } 35 35 -
trunk/Source/WebCore/svg/SVGPathSegCurvetoQuadraticRel.h
r163440 r183536 29 29 class SVGPathSegCurvetoQuadraticRel : public SVGPathSegCurvetoQuadratic { 30 30 public: 31 static PassRefPtr<SVGPathSegCurvetoQuadraticRel> create(SVGPathElement* element, SVGPathSegRole role, float x, float y, float x1, float y1)31 static Ref<SVGPathSegCurvetoQuadraticRel> create(SVGPathElement* element, SVGPathSegRole role, float x, float y, float x1, float y1) 32 32 { 33 return adoptRef( new SVGPathSegCurvetoQuadraticRel(element, role, x, y, x1, y1));33 return adoptRef(*new SVGPathSegCurvetoQuadraticRel(element, role, x, y, x1, y1)); 34 34 } 35 35 -
trunk/Source/WebCore/svg/SVGPathSegCurvetoQuadraticSmoothAbs.h
r163440 r183536 29 29 class SVGPathSegCurvetoQuadraticSmoothAbs : public SVGPathSegSingleCoordinate { 30 30 public: 31 static PassRefPtr<SVGPathSegCurvetoQuadraticSmoothAbs> create(SVGPathElement* element, SVGPathSegRole role, float x, float y)31 static Ref<SVGPathSegCurvetoQuadraticSmoothAbs> create(SVGPathElement* element, SVGPathSegRole role, float x, float y) 32 32 { 33 return adoptRef( new SVGPathSegCurvetoQuadraticSmoothAbs(element, role, x, y));33 return adoptRef(*new SVGPathSegCurvetoQuadraticSmoothAbs(element, role, x, y)); 34 34 } 35 35 -
trunk/Source/WebCore/svg/SVGPathSegCurvetoQuadraticSmoothRel.h
r163440 r183536 29 29 class SVGPathSegCurvetoQuadraticSmoothRel : public SVGPathSegSingleCoordinate { 30 30 public: 31 static PassRefPtr<SVGPathSegCurvetoQuadraticSmoothRel> create(SVGPathElement* element, SVGPathSegRole role, float x, float y)31 static Ref<SVGPathSegCurvetoQuadraticSmoothRel> create(SVGPathElement* element, SVGPathSegRole role, float x, float y) 32 32 { 33 return adoptRef( new SVGPathSegCurvetoQuadraticSmoothRel(element, role, x, y));33 return adoptRef(*new SVGPathSegCurvetoQuadraticSmoothRel(element, role, x, y)); 34 34 } 35 35 -
trunk/Source/WebCore/svg/SVGPathSegLinetoAbs.h
r163440 r183536 29 29 class SVGPathSegLinetoAbs : public SVGPathSegSingleCoordinate { 30 30 public: 31 static PassRefPtr<SVGPathSegLinetoAbs> create(SVGPathElement* element, SVGPathSegRole role, float x, float y)31 static Ref<SVGPathSegLinetoAbs> create(SVGPathElement* element, SVGPathSegRole role, float x, float y) 32 32 { 33 return adoptRef( new SVGPathSegLinetoAbs(element, role, x, y));33 return adoptRef(*new SVGPathSegLinetoAbs(element, role, x, y)); 34 34 } 35 35 -
trunk/Source/WebCore/svg/SVGPathSegLinetoHorizontalAbs.h
r163440 r183536 29 29 class SVGPathSegLinetoHorizontalAbs : public SVGPathSegLinetoHorizontal { 30 30 public: 31 static PassRefPtr<SVGPathSegLinetoHorizontalAbs> create(SVGPathElement* element, SVGPathSegRole role, float x)31 static Ref<SVGPathSegLinetoHorizontalAbs> create(SVGPathElement* element, SVGPathSegRole role, float x) 32 32 { 33 return adoptRef( new SVGPathSegLinetoHorizontalAbs(element, role, x));33 return adoptRef(*new SVGPathSegLinetoHorizontalAbs(element, role, x)); 34 34 } 35 35 -
trunk/Source/WebCore/svg/SVGPathSegLinetoHorizontalRel.h
r163440 r183536 29 29 class SVGPathSegLinetoHorizontalRel : public SVGPathSegLinetoHorizontal { 30 30 public: 31 static PassRefPtr<SVGPathSegLinetoHorizontalRel> create(SVGPathElement* element, SVGPathSegRole role, float x)31 static Ref<SVGPathSegLinetoHorizontalRel> create(SVGPathElement* element, SVGPathSegRole role, float x) 32 32 { 33 return adoptRef( new SVGPathSegLinetoHorizontalRel(element, role, x));33 return adoptRef(*new SVGPathSegLinetoHorizontalRel(element, role, x)); 34 34 } 35 35 -
trunk/Source/WebCore/svg/SVGPathSegLinetoRel.h
r163440 r183536 29 29 class SVGPathSegLinetoRel : public SVGPathSegSingleCoordinate { 30 30 public: 31 static PassRefPtr<SVGPathSegLinetoRel> create(SVGPathElement* element, SVGPathSegRole role, float x, float y)31 static Ref<SVGPathSegLinetoRel> create(SVGPathElement* element, SVGPathSegRole role, float x, float y) 32 32 { 33 return adoptRef( new SVGPathSegLinetoRel(element, role, x, y));33 return adoptRef(*new SVGPathSegLinetoRel(element, role, x, y)); 34 34 } 35 35 -
trunk/Source/WebCore/svg/SVGPathSegLinetoVerticalAbs.h
r163440 r183536 29 29 class SVGPathSegLinetoVerticalAbs : public SVGPathSegLinetoVertical { 30 30 public: 31 static PassRefPtr<SVGPathSegLinetoVerticalAbs> create(SVGPathElement* element, SVGPathSegRole role, float y)31 static Ref<SVGPathSegLinetoVerticalAbs> create(SVGPathElement* element, SVGPathSegRole role, float y) 32 32 { 33 return adoptRef( new SVGPathSegLinetoVerticalAbs(element, role, y));33 return adoptRef(*new SVGPathSegLinetoVerticalAbs(element, role, y)); 34 34 } 35 35 -
trunk/Source/WebCore/svg/SVGPathSegLinetoVerticalRel.h
r163440 r183536 29 29 class SVGPathSegLinetoVerticalRel : public SVGPathSegLinetoVertical { 30 30 public: 31 static PassRefPtr<SVGPathSegLinetoVerticalRel> create(SVGPathElement* element, SVGPathSegRole role, float y)31 static Ref<SVGPathSegLinetoVerticalRel> create(SVGPathElement* element, SVGPathSegRole role, float y) 32 32 { 33 return adoptRef( new SVGPathSegLinetoVerticalRel(element, role, y));33 return adoptRef(*new SVGPathSegLinetoVerticalRel(element, role, y)); 34 34 } 35 35 -
trunk/Source/WebCore/svg/SVGPathSegMovetoAbs.h
r163440 r183536 29 29 class SVGPathSegMovetoAbs : public SVGPathSegSingleCoordinate { 30 30 public: 31 static PassRefPtr<SVGPathSegMovetoAbs> create(SVGPathElement* element, SVGPathSegRole role, float x, float y)31 static Ref<SVGPathSegMovetoAbs> create(SVGPathElement* element, SVGPathSegRole role, float x, float y) 32 32 { 33 return adoptRef( new SVGPathSegMovetoAbs(element, role, x, y));33 return adoptRef(*new SVGPathSegMovetoAbs(element, role, x, y)); 34 34 } 35 35 -
trunk/Source/WebCore/svg/SVGPathSegMovetoRel.h
r163440 r183536 29 29 class SVGPathSegMovetoRel : public SVGPathSegSingleCoordinate { 30 30 public: 31 static PassRefPtr<SVGPathSegMovetoRel> create(SVGPathElement* element, SVGPathSegRole role, float x, float y)31 static Ref<SVGPathSegMovetoRel> create(SVGPathElement* element, SVGPathSegRole role, float x, float y) 32 32 { 33 return adoptRef( new SVGPathSegMovetoRel(element, role, x, y));33 return adoptRef(*new SVGPathSegMovetoRel(element, role, x, y)); 34 34 } 35 35 -
trunk/Source/WebCore/svg/SVGViewSpec.h
r181345 r183536 41 41 using RefCounted<SVGViewSpec>::deref; 42 42 43 static PassRefPtr<SVGViewSpec> create(SVGElement* contextElement)43 static Ref<SVGViewSpec> create(SVGElement* contextElement) 44 44 { 45 return adoptRef( new SVGViewSpec(contextElement));45 return adoptRef(*new SVGViewSpec(contextElement)); 46 46 } 47 47 -
trunk/Source/WebCore/svg/animation/SMILTimeContainer.h
r176459 r183536 32 32 #include <wtf/HashMap.h> 33 33 #include <wtf/HashSet.h> 34 #include <wtf/PassRefPtr.h>35 34 #include <wtf/RefCounted.h> 36 35 #include <wtf/text/StringHash.h> … … 45 44 class SMILTimeContainer : public RefCounted<SMILTimeContainer> { 46 45 public: 47 static PassRefPtr<SMILTimeContainer> create(SVGSVGElement* owner) { return adoptRef(new SMILTimeContainer(owner)); }46 static Ref<SMILTimeContainer> create(SVGSVGElement* owner) { return adoptRef(*new SMILTimeContainer(owner)); } 48 47 ~SMILTimeContainer(); 49 48 -
trunk/Source/WebCore/svg/animation/SVGSMILElement.cpp
r182121 r183536 52 52 class ConditionEventListener : public EventListener { 53 53 public: 54 static PassRefPtr<ConditionEventListener> create(SVGSMILElement* animation, SVGSMILElement::Condition* condition)54 static Ref<ConditionEventListener> create(SVGSMILElement* animation, SVGSMILElement::Condition* condition) 55 55 { 56 return adoptRef( new ConditionEventListener(animation, condition));56 return adoptRef(*new ConditionEventListener(animation, condition)); 57 57 } 58 58 -
trunk/Source/WebCore/svg/graphics/SVGImage.h
r179626 r183536 46 46 class SVGImage final : public Image { 47 47 public: 48 static PassRefPtr<SVGImage> create(ImageObserver* observer)48 static Ref<SVGImage> create(ImageObserver* observer) 49 49 { 50 return adoptRef( new SVGImage(observer));50 return adoptRef(*new SVGImage(observer)); 51 51 } 52 52 -
trunk/Source/WebCore/svg/graphics/SVGImageForContainer.h
r166582 r183536 38 38 class SVGImageForContainer final : public Image { 39 39 public: 40 static PassRefPtr<SVGImageForContainer> create(SVGImage* image, const FloatSize& containerSize, float zoom)40 static Ref<SVGImageForContainer> create(SVGImage* image, const FloatSize& containerSize, float zoom) 41 41 { 42 return adoptRef( new SVGImageForContainer(image, containerSize, zoom));42 return adoptRef(*new SVGImageForContainer(image, containerSize, zoom)); 43 43 } 44 44 -
trunk/Source/WebCore/svg/graphics/filters/SVGFilter.cpp
r173397 r183536 49 49 } 50 50 51 PassRefPtr<SVGFilter> SVGFilter::create(const AffineTransform& absoluteTransform, const FloatRect& absoluteSourceDrawingRegion, const FloatRect& targetBoundingBox, const FloatRect& filterRegion, bool effectBBoxMode)51 Ref<SVGFilter> SVGFilter::create(const AffineTransform& absoluteTransform, const FloatRect& absoluteSourceDrawingRegion, const FloatRect& targetBoundingBox, const FloatRect& filterRegion, bool effectBBoxMode) 52 52 { 53 return adoptRef( new SVGFilter(absoluteTransform, absoluteSourceDrawingRegion, targetBoundingBox, filterRegion, effectBBoxMode));53 return adoptRef(*new SVGFilter(absoluteTransform, absoluteSourceDrawingRegion, targetBoundingBox, filterRegion, effectBBoxMode)); 54 54 } 55 55 -
trunk/Source/WebCore/svg/graphics/filters/SVGFilter.h
r174654 r183536 28 28 #include "FloatSize.h" 29 29 30 #include <wtf/PassRefPtr.h>31 30 #include <wtf/RefCounted.h> 32 31 #include <wtf/RefPtr.h> … … 37 36 class SVGFilter : public Filter { 38 37 public: 39 static PassRefPtr<SVGFilter> create(const AffineTransform&, const FloatRect&, const FloatRect&, const FloatRect&, bool);38 static Ref<SVGFilter> create(const AffineTransform&, const FloatRect&, const FloatRect&, const FloatRect&, bool); 40 39 41 40 FloatRect filterRegionInUserSpace() const { return m_filterRegion; }
Note: See TracChangeset
for help on using the changeset viewer.