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

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

Issue 973503002: Remove [TypeChecking=Unrestricted] use in Source/core/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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
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 17 matching lines...) Expand all
28 // FIXME: float => double throughout 28 // FIXME: float => double throughout
29 typedef (HTMLImageElement or 29 typedef (HTMLImageElement or
30 HTMLVideoElement or 30 HTMLVideoElement or
31 HTMLCanvasElement or 31 HTMLCanvasElement or
32 // CanvasRenderingContext2D or 32 // CanvasRenderingContext2D or
33 ImageBitmap) CanvasImageSource; 33 ImageBitmap) CanvasImageSource;
34 34
35 enum CanvasFillRule { "nonzero", "evenodd" }; 35 enum CanvasFillRule { "nonzero", "evenodd" };
36 36
37 [ 37 [
38 TypeChecking=(Interface,Unrestricted), 38 TypeChecking=Interface,
39 WillBeGarbageCollected, 39 WillBeGarbageCollected,
40 ] interface CanvasRenderingContext2D { 40 ] interface CanvasRenderingContext2D {
41 // back-reference to the canvas 41 // back-reference to the canvas
42 readonly attribute HTMLCanvasElement canvas; 42 readonly attribute HTMLCanvasElement canvas;
43 43
44 // state 44 // state
45 void save(); // push state on state stack 45 void save(); // push state on state stack
46 void restore(); // pop state stack and restore state 46 void restore(); // pop state stack and restore state
47 47
48 // transformations (default transform is the identity matrix) 48 // transformations (default transform is the identity matrix)
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 140
141 // text 141 // text
142 attribute DOMString font; // (default 10px sans-serif) 142 attribute DOMString font; // (default 10px sans-serif)
143 attribute DOMString textAlign; // "start", "end", "left", "right", "center" (default: "start") 143 attribute DOMString textAlign; // "start", "end", "left", "right", "center" (default: "start")
144 attribute DOMString textBaseline; // "top", "hanging", "middle", "alphabetic ", "ideographic", "bottom" (default: "alphabetic") 144 attribute DOMString textBaseline; // "top", "hanging", "middle", "alphabetic ", "ideographic", "bottom" (default: "alphabetic")
145 [RuntimeEnabled=ExperimentalCanvasFeatures] attribute DOMString direction; / / "inherit", "rtl", "ltr" (default: "inherit") 145 [RuntimeEnabled=ExperimentalCanvasFeatures] attribute DOMString direction; / / "inherit", "rtl", "ltr" (default: "inherit")
146 146
147 }; 147 };
148 148
149 CanvasRenderingContext2D implements CanvasPathMethods; 149 CanvasRenderingContext2D implements CanvasPathMethods;
OLDNEW
« no previous file with comments | « Source/core/html/canvas/CanvasGradient.idl ('k') | Source/core/html/canvas/WebGLRenderingContextBase.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698