| Index: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.idl
|
| diff --git a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.idl b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.idl
|
| index d559ea35b6cbd2b65cd48caae607c23ccea7d50e..68ce8de979d71a899f00aae5c2bc25ff471f0a87 100644
|
| --- a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.idl
|
| +++ b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.idl
|
| @@ -68,7 +68,7 @@ enum ImageSmoothingQuality {"low", "medium", "high"};
|
| 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] CanvasPattern? createPattern(CanvasImageSource image, [TreatNullAs=NullString] DOMString repetitionType);
|
| + [CallWith=ExecutionContext, RaisesException] CanvasPattern? createPattern(CanvasImageSource image, [TreatNullAs=NullString] DOMString repetitionType);
|
|
|
| // shadows
|
| attribute unrestricted double shadowOffsetX;
|
| @@ -105,9 +105,9 @@ enum ImageSmoothingQuality {"low", "medium", "high"};
|
| TextMetrics measureText(DOMString text);
|
|
|
| // drawing images
|
| - [RaisesException] void drawImage(CanvasImageSource image, unrestricted double x, unrestricted double y);
|
| - [RaisesException] void drawImage(CanvasImageSource image, unrestricted double x, unrestricted double y, unrestricted double width, unrestricted double height);
|
| - [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);
|
| + [CallWith=ExecutionContext, RaisesException] void drawImage(CanvasImageSource image, unrestricted double x, unrestricted double y);
|
| + [CallWith=ExecutionContext, RaisesException] void drawImage(CanvasImageSource image, unrestricted double x, unrestricted double y, unrestricted double width, unrestricted double height);
|
| + [CallWith=ExecutionContext, 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);
|
|
|
| // hit regions
|
| [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void addHitRegion(optional HitRegionOptions options);
|
|
|