| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Note: The official spec is WIP at wiki.whatwg.org/wiki/OffscreenCanvas. | 5 // Note: The official spec is WIP at wiki.whatwg.org/wiki/OffscreenCanvas. |
| 6 | 6 |
| 7 [ | 7 [ |
| 8 GarbageCollected, | |
| 9 Exposed=(Window,Worker), | 8 Exposed=(Window,Worker), |
| 10 RuntimeEnabled=ExperimentalCanvasFeatures, | 9 RuntimeEnabled=ExperimentalCanvasFeatures, |
| 11 ] interface OffscreenCanvasRenderingContext2D { | 10 ] interface OffscreenCanvasRenderingContext2D { |
| 12 // back-reference to the canvas | 11 // back-reference to the canvas |
| 13 [ImplementedAs=getOffscreenCanvas] readonly attribute OffscreenCanvas offscr
eenCanvas; | 12 [ImplementedAs=getOffscreenCanvas] readonly attribute OffscreenCanvas offscr
eenCanvas; |
| 14 | 13 |
| 15 // colors and styles | 14 // colors and styles |
| 16 attribute (DOMString or CanvasGradient or CanvasPattern) strokeStyle; // (de
fault black) | 15 attribute (DOMString or CanvasGradient or CanvasPattern) strokeStyle; // (de
fault black) |
| 17 attribute (DOMString or CanvasGradient or CanvasPattern) fillStyle; // (defa
ult black) | 16 attribute (DOMString or CanvasGradient or CanvasPattern) fillStyle; // (defa
ult black) |
| 18 | 17 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 void resetTransform(); | 51 void resetTransform(); |
| 53 | 52 |
| 54 // shadows | 53 // shadows |
| 55 attribute unrestricted double shadowOffsetX; | 54 attribute unrestricted double shadowOffsetX; |
| 56 attribute unrestricted double shadowOffsetY; | 55 attribute unrestricted double shadowOffsetY; |
| 57 attribute unrestricted double shadowBlur; | 56 attribute unrestricted double shadowBlur; |
| 58 attribute DOMString shadowColor; | 57 attribute DOMString shadowColor; |
| 59 }; | 58 }; |
| 60 | 59 |
| 61 OffscreenCanvasRenderingContext2D implements CanvasPathMethods; | 60 OffscreenCanvasRenderingContext2D implements CanvasPathMethods; |
| OLD | NEW |