| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 optional DOMString compositeOperation); | 143 optional DOMString compositeOperation); |
| 144 | 144 |
| 145 void setShadow(float width, float height, float blur, [StrictTypeChecking] o
ptional DOMString color, optional float alpha); | 145 void setShadow(float width, float height, float blur, [StrictTypeChecking] o
ptional DOMString color, optional float alpha); |
| 146 void setShadow(float width, float height, float blur, float grayLevel, optio
nal float alpha); | 146 void setShadow(float width, float height, float blur, float grayLevel, optio
nal float alpha); |
| 147 void setShadow(float width, float height, float blur, float r, float g, floa
t b, float a); | 147 void setShadow(float width, float height, float blur, float r, float g, floa
t b, float a); |
| 148 void setShadow(float width, float height, float blur, float c, float m, floa
t y, float k, float a); | 148 void setShadow(float width, float height, float blur, float c, float m, floa
t y, float k, float a); |
| 149 | 149 |
| 150 [RaisesException] void putImageData(ImageData? imagedata, float dx, float dy
); | 150 [RaisesException] void putImageData(ImageData? imagedata, float dx, float dy
); |
| 151 [RaisesException] void putImageData(ImageData? imagedata, float dx, float dy
, float dirtyX, float dirtyY, float dirtyWidth, float dirtyHeight); | 151 [RaisesException] void putImageData(ImageData? imagedata, float dx, float dy
, float dirtyX, float dirtyY, float dirtyWidth, float dirtyHeight); |
| 152 | 152 |
| 153 [RaisesException, DeprecateAs=PrefixedPutImageDataHD] void webkitPutImageDat
aHD(ImageData? imagedata, float dx, float dy); | |
| 154 [RaisesException, DeprecateAs=PrefixedPutImageDataHD] void webkitPutImageDat
aHD(ImageData? imagedata, float dx, float dy, float dirtyX, float dirtyY, float
dirtyWidth, float dirtyHeight); | |
| 155 | |
| 156 [RaisesException] CanvasPattern createPattern(HTMLCanvasElement? canvas, [Tr
eatNullAs=NullString] DOMString repetitionType); | 153 [RaisesException] CanvasPattern createPattern(HTMLCanvasElement? canvas, [Tr
eatNullAs=NullString] DOMString repetitionType); |
| 157 [RaisesException] CanvasPattern createPattern(HTMLImageElement? image, [Trea
tNullAs=NullString] DOMString repetitionType); | 154 [RaisesException] CanvasPattern createPattern(HTMLImageElement? image, [Trea
tNullAs=NullString] DOMString repetitionType); |
| 158 [RaisesException] CanvasPattern createPattern(HTMLVideoElement? image, [Trea
tNullAs=NullString] DOMString repetitionType); | 155 [RaisesException] CanvasPattern createPattern(HTMLVideoElement? image, [Trea
tNullAs=NullString] DOMString repetitionType); |
| 159 [RaisesException] ImageData createImageData(ImageData? imagedata); | 156 [RaisesException] ImageData createImageData(ImageData? imagedata); |
| 160 [RaisesException] ImageData createImageData(float sw, float sh); | 157 [RaisesException] ImageData createImageData(float sw, float sh); |
| 161 | 158 |
| 162 [Custom] attribute object strokeStyle; | 159 [Custom] attribute object strokeStyle; |
| 163 [Custom] attribute object fillStyle; | 160 [Custom] attribute object fillStyle; |
| 164 | 161 |
| 165 // pixel manipulation | 162 // pixel manipulation |
| 166 [RaisesException] ImageData getImageData(float sx, float sy, float sw, float
sh); | 163 [RaisesException] ImageData getImageData(float sx, float sy, float sw, float
sh); |
| 167 | 164 |
| 168 [RaisesException, DeprecateAs=PrefixedGetImageDataHD] ImageData webkitGetIma
geDataHD(float sx, float sy, float sw, float sh); | |
| 169 | |
| 170 // Focus rings | 165 // Focus rings |
| 171 [RuntimeEnabled=ExperimentalCanvasFeatures] void drawFocusIfNeeded(Element e
lement); | 166 [RuntimeEnabled=ExperimentalCanvasFeatures] void drawFocusIfNeeded(Element e
lement); |
| 172 [RuntimeEnabled=ExperimentalCanvasFeatures] boolean drawCustomFocusRing(Elem
ent element); | 167 [RuntimeEnabled=ExperimentalCanvasFeatures] boolean drawCustomFocusRing(Elem
ent element); |
| 173 | 168 |
| 174 readonly attribute float webkitBackingStorePixelRatio; | |
| 175 | |
| 176 [ImplementedAs=imageSmoothingEnabled, MeasureAs=PrefixedImageSmoothingEnable
d] attribute boolean webkitImageSmoothingEnabled; | 169 [ImplementedAs=imageSmoothingEnabled, MeasureAs=PrefixedImageSmoothingEnable
d] attribute boolean webkitImageSmoothingEnabled; |
| 177 [MeasureAs=UnprefixedImageSmoothingEnabled] attribute boolean imageSmoothing
Enabled; | 170 [MeasureAs=UnprefixedImageSmoothingEnabled] attribute boolean imageSmoothing
Enabled; |
| 178 | 171 |
| 179 Canvas2DContextAttributes getContextAttributes(); | 172 Canvas2DContextAttributes getContextAttributes(); |
| 180 }; | 173 }; |
| 181 | 174 |
| 182 CanvasRenderingContext2D implements CanvasPathMethods; | 175 CanvasRenderingContext2D implements CanvasPathMethods; |
| OLD | NEW |