| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 | 51 |
| 52 attribute float shadowOffsetX; | 52 attribute float shadowOffsetX; |
| 53 attribute float shadowOffsetY; | 53 attribute float shadowOffsetY; |
| 54 attribute float shadowBlur; | 54 attribute float shadowBlur; |
| 55 [TreatNullAs=NullString] attribute DOMString shadowColor; | 55 [TreatNullAs=NullString] attribute DOMString shadowColor; |
| 56 | 56 |
| 57 void setLineDash(sequence<float> dash); | 57 void setLineDash(sequence<float> dash); |
| 58 sequence<float> getLineDash(); | 58 sequence<float> getLineDash(); |
| 59 attribute float lineDashOffset; | 59 attribute float lineDashOffset; |
| 60 | 60 |
| 61 // FIXME: These attributes should be implemented. | |
| 62 // [Custom] attribute Array webkitLineDash; | |
| 63 // attribute float webkitLineDashOffset; | |
| 64 | |
| 65 void clearRect(float x, float y, float width, float height); | 61 void clearRect(float x, float y, float width, float height); |
| 66 void fillRect(float x, float y, float width, float height); | 62 void fillRect(float x, float y, float width, float height); |
| 67 | 63 |
| 68 void beginPath(); | 64 void beginPath(); |
| 69 | 65 |
| 70 attribute Path currentPath; | 66 attribute Path currentPath; |
| 71 | 67 |
| 72 // FIXME: These methods should be shared with CanvasRenderingContext2D in th
e CanvasPathMethods interface. | 68 // FIXME: These methods should be shared with CanvasRenderingContext2D in th
e CanvasPathMethods interface. |
| 73 void closePath(); | 69 void closePath(); |
| 74 void moveTo(float x, float y); | 70 void moveTo(float x, float y); |
| 75 void lineTo(float x, float y); | 71 void lineTo(float x, float y); |
| 76 void quadraticCurveTo(float cpx, float cpy, float x, float y); | 72 void quadraticCurveTo(float cpx, float cpy, float x, float y); |
| 77 void bezierCurveTo(float cp1x, float cp1y, float cp2x, float cp2y, float x,
float y); | 73 void bezierCurveTo(float cp1x, float cp1y, float cp2x, float cp2y, float x,
float y); |
| 78 [RaisesException] void arcTo(float x1, float y1, float x2, float y2, float r
adius); | 74 [RaisesException] void arcTo(float x1, float y1, float x2, float y2, float r
adius); |
| 79 void rect(float x, float y, float width, float height); | 75 void rect(float x, float y, float width, float height); |
| 80 [RaisesException] void arc(float x, float y, float radius, float startAngle,
float endAngle, [Default=Undefined] optional boolean anticlockwise); | 76 [RaisesException] void arc(float x, float y, float radius, float startAngle,
float endAngle, [Default=Undefined] optional boolean anticlockwise); |
| 81 [RaisesException] void ellipse(float x, float y, float radiusX, float radius
Y, float rotation, float startAngle, float endAngle, boolean anticlockwise); | 77 [RaisesException] void ellipse(float x, float y, float radiusX, float radius
Y, float rotation, float startAngle, float endAngle, [Default=Undefined] optiona
l boolean anticlockwise); |
| 82 | 78 |
| 83 void fill(optional CanvasWindingRule winding); | 79 void fill(optional CanvasWindingRule winding); |
| 84 void stroke(); | 80 void stroke(); |
| 85 void clip(optional CanvasWindingRule winding); | 81 void clip(optional CanvasWindingRule winding); |
| 86 boolean isPointInPath(float x, float y, optional CanvasWindingRule winding); | 82 boolean isPointInPath(float x, float y, optional CanvasWindingRule winding); |
| 87 boolean isPointInStroke(float x, float y); | 83 boolean isPointInStroke(float x, float y); |
| 88 | 84 |
| 89 // text | 85 // text |
| 90 attribute DOMString font; | 86 attribute DOMString font; |
| 91 attribute DOMString textAlign; | 87 attribute DOMString textAlign; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 optional DOMString compositeOperation); | 135 optional DOMString compositeOperation); |
| 140 | 136 |
| 141 void setShadow(float width, float height, float blur, [StrictTypeChecking] o
ptional DOMString color, optional float alpha); | 137 void setShadow(float width, float height, float blur, [StrictTypeChecking] o
ptional DOMString color, optional float alpha); |
| 142 void setShadow(float width, float height, float blur, float grayLevel, optio
nal float alpha); | 138 void setShadow(float width, float height, float blur, float grayLevel, optio
nal float alpha); |
| 143 void setShadow(float width, float height, float blur, float r, float g, floa
t b, float a); | 139 void setShadow(float width, float height, float blur, float r, float g, floa
t b, float a); |
| 144 void setShadow(float width, float height, float blur, float c, float m, floa
t y, float k, float a); | 140 void setShadow(float width, float height, float blur, float c, float m, floa
t y, float k, float a); |
| 145 | 141 |
| 146 [RaisesException] void putImageData(ImageData? imagedata, float dx, float dy
); | 142 [RaisesException] void putImageData(ImageData? imagedata, float dx, float dy
); |
| 147 [RaisesException] void putImageData(ImageData? imagedata, float dx, float dy
, float dirtyX, float dirtyY, float dirtyWidth, float dirtyHeight); | 143 [RaisesException] void putImageData(ImageData? imagedata, float dx, float dy
, float dirtyX, float dirtyY, float dirtyWidth, float dirtyHeight); |
| 148 | 144 |
| 149 [RaisesException] void webkitPutImageDataHD(ImageData? imagedata, float dx,
float dy); | 145 [RaisesException, DeprecateAs=PrefixedPutImageDataHD] void webkitPutImageDat
aHD(ImageData? imagedata, float dx, float dy); |
| 150 [RaisesException] void webkitPutImageDataHD(ImageData? imagedata, float dx,
float dy, float dirtyX, float dirtyY, float dirtyWidth, float dirtyHeight); | 146 [RaisesException, DeprecateAs=PrefixedPutImageDataHD] void webkitPutImageDat
aHD(ImageData? imagedata, float dx, float dy, float dirtyX, float dirtyY, float
dirtyWidth, float dirtyHeight); |
| 151 | 147 |
| 152 [RaisesException] CanvasPattern createPattern(HTMLCanvasElement? canvas, [Tr
eatNullAs=NullString] DOMString repetitionType); | 148 [RaisesException] CanvasPattern createPattern(HTMLCanvasElement? canvas, [Tr
eatNullAs=NullString] DOMString repetitionType); |
| 153 [RaisesException] CanvasPattern createPattern(HTMLImageElement? image, [Trea
tNullAs=NullString] DOMString repetitionType); | 149 [RaisesException] CanvasPattern createPattern(HTMLImageElement? image, [Trea
tNullAs=NullString] DOMString repetitionType); |
| 154 [RaisesException] ImageData createImageData(ImageData? imagedata); | 150 [RaisesException] ImageData createImageData(ImageData? imagedata); |
| 155 [RaisesException] ImageData createImageData(float sw, float sh); | 151 [RaisesException] ImageData createImageData(float sw, float sh); |
| 156 | 152 |
| 157 [Custom] attribute object strokeStyle; | 153 [Custom] attribute object strokeStyle; |
| 158 [Custom] attribute object fillStyle; | 154 [Custom] attribute object fillStyle; |
| 159 | 155 |
| 160 // pixel manipulation | 156 // pixel manipulation |
| 161 [RaisesException] ImageData getImageData(float sx, float sy, float sw, float
sh); | 157 [RaisesException] ImageData getImageData(float sx, float sy, float sw, float
sh); |
| 162 | 158 |
| 163 [RaisesException] ImageData webkitGetImageDataHD(float sx, float sy, float s
w, float sh); | 159 [RaisesException, DeprecateAs=PrefixedGetImageDataHD] ImageData webkitGetIma
geDataHD(float sx, float sy, float sw, float sh); |
| 164 | 160 |
| 165 // Focus rings | 161 // Focus rings |
| 166 [RuntimeEnabled=ExperimentalCanvasFeatures] void drawSystemFocusRing(Element
element); | 162 [RuntimeEnabled=ExperimentalCanvasFeatures] void drawSystemFocusRing(Element
element); |
| 167 [RuntimeEnabled=ExperimentalCanvasFeatures] boolean drawCustomFocusRing(Elem
ent element); | 163 [RuntimeEnabled=ExperimentalCanvasFeatures] boolean drawCustomFocusRing(Elem
ent element); |
| 168 | 164 |
| 169 readonly attribute float webkitBackingStorePixelRatio; | 165 readonly attribute float webkitBackingStorePixelRatio; |
| 170 | 166 |
| 171 [ImplementedAs=imageSmoothingEnabled] attribute boolean webkitImageSmoothing
Enabled; | 167 [ImplementedAs=imageSmoothingEnabled, MeasureAs=PrefixedImageSmoothingEnable
d] attribute boolean webkitImageSmoothingEnabled; |
| 172 attribute boolean imageSmoothingEnabled; | 168 [MeasureAs=UnprefixedImageSmoothingEnabled] attribute boolean imageSmoothing
Enabled; |
| 173 | 169 |
| 174 Canvas2DContextAttributes getContextAttributes(); | 170 Canvas2DContextAttributes getContextAttributes(); |
| 175 }; | 171 }; |
| 176 | 172 |
| OLD | NEW |