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

Side by Side Diff: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.idl

Issue 2676663006: Remove SetWrapperReferenceTo and SetWrapperReferenceFrom (Closed)
Patch Set: Rebase on master Created 3 years, 10 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 18 matching lines...) Expand all
29 HTMLImageElement or 29 HTMLImageElement or
30 HTMLVideoElement or 30 HTMLVideoElement or
31 HTMLCanvasElement or 31 HTMLCanvasElement or
32 ImageBitmap or 32 ImageBitmap or
33 OffscreenCanvas) CanvasImageSource; 33 OffscreenCanvas) CanvasImageSource;
34 34
35 enum CanvasFillRule { "nonzero", "evenodd" }; 35 enum CanvasFillRule { "nonzero", "evenodd" };
36 enum ImageSmoothingQuality {"low", "medium", "high"}; 36 enum ImageSmoothingQuality {"low", "medium", "high"};
37 37
38 [ 38 [
39 SetWrapperReferenceFrom=canvas, 39 DependentLifetime,
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)
49 [RuntimeEnabled=ExperimentalCanvasFeatures] attribute SVGMatrix currentTrans form; 49 [RuntimeEnabled=ExperimentalCanvasFeatures] attribute SVGMatrix currentTrans form;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 141
142 // text 142 // text
143 attribute DOMString font; // (default 10px sans-serif) 143 attribute DOMString font; // (default 10px sans-serif)
144 attribute DOMString textAlign; // "start", "end", "left", "right", "center" (default: "start") 144 attribute DOMString textAlign; // "start", "end", "left", "right", "center" (default: "start")
145 attribute DOMString textBaseline; // "top", "hanging", "middle", "alphabetic ", "ideographic", "bottom" (default: "alphabetic") 145 attribute DOMString textBaseline; // "top", "hanging", "middle", "alphabetic ", "ideographic", "bottom" (default: "alphabetic")
146 [RuntimeEnabled=ExperimentalCanvasFeatures] attribute DOMString direction; / / "inherit", "rtl", "ltr" (default: "inherit") 146 [RuntimeEnabled=ExperimentalCanvasFeatures] attribute DOMString direction; / / "inherit", "rtl", "ltr" (default: "inherit")
147 147
148 }; 148 };
149 149
150 CanvasRenderingContext2D implements CanvasPathMethods; 150 CanvasRenderingContext2D implements CanvasPathMethods;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698