Chromium Code Reviews| Index: third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.idl |
| diff --git a/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.idl b/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.idl |
| index 755300f081f03c0a18774d2c4fd25f108e549191..d6458d5920947da988d4cd5f01c54e466ac09604 100644 |
| --- a/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.idl |
| +++ b/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.idl |
| @@ -16,7 +16,7 @@ |
| attribute (DOMString or CanvasGradient or CanvasPattern) fillStyle; // (default black) |
| CanvasGradient createLinearGradient(double x0, double y0, double x1, double y1); |
| [RaisesException] CanvasGradient createRadialGradient(double x0, double y0, double r0, double x1, double y1, double r1); |
| - [CallWith=ScriptState, RaisesException, Exposed=Worker] CanvasPattern? createPattern(CanvasImageSource image, [TreatNullAs=NullString] DOMString repetitionType); |
| + [CallWith=ExecutionContext, RaisesException, Exposed=Worker] CanvasPattern? createPattern(CanvasImageSource image, [TreatNullAs=NullString] DOMString repetitionType); |
| // CanvasRect interface |
| void clearRect(unrestricted double x, unrestricted double y, unrestricted double width, unrestricted double height); |
| @@ -30,6 +30,12 @@ |
| void stroke(); |
| void stroke(Path2D path); |
| + // drawing images |
| + // TODO: Expose these API to Window with more layout tests |
|
Justin Novosad
2016/04/29 19:29:04
crbug?
|
| + [CallWith=ExecutionContext, Exposed=Worker, RaisesException] void drawImage(CanvasImageSource image, unrestricted double x, unrestricted double y); |
| + [CallWith=ExecutionContext, Exposed=Worker, RaisesException] void drawImage(CanvasImageSource image, unrestricted double x, unrestricted double y, unrestricted double width, unrestricted double height); |
| + [CallWith=ExecutionContext, Exposed=Worker, RaisesException] void drawImage(CanvasImageSource image, unrestricted double sx, unrestricted double sy, unrestricted double sw, unrestricted double sh, unrestricted double dx, unrestricted double dy, unrestricted double dw, unrestricted double dh); |
|
Justin Novosad
2016/04/29 19:29:04
Since you are exposing these new APIs, please add
|
| + |
| // Line caps/joins |
| attribute unrestricted double lineWidth; // (default 1) |
| attribute DOMString lineCap; // "butt", "round", "square" (default "butt") |