| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. |
| 3 * Copyright (C) 2012, 2013 Adobe Systems Incorporated. All rights reserved. | 3 * Copyright (C) 2012, 2013 Adobe Systems Incorporated. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | 21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
| 22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR | 23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR |
| 24 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF | 24 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF |
| 25 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 25 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 26 * SUCH DAMAGE. | 26 * SUCH DAMAGE. |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 interface [ | 29 interface [ |
| 30 Constructor, | 30 Constructor, |
| 31 Constructor(in DOMPath path), |
| 32 #if defined(ENABLE_SVG) && ENABLE_SVG |
| 33 Constructor(in DOMString text), |
| 34 #endif |
| 31 Conditional=CANVAS_PATH, | 35 Conditional=CANVAS_PATH, |
| 32 InterfaceName=Path | 36 InterfaceName=Path |
| 33 ] DOMPath { | 37 ] DOMPath { |
| 34 | 38 |
| 35 // FIXME: These methods should be shared with CanvasRenderingContext2D in th
e CanvasPathMethods interface. | 39 // FIXME: These methods should be shared with CanvasRenderingContext2D in th
e CanvasPathMethods interface. |
| 36 void closePath(); | 40 void closePath(); |
| 37 void moveTo(in [Optional=DefaultIsUndefined] float x, | 41 void moveTo(in [Optional=DefaultIsUndefined] float x, |
| 38 in [Optional=DefaultIsUndefined] float y); | 42 in [Optional=DefaultIsUndefined] float y); |
| 39 void lineTo(in [Optional=DefaultIsUndefined] float x, | 43 void lineTo(in [Optional=DefaultIsUndefined] float x, |
| 40 in [Optional=DefaultIsUndefined] float y); | 44 in [Optional=DefaultIsUndefined] float y); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 59 in [Optional=DefaultIsUndefined] float width, | 63 in [Optional=DefaultIsUndefined] float width, |
| 60 in [Optional=DefaultIsUndefined] float height); | 64 in [Optional=DefaultIsUndefined] float height); |
| 61 void arc(in [Optional=DefaultIsUndefined] float x, | 65 void arc(in [Optional=DefaultIsUndefined] float x, |
| 62 in [Optional=DefaultIsUndefined] float y, | 66 in [Optional=DefaultIsUndefined] float y, |
| 63 in [Optional=DefaultIsUndefined] float radius, | 67 in [Optional=DefaultIsUndefined] float radius, |
| 64 in [Optional=DefaultIsUndefined] float startAngle, | 68 in [Optional=DefaultIsUndefined] float startAngle, |
| 65 in [Optional=DefaultIsUndefined] float endAngle, | 69 in [Optional=DefaultIsUndefined] float endAngle, |
| 66 in [Optional=DefaultIsUndefined] boolean anticlockwise) | 70 in [Optional=DefaultIsUndefined] boolean anticlockwise) |
| 67 raises (DOMException); | 71 raises (DOMException); |
| 68 }; | 72 }; |
| OLD | NEW |