From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WebCore/html/canvas/DOMPath.idl | 46 +++++++--------------------------- 1 file changed, 9 insertions(+), 37 deletions(-) (limited to 'Source/WebCore/html/canvas/DOMPath.idl') diff --git a/Source/WebCore/html/canvas/DOMPath.idl b/Source/WebCore/html/canvas/DOMPath.idl index 0c262c681..40bd2ba5c 100644 --- a/Source/WebCore/html/canvas/DOMPath.idl +++ b/Source/WebCore/html/canvas/DOMPath.idl @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. + * Copyright (C) 2006 Apple Inc. All rights reserved. * Copyright (C) 2012, 2013 Adobe Systems Incorporated. All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -29,42 +29,14 @@ [ Constructor, Constructor(DOMPath path), -#if defined(ENABLE_SVG) && ENABLE_SVG Constructor(DOMString text), -#endif - Conditional=CANVAS_PATH, - InterfaceName=Path, + ExportMacro=WEBCORE_EXPORT, + InterfaceName=Path2D, ] interface DOMPath { - - // FIXME: These methods should be shared with CanvasRenderingContext2D in the CanvasPathMethods interface. - void closePath(); - void moveTo([Default=Undefined] optional float x, - [Default=Undefined] optional float y); - void lineTo([Default=Undefined] optional float x, - [Default=Undefined] optional float y); - void quadraticCurveTo([Default=Undefined] optional float cpx, - [Default=Undefined] optional float cpy, - [Default=Undefined] optional float x, - [Default=Undefined] optional float y); - void bezierCurveTo([Default=Undefined] optional float cp1x, - [Default=Undefined] optional float cp1y, - [Default=Undefined] optional float cp2x, - [Default=Undefined] optional float cp2y, - [Default=Undefined] optional float x, - [Default=Undefined] optional float y); - [RaisesException] void arcTo([Default=Undefined] optional float x1, - [Default=Undefined] optional float y1, - [Default=Undefined] optional float x2, - [Default=Undefined] optional float y2, - [Default=Undefined] optional float radius); - void rect([Default=Undefined] optional float x, - [Default=Undefined] optional float y, - [Default=Undefined] optional float width, - [Default=Undefined] optional float height); - [RaisesException] void arc([Default=Undefined] optional float x, - [Default=Undefined] optional float y, - [Default=Undefined] optional float radius, - [Default=Undefined] optional float startAngle, - [Default=Undefined] optional float endAngle, - [Default=Undefined] optional boolean anticlockwise); + // FIXME: This should be: + // [Conditional=CANVAS_PATH] void addPath(DOMPath path, optional SVGMatrix transform); + [Conditional=CANVAS_PATH] void addPath(DOMPath? path); + [Conditional=CANVAS_PATH] void addPath(DOMPath? path, SVGMatrix transform); }; + +DOMPath implements CanvasPath; -- cgit v1.2.1