| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException, TypeChecking=In
terface|Nullable] void drawImage(ImageBitmap imageBitmap, float x, float y, floa
t width, float height); | 119 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException, TypeChecking=In
terface|Nullable] void drawImage(ImageBitmap imageBitmap, float x, float y, floa
t width, float height); |
| 120 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException, TypeChecking=In
terface|Nullable] void drawImage(ImageBitmap imageBitmap, float sx, float sy, fl
oat sw, float sh, float dx, float dy, float dw, float dh); | 120 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException, TypeChecking=In
terface|Nullable] void drawImage(ImageBitmap imageBitmap, float sx, float sy, fl
oat sw, float sh, float dx, float dy, float dw, float dh); |
| 121 | 121 |
| 122 [RaisesException, TypeChecking=Interface|Nullable] void putImageData(ImageDa
ta imagedata, float dx, float dy); | 122 [RaisesException, TypeChecking=Interface|Nullable] void putImageData(ImageDa
ta imagedata, float dx, float dy); |
| 123 [RaisesException, TypeChecking=Interface|Nullable] void putImageData(ImageDa
ta imagedata, float dx, float dy, float dirtyX, float dirtyY, float dirtyWidth,
float dirtyHeight); | 123 [RaisesException, TypeChecking=Interface|Nullable] void putImageData(ImageDa
ta imagedata, float dx, float dy, float dirtyX, float dirtyY, float dirtyWidth,
float dirtyHeight); |
| 124 | 124 |
| 125 [RaisesException, TypeChecking=Interface|Nullable] CanvasPattern createPatte
rn(HTMLCanvasElement canvas, [TreatNullAs=NullString] DOMString repetitionType); | 125 [RaisesException, TypeChecking=Interface|Nullable] CanvasPattern createPatte
rn(HTMLCanvasElement canvas, [TreatNullAs=NullString] DOMString repetitionType); |
| 126 [RaisesException, TypeChecking=Interface|Nullable] CanvasPattern createPatte
rn(HTMLImageElement image, [TreatNullAs=NullString] DOMString repetitionType); | 126 [RaisesException, TypeChecking=Interface|Nullable] CanvasPattern createPatte
rn(HTMLImageElement image, [TreatNullAs=NullString] DOMString repetitionType); |
| 127 [RaisesException, TypeChecking=Interface|Nullable] CanvasPattern createPatte
rn(HTMLVideoElement image, [TreatNullAs=NullString] DOMString repetitionType); | 127 [RaisesException, TypeChecking=Interface|Nullable] CanvasPattern createPatte
rn(HTMLVideoElement image, [TreatNullAs=NullString] DOMString repetitionType); |
| 128 [TypeChecking=Interface|Nullable] ImageData createImageData(ImageData imaged
ata); | 128 [TypeChecking=Interface|Nullable] ImageData createImageData(ImageData imaged
ata); |
| 129 [RaisesException] ImageData createImageData(float sw, float sh); | 129 [RaisesException, TypeChecking=Unrestricted] ImageData createImageData(float
sw, float sh); |
| 130 | 130 |
| 131 [Custom] attribute object strokeStyle; | 131 [Custom] attribute object strokeStyle; |
| 132 [Custom] attribute object fillStyle; | 132 [Custom] attribute object fillStyle; |
| 133 | 133 |
| 134 // pixel manipulation | 134 // pixel manipulation |
| 135 [RaisesException] ImageData getImageData(float sx, float sy, float sw, float
sh); | 135 [RaisesException] ImageData getImageData(float sx, float sy, float sw, float
sh); |
| 136 | 136 |
| 137 // Focus rings | 137 // Focus rings |
| 138 [RuntimeEnabled=ExperimentalCanvasFeatures, TypeChecking=Interface|Nullable]
void drawFocusIfNeeded(Element element); | 138 [RuntimeEnabled=ExperimentalCanvasFeatures, TypeChecking=Interface|Nullable]
void drawFocusIfNeeded(Element element); |
| 139 [RuntimeEnabled=ExperimentalCanvasFeatures, TypeChecking=Interface|Nullable]
void drawFocusIfNeeded(Path2D path, Element element); | 139 [RuntimeEnabled=ExperimentalCanvasFeatures, TypeChecking=Interface|Nullable]
void drawFocusIfNeeded(Path2D path, Element element); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 163 [TypeChecking=Interface|Nullable, MeasureAs=CanvasRenderingContext2DDrawImag
eFromRect] void drawImageFromRect( | 163 [TypeChecking=Interface|Nullable, MeasureAs=CanvasRenderingContext2DDrawImag
eFromRect] void drawImageFromRect( |
| 164 HTMLImageElement? image, optional float sx, optional float sy, optional
float sw, optional float sh, | 164 HTMLImageElement? image, optional float sx, optional float sy, optional
float sw, optional float sh, |
| 165 optional float dx, optional float dy, optional float dw, optional float
dh, optional DOMString compositeOperation); | 165 optional float dx, optional float dy, optional float dw, optional float
dh, optional DOMString compositeOperation); |
| 166 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(float width, fl
oat height, float blur, [LegacyOverloadString] optional DOMString color, optiona
l float alpha); | 166 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(float width, fl
oat height, float blur, [LegacyOverloadString] optional DOMString color, optiona
l float alpha); |
| 167 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(float width, fl
oat height, float blur, float grayLevel, optional float alpha); | 167 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(float width, fl
oat height, float blur, float grayLevel, optional float alpha); |
| 168 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(float width, fl
oat height, float blur, float r, float g, float b, float a); | 168 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(float width, fl
oat height, float blur, float r, float g, float b, float a); |
| 169 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(float width, fl
oat height, float blur, float c, float m, float y, float k, float a); | 169 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(float width, fl
oat height, float blur, float c, float m, float y, float k, float a); |
| 170 }; | 170 }; |
| 171 | 171 |
| 172 CanvasRenderingContext2D implements CanvasPathMethods; | 172 CanvasRenderingContext2D implements CanvasPathMethods; |
| OLD | NEW |