Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(854)

Side by Side Diff: Source/core/html/canvas/CanvasRenderingContext2D.idl

Issue 24233004: Support currentTransform in 2D Canvas. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Consider Return value optimization. Check assignment operator correctly. Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698