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 15 matching lines...) Expand all Loading... | |
26 enum CanvasWindingRule { "nonzero", "evenodd" }; | 26 enum CanvasWindingRule { "nonzero", "evenodd" }; |
27 | 27 |
28 interface CanvasRenderingContext2D { | 28 interface CanvasRenderingContext2D { |
29 | 29 |
30 readonly attribute HTMLCanvasElement canvas; | 30 readonly attribute HTMLCanvasElement canvas; |
31 | 31 |
32 void save(); | 32 void save(); |
33 void restore(); | 33 void restore(); |
34 | 34 |
35 [TypeChecking=Interface|Nullable, RuntimeEnabled=ExperimentalCanvasFeatures] attribute SVGMatrix currentTransform; | 35 [TypeChecking=Interface|Nullable, RuntimeEnabled=ExperimentalCanvasFeatures] attribute SVGMatrix currentTransform; |
36 void scale(float sx, float sy); | 36 void scale(unrestricted float sx, unrestricted float sy); |
37 void rotate(float angle); | 37 void rotate(unrestricted float angle); |
38 void translate(float tx, float ty); | 38 void translate(unrestricted float tx, unrestricted float ty); |
39 void transform(float m11, float m12, float m21, float m22, float dx, float d y); | 39 void transform(unrestricted float m11, unrestricted float m12, unrestricted float m21, unrestricted float m22, unrestricted float dx, unrestricted float dy) ; |
40 void setTransform(float m11, float m12, float m21, float m22, float dx, floa t dy); | 40 void setTransform(unrestricted float m11, unrestricted float m12, unrestrict ed float m21, unrestricted float m22, unrestricted float dx, unrestricted float dy); |
41 void resetTransform(); | 41 void resetTransform(); |
42 | 42 |
43 attribute float globalAlpha; | 43 attribute unrestricted float globalAlpha; |
44 [TreatNullAs=NullString] attribute DOMString globalCompositeOperation; | 44 [TreatNullAs=NullString] attribute DOMString globalCompositeOperation; |
45 | 45 |
46 [RaisesException] CanvasGradient createLinearGradient(float x0, float y0, fl oat x1, float y1); | 46 [RaisesException] CanvasGradient createLinearGradient(float x0, float y0, fl oat x1, float y1); |
47 [RaisesException] CanvasGradient createRadialGradient(float x0, float y0, fl oat r0, float x1, float y1, float r1); | 47 [RaisesException] CanvasGradient createRadialGradient(float x0, float y0, fl oat r0, float x1, float y1, float r1); |
48 | 48 |
49 attribute float lineWidth; | 49 attribute unrestricted float lineWidth; |
50 [TreatNullAs=NullString] attribute DOMString lineCap; | 50 [TreatNullAs=NullString] attribute DOMString lineCap; |
51 [TreatNullAs=NullString] attribute DOMString lineJoin; | 51 [TreatNullAs=NullString] attribute DOMString lineJoin; |
52 attribute float miterLimit; | 52 attribute unrestricted float miterLimit; |
53 | 53 |
54 attribute float shadowOffsetX; | 54 attribute unrestricted float shadowOffsetX; |
55 attribute float shadowOffsetY; | 55 attribute unrestricted float shadowOffsetY; |
56 attribute float shadowBlur; | 56 attribute unrestricted float shadowBlur; |
57 [TreatNullAs=NullString] attribute DOMString shadowColor; | 57 [TreatNullAs=NullString] attribute DOMString shadowColor; |
58 | 58 |
59 void setLineDash(sequence<float> dash); | 59 void setLineDash(sequence<unrestricted float> dash); |
60 sequence<float> getLineDash(); | 60 sequence<unrestricted float> getLineDash(); |
61 attribute float lineDashOffset; | 61 attribute unrestricted float lineDashOffset; |
62 | 62 |
63 void clearRect(float x, float y, float width, float height); | 63 void clearRect(unrestricted float x, unrestricted float y, unrestricted floa t width, unrestricted float height); |
64 void fillRect(float x, float y, float width, float height); | 64 void fillRect(unrestricted float x, unrestricted float y, unrestricted float width, unrestricted float height); |
65 | 65 |
66 void beginPath(); | 66 void beginPath(); |
67 | 67 |
68 attribute Path2D currentPath; | 68 attribute Path2D currentPath; |
69 | 69 |
70 // FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339 000 gets fixed. | 70 // FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339 000 gets fixed. |
71 void fill(); | 71 void fill(); |
72 [RuntimeEnabled=Path2D, TypeChecking=Interface|Nullable] void fill(Path2D pa th); | 72 [RuntimeEnabled=Path2D, TypeChecking=Interface|Nullable] void fill(Path2D pa th); |
73 [TypeChecking=Interface|Nullable] void fill(CanvasWindingRule winding); | 73 [TypeChecking=Interface|Nullable] void fill(CanvasWindingRule winding); |
74 [RuntimeEnabled=Path2D, TypeChecking=Interface|Nullable] void fill(Path2D pa th, CanvasWindingRule winding); | 74 [RuntimeEnabled=Path2D, TypeChecking=Interface|Nullable] void fill(Path2D pa th, CanvasWindingRule winding); |
75 void stroke(); | 75 void stroke(); |
76 [RuntimeEnabled=Path2D, TypeChecking=Interface|Nullable] void stroke(Path2D path); | 76 [RuntimeEnabled=Path2D, TypeChecking=Interface|Nullable] void stroke(Path2D path); |
77 // FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339 000 gets fixed. | 77 // FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339 000 gets fixed. |
78 void clip(); | 78 void clip(); |
79 [RuntimeEnabled=Path2D, TypeChecking=Interface|Nullable] void clip(Path2D pa th); | 79 [RuntimeEnabled=Path2D, TypeChecking=Interface|Nullable] void clip(Path2D pa th); |
80 [TypeChecking=Interface|Nullable] void clip(CanvasWindingRule winding); | 80 [TypeChecking=Interface|Nullable] void clip(CanvasWindingRule winding); |
81 [RuntimeEnabled=Path2D, TypeChecking=Interface|Nullable] void clip(Path2D pa th, CanvasWindingRule winding); | 81 [RuntimeEnabled=Path2D, TypeChecking=Interface|Nullable] void clip(Path2D pa th, CanvasWindingRule winding); |
82 | 82 |
83 // FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339 000 gets fixed. | 83 // FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339 000 gets fixed. |
84 boolean isPointInPath(float x, float y); | 84 boolean isPointInPath(unrestricted float x, unrestricted float y); |
85 [RuntimeEnabled=Path2D, TypeChecking=Interface|Nullable] boolean isPointInPa th(Path2D path, float x, float y); | 85 [RuntimeEnabled=Path2D, TypeChecking=Interface|Nullable] boolean isPointInPa th(Path2D path, unrestricted float x, unrestricted float y); |
86 [TypeChecking=Interface|Nullable] boolean isPointInPath(float x, float y, Ca nvasWindingRule winding); | 86 [TypeChecking=Interface|Nullable] boolean isPointInPath(unrestricted float x , unrestricted float y, CanvasWindingRule winding); |
87 [RuntimeEnabled=Path2D, TypeChecking=Interface|Nullable] boolean isPointInPa th(Path2D path, float x, float y, CanvasWindingRule winding); | 87 [RuntimeEnabled=Path2D, TypeChecking=Interface|Nullable] boolean isPointInPa th(Path2D path, unrestricted float x, unrestricted float y, CanvasWindingRule wi nding); |
88 boolean isPointInStroke(float x, float y); | 88 boolean isPointInStroke(unrestricted float x, unrestricted float y); |
89 [RuntimeEnabled=Path2D, TypeChecking=Interface|Nullable] boolean isPointInSt roke(Path2D path, float x, float y); | 89 [RuntimeEnabled=Path2D, TypeChecking=Interface|Nullable] boolean isPointInSt roke(Path2D path, unrestricted float x, unrestricted float y); |
90 | 90 |
91 [RuntimeEnabled=ExperimentalCanvasFeatures] void scrollPathIntoView(); | 91 [RuntimeEnabled=ExperimentalCanvasFeatures] void scrollPathIntoView(); |
92 [RuntimeEnabled=ExperimentalCanvasFeatures, TypeChecking=Interface|Nullable] void scrollPathIntoView(Path2D path); | 92 [RuntimeEnabled=ExperimentalCanvasFeatures, TypeChecking=Interface|Nullable] void scrollPathIntoView(Path2D path); |
93 | 93 |
94 // text | 94 // text |
95 attribute DOMString font; | 95 attribute DOMString font; |
96 attribute DOMString textAlign; | 96 attribute DOMString textAlign; |
97 attribute DOMString textBaseline; | 97 attribute DOMString textBaseline; |
98 void fillText(DOMString text, float x, float y, optional float maxWidth); | 98 void fillText(DOMString text, float x, float y, optional float maxWidth); |
99 void strokeText(DOMString text, float x, float y, optional float maxWidth); | 99 void strokeText(DOMString text, float x, float y, optional float maxWidth); |
Justin Novosad
2014/04/25 14:44:29
fillText and strokeText take unrestricteds accordi
fs
2014/04/25 15:50:15
Rebase fail... Fixed.
| |
100 | 100 |
101 TextMetrics measureText(DOMString text); | 101 TextMetrics measureText(DOMString text); |
102 | 102 |
103 // Context state | 103 // Context state |
104 // Should be merged with WebGL counterpart in CanvasRenderingContext, once n o-longer experimental | 104 // Should be merged with WebGL counterpart in CanvasRenderingContext, once n o-longer experimental |
105 [RuntimeEnabled=ExperimentalCanvasFeatures] boolean isContextLost(); | 105 [RuntimeEnabled=ExperimentalCanvasFeatures] boolean isContextLost(); |
106 | 106 |
107 void strokeRect(float x, float y, float width, float height); | 107 void strokeRect(unrestricted float x, unrestricted float y, unrestricted flo at width, unrestricted float height); |
108 | 108 |
109 [RaisesException, TypeChecking=Interface|Nullable] void drawImage(HTMLImageE lement image, float x, float y); | 109 [RaisesException, TypeChecking=Interface|Nullable] void drawImage(HTMLImageE lement image, unrestricted float x, unrestricted float y); |
110 [RaisesException, TypeChecking=Interface|Nullable] void drawImage(HTMLImageE lement image, float x, float y, float width, float height); | 110 [RaisesException, TypeChecking=Interface|Nullable] void drawImage(HTMLImageE lement image, unrestricted float x, unrestricted float y, unrestricted float wid th, unrestricted float height); |
111 [RaisesException, TypeChecking=Interface|Nullable] void drawImage(HTMLImageE lement image, float sx, float sy, float sw, float sh, float dx, float dy, float dw, float dh); | 111 [RaisesException, TypeChecking=Interface|Nullable] void drawImage(HTMLImageE lement image, unrestricted float sx, unrestricted float sy, unrestricted float s w, unrestricted float sh, unrestricted float dx, unrestricted float dy, unrestri cted float dw, unrestricted float dh); |
112 [RaisesException, TypeChecking=Interface|Nullable] void drawImage(HTMLCanvas Element canvas, float x, float y); | 112 [RaisesException, TypeChecking=Interface|Nullable] void drawImage(HTMLCanvas Element canvas, unrestricted float x, unrestricted float y); |
113 [RaisesException, TypeChecking=Interface|Nullable] void drawImage(HTMLCanvas Element canvas, float x, float y, float width, float height); | 113 [RaisesException, TypeChecking=Interface|Nullable] void drawImage(HTMLCanvas Element canvas, unrestricted float x, unrestricted float y, unrestricted float w idth, unrestricted float height); |
114 [RaisesException, TypeChecking=Interface|Nullable] void drawImage(HTMLCanvas Element canvas, float sx, float sy, float sw, float sh, float dx, float dy, floa t dw, float dh); | 114 [RaisesException, TypeChecking=Interface|Nullable] void drawImage(HTMLCanvas Element canvas, unrestricted float sx, unrestricted float sy, unrestricted float sw, unrestricted float sh, unrestricted float dx, unrestricted float dy, unrest ricted float dw, unrestricted float dh); |
115 [RaisesException, TypeChecking=Interface|Nullable] void drawImage(HTMLVideoE lement video, float x, float y); | 115 [RaisesException, TypeChecking=Interface|Nullable] void drawImage(HTMLVideoE lement video, unrestricted float x, unrestricted float y); |
116 [RaisesException, TypeChecking=Interface|Nullable] void drawImage(HTMLVideoE lement video, float x, float y, float width, float height); | 116 [RaisesException, TypeChecking=Interface|Nullable] void drawImage(HTMLVideoE lement video, unrestricted float x, unrestricted float y, unrestricted float wid th, unrestricted float height); |
117 [RaisesException, TypeChecking=Interface|Nullable] void drawImage(HTMLVideoE lement video, float sx, float sy, float sw, float sh, float dx, float dy, float dw, float dh); | 117 [RaisesException, TypeChecking=Interface|Nullable] void drawImage(HTMLVideoE lement video, unrestricted float sx, unrestricted float sy, unrestricted float s w, unrestricted float sh, unrestricted float dx, unrestricted float dy, unrestri cted float dw, unrestricted float dh); |
118 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException, TypeChecking=In terface|Nullable] void drawImage(ImageBitmap imageBitmap, float x, float y); | 118 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException, TypeChecking=In terface|Nullable] void drawImage(ImageBitmap imageBitmap, unrestricted float x, unrestricted float y); |
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, unrestricted float x, unrestricted float y, unrestricted float width, unrestricted 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, unrestricted float sx, unrestricted float sy, unrestricted float sw, unrestricted float sh, unrestrict ed float dx, unrestricted float dy, unrestricted float dw, unrestricted 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] 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); |
140 [RuntimeEnabled=ExperimentalCanvasFeatures, TypeChecking=Interface|Nullable] boolean drawCustomFocusRing(Element element); | 140 [RuntimeEnabled=ExperimentalCanvasFeatures, TypeChecking=Interface|Nullable] boolean drawCustomFocusRing(Element element); |
141 | 141 |
142 [ImplementedAs=imageSmoothingEnabled, MeasureAs=PrefixedImageSmoothingEnable d] attribute boolean webkitImageSmoothingEnabled; | 142 [ImplementedAs=imageSmoothingEnabled, MeasureAs=PrefixedImageSmoothingEnable d] attribute boolean webkitImageSmoothingEnabled; |
143 [MeasureAs=UnprefixedImageSmoothingEnabled] attribute boolean imageSmoothing Enabled; | 143 [MeasureAs=UnprefixedImageSmoothingEnabled] attribute boolean imageSmoothing Enabled; |
144 | 144 |
145 Canvas2DContextAttributes getContextAttributes(); | 145 Canvas2DContextAttributes getContextAttributes(); |
146 | 146 |
147 // Non-standard APIs. Candidates for deprecation | 147 // Non-standard APIs. Candidates for deprecation |
148 [MeasureAs=CanvasRenderingContext2DSetAlpha] void setAlpha(float alpha); | 148 [MeasureAs=CanvasRenderingContext2DSetAlpha] void setAlpha(unrestricted floa t alpha); |
149 [MeasureAs=CanvasRenderingContext2DSetCompositeOperation] void setCompositeO peration(DOMString compositeOperation); | 149 [MeasureAs=CanvasRenderingContext2DSetCompositeOperation] void setCompositeO peration(DOMString compositeOperation); |
150 [MeasureAs=CanvasRenderingContext2DSetLineWidth] void setLineWidth(float wid th); | 150 [MeasureAs=CanvasRenderingContext2DSetLineWidth] void setLineWidth(unrestric ted float width); |
151 [MeasureAs=CanvasRenderingContext2DSetLineCap] void setLineCap(DOMString cap ); | 151 [MeasureAs=CanvasRenderingContext2DSetLineCap] void setLineCap(DOMString cap ); |
152 [MeasureAs=CanvasRenderingContext2DSetLineJoin] void setLineJoin(DOMString j oin); | 152 [MeasureAs=CanvasRenderingContext2DSetLineJoin] void setLineJoin(DOMString j oin); |
153 [MeasureAs=CanvasRenderingContext2DSetMiterLimit] void setMiterLimit(float l imit); | 153 [MeasureAs=CanvasRenderingContext2DSetMiterLimit] void setMiterLimit(unrestr icted float limit); |
154 [MeasureAs=CanvasRenderingContext2DClearShadow] void clearShadow(); | 154 [MeasureAs=CanvasRenderingContext2DClearShadow] void clearShadow(); |
155 [MeasureAs=CanvasRenderingContext2DSetStrokeColor] void setStrokeColor([Lega cyOverloadString] DOMString color, optional float alpha); | 155 [MeasureAs=CanvasRenderingContext2DSetStrokeColor] void setStrokeColor([Lega cyOverloadString] DOMString color, optional unrestricted float alpha); |
156 [MeasureAs=CanvasRenderingContext2DSetStrokeColor] void setStrokeColor(float grayLevel, optional float alpha); | 156 [MeasureAs=CanvasRenderingContext2DSetStrokeColor] void setStrokeColor(unres tricted float grayLevel, optional unrestricted float alpha); |
157 [MeasureAs=CanvasRenderingContext2DSetStrokeColor] void setStrokeColor(float r, float g, float b, float a); | 157 [MeasureAs=CanvasRenderingContext2DSetStrokeColor] void setStrokeColor(unres tricted float r, unrestricted float g, unrestricted float b, unrestricted float a); |
158 [MeasureAs=CanvasRenderingContext2DSetStrokeColor] void setStrokeColor(float c, float m, float y, float k, float a); | 158 [MeasureAs=CanvasRenderingContext2DSetStrokeColor] void setStrokeColor(unres tricted float c, unrestricted float m, unrestricted float y, unrestricted float k, unrestricted float a); |
159 [MeasureAs=CanvasRenderingContext2DSetFillColor] void setFillColor([LegacyOv erloadString] DOMString color, optional float alpha); | 159 [MeasureAs=CanvasRenderingContext2DSetFillColor] void setFillColor([LegacyOv erloadString] DOMString color, optional unrestricted float alpha); |
160 [MeasureAs=CanvasRenderingContext2DSetFillColor] void setFillColor(float gra yLevel, optional float alpha); | 160 [MeasureAs=CanvasRenderingContext2DSetFillColor] void setFillColor(unrestric ted float grayLevel, optional unrestricted float alpha); |
161 [MeasureAs=CanvasRenderingContext2DSetFillColor] void setFillColor(float r, float g, float b, float a); | 161 [MeasureAs=CanvasRenderingContext2DSetFillColor] void setFillColor(unrestric ted float r, unrestricted float g, unrestricted float b, unrestricted float a); |
162 [MeasureAs=CanvasRenderingContext2DSetFillColor] void setFillColor(float c, float m, float y, float k, float a); | 162 [MeasureAs=CanvasRenderingContext2DSetFillColor] void setFillColor(unrestric ted float c, unrestricted float m, unrestricted float y, unrestricted float k, u nrestricted float a); |
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 unrestricted float sx, optional unrest ricted float sy, optional unrestricted float sw, optional unrestricted float sh, |
165 optional float dx, optional float dy, optional float dw, optional float dh, optional DOMString compositeOperation); | 165 optional unrestricted float dx, optional unrestricted float dy, optional unrestricted float dw, optional unrestricted float dh, optional DOMString compo siteOperation); |
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(unrestricted fl oat width, unrestricted float height, unrestricted float blur, [LegacyOverloadSt ring] optional DOMString color, optional unrestricted float alpha); |
167 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(float width, fl oat height, float blur, float grayLevel, optional float alpha); | 167 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(unrestricted fl oat width, unrestricted float height, unrestricted float blur, unrestricted floa t grayLevel, optional unrestricted 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(unrestricted fl oat width, unrestricted float height, unrestricted float blur, unrestricted floa t r, unrestricted float g, unrestricted float b, unrestricted 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(unrestricted fl oat width, unrestricted float height, unrestricted float blur, unrestricted floa t c, unrestricted float m, unrestricted float y, unrestricted float k, unrestric ted float a); |
170 }; | 170 }; |
171 | 171 |
172 CanvasRenderingContext2D implements CanvasPathMethods; | 172 CanvasRenderingContext2D implements CanvasPathMethods; |
OLD | NEW |