| 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..480041c0731b643826c51b1e47404ec71c11a251 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(crbug.com/563856): Expose these API to Window with more layout tests
|
| + [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);
|
| +
|
| // Line caps/joins
|
| attribute unrestricted double lineWidth; // (default 1)
|
| attribute DOMString lineCap; // "butt", "round", "square" (default "butt")
|
|
|