diff options
Diffstat (limited to 'Source/WebCore/svg/SVGPathElement.idl')
-rw-r--r-- | Source/WebCore/svg/SVGPathElement.idl | 126 |
1 files changed, 62 insertions, 64 deletions
diff --git a/Source/WebCore/svg/SVGPathElement.idl b/Source/WebCore/svg/SVGPathElement.idl index 4410533e1..b4df56377 100644 --- a/Source/WebCore/svg/SVGPathElement.idl +++ b/Source/WebCore/svg/SVGPathElement.idl @@ -24,83 +24,81 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -[ - Conditional=SVG, -] interface SVGPathElement : SVGGraphicsElement { +interface SVGPathElement : SVGGraphicsElement { readonly attribute SVGAnimatedNumber pathLength; - float getTotalLength(); - SVGPoint getPointAtLength([Default=Undefined] optional float distance); - unsigned long getPathSegAtLength([Default=Undefined] optional float distance); + unrestricted float getTotalLength(); + [NewObject] SVGPoint getPointAtLength(optional unrestricted float distance = NaN); + unsigned long getPathSegAtLength(optional unrestricted float distance = NaN); SVGPathSegClosePath createSVGPathSegClosePath(); - SVGPathSegMovetoAbs createSVGPathSegMovetoAbs([Default=Undefined] optional float x, - [Default=Undefined] optional float y); - SVGPathSegMovetoRel createSVGPathSegMovetoRel([Default=Undefined] optional float x, - [Default=Undefined] optional float y); + SVGPathSegMovetoAbs createSVGPathSegMovetoAbs(optional unrestricted float x = NaN, + optional unrestricted float y = NaN); + SVGPathSegMovetoRel createSVGPathSegMovetoRel(optional unrestricted float x = NaN, + optional unrestricted float y = NaN); - SVGPathSegLinetoAbs createSVGPathSegLinetoAbs([Default=Undefined] optional float x, - [Default=Undefined] optional float y); - SVGPathSegLinetoRel createSVGPathSegLinetoRel([Default=Undefined] optional float x, - [Default=Undefined] optional float y); + SVGPathSegLinetoAbs createSVGPathSegLinetoAbs(optional unrestricted float x = NaN, + optional unrestricted float y = NaN); + SVGPathSegLinetoRel createSVGPathSegLinetoRel(optional unrestricted float x = NaN, + optional unrestricted float y = NaN); - SVGPathSegCurvetoCubicAbs createSVGPathSegCurvetoCubicAbs([Default=Undefined] optional float x, - [Default=Undefined] optional float y, - [Default=Undefined] optional float x1, - [Default=Undefined] optional float y1, - [Default=Undefined] optional float x2, - [Default=Undefined] optional float y2); - SVGPathSegCurvetoCubicRel createSVGPathSegCurvetoCubicRel([Default=Undefined] optional float x, - [Default=Undefined] optional float y, - [Default=Undefined] optional float x1, - [Default=Undefined] optional float y1, - [Default=Undefined] optional float x2, - [Default=Undefined] optional float y2); + SVGPathSegCurvetoCubicAbs createSVGPathSegCurvetoCubicAbs(optional unrestricted float x = NaN, + optional unrestricted float y = NaN, + optional unrestricted float x1 = NaN, + optional unrestricted float y1 = NaN, + optional unrestricted float x2 = NaN, + optional unrestricted float y2 = NaN); + SVGPathSegCurvetoCubicRel createSVGPathSegCurvetoCubicRel(optional unrestricted float x = NaN, + optional unrestricted float y = NaN, + optional unrestricted float x1 = NaN, + optional unrestricted float y1 = NaN, + optional unrestricted float x2 = NaN, + optional unrestricted float y2 = NaN); - SVGPathSegCurvetoQuadraticAbs createSVGPathSegCurvetoQuadraticAbs([Default=Undefined] optional float x, - [Default=Undefined] optional float y, - [Default=Undefined] optional float x1, - [Default=Undefined] optional float y1); - SVGPathSegCurvetoQuadraticRel createSVGPathSegCurvetoQuadraticRel([Default=Undefined] optional float x, - [Default=Undefined] optional float y, - [Default=Undefined] optional float x1, - [Default=Undefined] optional float y1); + SVGPathSegCurvetoQuadraticAbs createSVGPathSegCurvetoQuadraticAbs(optional unrestricted float x = NaN, + optional unrestricted float y = NaN, + optional unrestricted float x1 = NaN, + optional unrestricted float y1 = NaN); + SVGPathSegCurvetoQuadraticRel createSVGPathSegCurvetoQuadraticRel(optional unrestricted float x = NaN, + optional unrestricted float y = NaN, + optional unrestricted float x1 = NaN, + optional unrestricted float y1 = NaN); - SVGPathSegArcAbs createSVGPathSegArcAbs([Default=Undefined] optional float x, - [Default=Undefined] optional float y, - [Default=Undefined] optional float r1, - [Default=Undefined] optional float r2, - [Default=Undefined] optional float angle, - [Default=Undefined] optional boolean largeArcFlag, - [Default=Undefined] optional boolean sweepFlag); - SVGPathSegArcRel createSVGPathSegArcRel([Default=Undefined] optional float x, - [Default=Undefined] optional float y, - [Default=Undefined] optional float r1, - [Default=Undefined] optional float r2, - [Default=Undefined] optional float angle, - [Default=Undefined] optional boolean largeArcFlag, - [Default=Undefined] optional boolean sweepFlag); + SVGPathSegArcAbs createSVGPathSegArcAbs(optional unrestricted float x = NaN, + optional unrestricted float y = NaN, + optional unrestricted float r1 = NaN, + optional unrestricted float r2 = NaN, + optional unrestricted float angle = NaN, + optional boolean largeArcFlag = false, + optional boolean sweepFlag = false); + SVGPathSegArcRel createSVGPathSegArcRel(optional unrestricted float x = NaN, + optional unrestricted float y = NaN, + optional unrestricted float r1 = NaN, + optional unrestricted float r2 = NaN, + optional unrestricted float angle = NaN, + optional boolean largeArcFlag = false, + optional boolean sweepFlag = false); - SVGPathSegLinetoHorizontalAbs createSVGPathSegLinetoHorizontalAbs([Default=Undefined] optional float x); - SVGPathSegLinetoHorizontalRel createSVGPathSegLinetoHorizontalRel([Default=Undefined] optional float x); + SVGPathSegLinetoHorizontalAbs createSVGPathSegLinetoHorizontalAbs(optional unrestricted float x = NaN); + SVGPathSegLinetoHorizontalRel createSVGPathSegLinetoHorizontalRel(optional unrestricted float x = NaN); - SVGPathSegLinetoVerticalAbs createSVGPathSegLinetoVerticalAbs([Default=Undefined] optional float y); - SVGPathSegLinetoVerticalRel createSVGPathSegLinetoVerticalRel([Default=Undefined] optional float y); + SVGPathSegLinetoVerticalAbs createSVGPathSegLinetoVerticalAbs(optional unrestricted float y = NaN); + SVGPathSegLinetoVerticalRel createSVGPathSegLinetoVerticalRel(optional unrestricted float y = NaN); - SVGPathSegCurvetoCubicSmoothAbs createSVGPathSegCurvetoCubicSmoothAbs([Default=Undefined] optional float x, - [Default=Undefined] optional float y, - [Default=Undefined] optional float x2, - [Default=Undefined] optional float y2); - SVGPathSegCurvetoCubicSmoothRel createSVGPathSegCurvetoCubicSmoothRel([Default=Undefined] optional float x, - [Default=Undefined] optional float y, - [Default=Undefined] optional float x2, - [Default=Undefined] optional float y2); + SVGPathSegCurvetoCubicSmoothAbs createSVGPathSegCurvetoCubicSmoothAbs(optional unrestricted float x = NaN, + optional unrestricted float y = NaN, + optional unrestricted float x2 = NaN, + optional unrestricted float y2 = NaN); + SVGPathSegCurvetoCubicSmoothRel createSVGPathSegCurvetoCubicSmoothRel(optional unrestricted float x = NaN, + optional unrestricted float y = NaN, + optional unrestricted float x2 = NaN, + optional unrestricted float y2 = NaN); - SVGPathSegCurvetoQuadraticSmoothAbs createSVGPathSegCurvetoQuadraticSmoothAbs([Default=Undefined] optional float x, - [Default=Undefined] optional float y); - SVGPathSegCurvetoQuadraticSmoothRel createSVGPathSegCurvetoQuadraticSmoothRel([Default=Undefined] optional float x, - [Default=Undefined] optional float y); + SVGPathSegCurvetoQuadraticSmoothAbs createSVGPathSegCurvetoQuadraticSmoothAbs(optional unrestricted float x = NaN, + optional unrestricted float y = NaN); + SVGPathSegCurvetoQuadraticSmoothRel createSVGPathSegCurvetoQuadraticSmoothRel(optional unrestricted float x = NaN, + optional unrestricted float y = NaN); readonly attribute SVGPathSegList pathSegList; readonly attribute SVGPathSegList normalizedPathSegList; |