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

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

Issue 18098007: Get rid of SVGPoint special case from the bindings generator (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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/rendering/svg/SVGTextQuery.cpp ('k') | Source/core/svg/SVGPathElement.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) 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, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 class SVGPathSegCurvetoQuadraticSmoothAbs; 51 class SVGPathSegCurvetoQuadraticSmoothAbs;
52 class SVGPathSegCurvetoQuadraticSmoothRel; 52 class SVGPathSegCurvetoQuadraticSmoothRel;
53 class SVGPathSegListPropertyTearOff; 53 class SVGPathSegListPropertyTearOff;
54 54
55 class SVGPathElement FINAL : public SVGGraphicsElement, 55 class SVGPathElement FINAL : public SVGGraphicsElement,
56 public SVGExternalResourcesRequired { 56 public SVGExternalResourcesRequired {
57 public: 57 public:
58 static PassRefPtr<SVGPathElement> create(const QualifiedName&, Document*); 58 static PassRefPtr<SVGPathElement> create(const QualifiedName&, Document*);
59 59
60 float getTotalLength(); 60 float getTotalLength();
61 FloatPoint getPointAtLength(float distance); 61 SVGPoint getPointAtLength(float distance);
62 unsigned getPathSegAtLength(float distance); 62 unsigned getPathSegAtLength(float distance);
63 63
64 PassRefPtr<SVGPathSegClosePath> createSVGPathSegClosePath(SVGPathSegRole rol e = PathSegUndefinedRole); 64 PassRefPtr<SVGPathSegClosePath> createSVGPathSegClosePath(SVGPathSegRole rol e = PathSegUndefinedRole);
65 PassRefPtr<SVGPathSegMovetoAbs> createSVGPathSegMovetoAbs(float x, float y, SVGPathSegRole role = PathSegUndefinedRole); 65 PassRefPtr<SVGPathSegMovetoAbs> createSVGPathSegMovetoAbs(float x, float y, SVGPathSegRole role = PathSegUndefinedRole);
66 PassRefPtr<SVGPathSegMovetoRel> createSVGPathSegMovetoRel(float x, float y, SVGPathSegRole role = PathSegUndefinedRole); 66 PassRefPtr<SVGPathSegMovetoRel> createSVGPathSegMovetoRel(float x, float y, SVGPathSegRole role = PathSegUndefinedRole);
67 PassRefPtr<SVGPathSegLinetoAbs> createSVGPathSegLinetoAbs(float x, float y, SVGPathSegRole role = PathSegUndefinedRole); 67 PassRefPtr<SVGPathSegLinetoAbs> createSVGPathSegLinetoAbs(float x, float y, SVGPathSegRole role = PathSegUndefinedRole);
68 PassRefPtr<SVGPathSegLinetoRel> createSVGPathSegLinetoRel(float x, float y, SVGPathSegRole role = PathSegUndefinedRole); 68 PassRefPtr<SVGPathSegLinetoRel> createSVGPathSegLinetoRel(float x, float y, SVGPathSegRole role = PathSegUndefinedRole);
69 PassRefPtr<SVGPathSegCurvetoCubicAbs> createSVGPathSegCurvetoCubicAbs(float x, float y, float x1, float y1, float x2, float y2, SVGPathSegRole role = PathSe gUndefinedRole); 69 PassRefPtr<SVGPathSegCurvetoCubicAbs> createSVGPathSegCurvetoCubicAbs(float x, float y, float x1, float y1, float x2, float y2, SVGPathSegRole role = PathSe gUndefinedRole);
70 PassRefPtr<SVGPathSegCurvetoCubicRel> createSVGPathSegCurvetoCubicRel(float x, float y, float x1, float y1, float x2, float y2, SVGPathSegRole role = PathSe gUndefinedRole); 70 PassRefPtr<SVGPathSegCurvetoCubicRel> createSVGPathSegCurvetoCubicRel(float x, float y, float x1, float y1, float x2, float y2, SVGPathSegRole role = PathSe gUndefinedRole);
71 PassRefPtr<SVGPathSegCurvetoQuadraticAbs> createSVGPathSegCurvetoQuadraticAb s(float x, float y, float x1, float y1, SVGPathSegRole role = PathSegUndefinedRo le); 71 PassRefPtr<SVGPathSegCurvetoQuadraticAbs> createSVGPathSegCurvetoQuadraticAb s(float x, float y, float x1, float y1, SVGPathSegRole role = PathSegUndefinedRo le);
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 132
133 inline SVGPathElement* toSVGPathElement(SVGElement* element) 133 inline SVGPathElement* toSVGPathElement(SVGElement* element)
134 { 134 {
135 ASSERT_WITH_SECURITY_IMPLICATION(!element || element->hasTagName(SVGNames::p athTag)); 135 ASSERT_WITH_SECURITY_IMPLICATION(!element || element->hasTagName(SVGNames::p athTag));
136 return static_cast<SVGPathElement*>(element); 136 return static_cast<SVGPathElement*>(element);
137 } 137 }
138 138
139 } // namespace WebCore 139 } // namespace WebCore
140 140
141 #endif 141 #endif
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/SVGTextQuery.cpp ('k') | Source/core/svg/SVGPathElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698