| 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 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 // FIXME: These attributes should be implemented. | 59 // FIXME: These attributes should be implemented. |
| 60 // [Custom] attribute Array webkitLineDash; | 60 // [Custom] attribute Array webkitLineDash; |
| 61 // attribute float webkitLineDashOffset; | 61 // attribute float webkitLineDashOffset; |
| 62 | 62 |
| 63 void clearRect(float x, float y, float width, float height); | 63 void clearRect(float x, float y, float width, float height); |
| 64 void fillRect(float x, float y, float width, float height); | 64 void fillRect(float x, float y, float width, float height); |
| 65 | 65 |
| 66 void beginPath(); | 66 void beginPath(); |
| 67 | 67 |
| 68 attribute DOMPath currentPath; | 68 attribute Path currentPath; |
| 69 | 69 |
| 70 // FIXME: These methods should be shared with CanvasRenderingContext2D in th
e CanvasPathMethods interface. | 70 // FIXME: These methods should be shared with CanvasRenderingContext2D in th
e CanvasPathMethods interface. |
| 71 void closePath(); | 71 void closePath(); |
| 72 void moveTo(float x, float y); | 72 void moveTo(float x, float y); |
| 73 void lineTo(float x, float y); | 73 void lineTo(float x, float y); |
| 74 void quadraticCurveTo(float cpx, float cpy, float x, float y); | 74 void quadraticCurveTo(float cpx, float cpy, float x, float y); |
| 75 void bezierCurveTo(float cp1x, float cp1y, float cp2x, float cp2y, float x,
float y); | 75 void bezierCurveTo(float cp1x, float cp1y, float cp2x, float cp2y, float x,
float y); |
| 76 [RaisesException] void arcTo(float x1, float y1, float x2, float y2, float r
adius); | 76 [RaisesException] void arcTo(float x1, float y1, float x2, float y2, float r
adius); |
| 77 void rect(float x, float y, float width, float height); | 77 void rect(float x, float y, float width, float height); |
| 78 [RaisesException] void arc(float x, float y, float radius, float startAngle,
float endAngle, [Default=Undefined] optional boolean anticlockwise); | 78 [RaisesException] void arc(float x, float y, float radius, float startAngle,
float endAngle, [Default=Undefined] optional boolean anticlockwise); |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 | 156 |
| 157 [RaisesException] ImageData webkitGetImageDataHD(float sx, float sy, float s
w, float sh); | 157 [RaisesException] ImageData webkitGetImageDataHD(float sx, float sy, float s
w, float sh); |
| 158 | 158 |
| 159 readonly attribute float webkitBackingStorePixelRatio; | 159 readonly attribute float webkitBackingStorePixelRatio; |
| 160 | 160 |
| 161 attribute boolean webkitImageSmoothingEnabled; | 161 attribute boolean webkitImageSmoothingEnabled; |
| 162 | 162 |
| 163 [EnabledAtRuntime=experimentalCanvasFeatures] Canvas2DContextAttributes getC
ontextAttributes(); | 163 [EnabledAtRuntime=experimentalCanvasFeatures] Canvas2DContextAttributes getC
ontextAttributes(); |
| 164 }; | 164 }; |
| 165 | 165 |
| OLD | NEW |