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 12 matching lines...) Expand all Loading... | |
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 enum CanvasWindingRule { "nonzero", "evenodd" }; | 26 enum CanvasWindingRule { "nonzero", "evenodd" }; |
27 | 27 |
28 interface CanvasRenderingContext2D : CanvasRenderingContext { | 28 interface CanvasRenderingContext2D : CanvasRenderingContext { |
29 | 29 |
30 void save(); | 30 void save(); |
31 void restore(); | 31 void restore(); |
32 | 32 |
33 [EnabledAtRuntime=ExperimentalCanvasFeatures, Custom] attribute SVGMatrix cu rrentTransform; | |
haraken
2013/09/20 07:07:19
What code is generated if you omit [Custom]? How i
| |
33 void scale(float sx, float sy); | 34 void scale(float sx, float sy); |
34 void rotate(float angle); | 35 void rotate(float angle); |
35 void translate(float tx, float ty); | 36 void translate(float tx, float ty); |
36 void transform(float m11, float m12, float m21, float m22, float dx, float d y); | 37 void transform(float m11, float m12, float m21, float m22, float dx, float d y); |
37 void setTransform(float m11, float m12, float m21, float m22, float dx, floa t dy); | 38 void setTransform(float m11, float m12, float m21, float m22, float dx, floa t dy); |
38 void resetTransform(); | 39 void resetTransform(); |
39 | 40 |
40 attribute float globalAlpha; | 41 attribute float globalAlpha; |
41 [TreatNullAs=NullString] attribute DOMString globalCompositeOperation; | 42 [TreatNullAs=NullString] attribute DOMString globalCompositeOperation; |
42 | 43 |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
166 [EnabledAtRuntime=ExperimentalCanvasFeatures] boolean drawCustomFocusRing(El ement element); | 167 [EnabledAtRuntime=ExperimentalCanvasFeatures] boolean drawCustomFocusRing(El ement element); |
167 | 168 |
168 readonly attribute float webkitBackingStorePixelRatio; | 169 readonly attribute float webkitBackingStorePixelRatio; |
169 | 170 |
170 [ImplementedAs=imageSmoothingEnabled] attribute boolean webkitImageSmoothing Enabled; | 171 [ImplementedAs=imageSmoothingEnabled] attribute boolean webkitImageSmoothing Enabled; |
171 attribute boolean imageSmoothingEnabled; | 172 attribute boolean imageSmoothingEnabled; |
172 | 173 |
173 [EnabledAtRuntime=ExperimentalCanvasFeatures] Canvas2DContextAttributes getC ontextAttributes(); | 174 [EnabledAtRuntime=ExperimentalCanvasFeatures] Canvas2DContextAttributes getC ontextAttributes(); |
174 }; | 175 }; |
175 | 176 |
OLD | NEW |