| 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 [RuntimeEnabled=ExperimentalCanvasFeatures, Immutable] attribute SVGMatrix c
urrentTransform; | 33 [StrictTypeChecking, RuntimeEnabled=ExperimentalCanvasFeatures] attribute SV
GMatrix currentTransform; |
| 34 void scale(float sx, float sy); | 34 void scale(float sx, float sy); |
| 35 void rotate(float angle); | 35 void rotate(float angle); |
| 36 void translate(float tx, float ty); | 36 void translate(float tx, float ty); |
| 37 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); |
| 38 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); |
| 39 void resetTransform(); | 39 void resetTransform(); |
| 40 | 40 |
| 41 attribute float globalAlpha; | 41 attribute float globalAlpha; |
| 42 [TreatNullAs=NullString] attribute DOMString globalCompositeOperation; | 42 [TreatNullAs=NullString] attribute DOMString globalCompositeOperation; |
| 43 | 43 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 [RuntimeEnabled=ExperimentalCanvasFeatures] boolean drawCustomFocusRing(Elem
ent element); | 163 [RuntimeEnabled=ExperimentalCanvasFeatures] boolean drawCustomFocusRing(Elem
ent element); |
| 164 | 164 |
| 165 readonly attribute float webkitBackingStorePixelRatio; | 165 readonly attribute float webkitBackingStorePixelRatio; |
| 166 | 166 |
| 167 [ImplementedAs=imageSmoothingEnabled, MeasureAs=PrefixedImageSmoothingEnable
d] attribute boolean webkitImageSmoothingEnabled; | 167 [ImplementedAs=imageSmoothingEnabled, MeasureAs=PrefixedImageSmoothingEnable
d] attribute boolean webkitImageSmoothingEnabled; |
| 168 [MeasureAs=UnprefixedImageSmoothingEnabled] attribute boolean imageSmoothing
Enabled; | 168 [MeasureAs=UnprefixedImageSmoothingEnabled] attribute boolean imageSmoothing
Enabled; |
| 169 | 169 |
| 170 Canvas2DContextAttributes getContextAttributes(); | 170 Canvas2DContextAttributes getContextAttributes(); |
| 171 }; | 171 }; |
| 172 | 172 |
| OLD | NEW |