aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_bindings
diff options
context:
space:
mode:
Diffstat (limited to 'components/script_bindings')
-rw-r--r--components/script_bindings/webidls/CanvasRenderingContext2D.webidl19
1 files changed, 14 insertions, 5 deletions
diff --git a/components/script_bindings/webidls/CanvasRenderingContext2D.webidl b/components/script_bindings/webidls/CanvasRenderingContext2D.webidl
index 4479d068186..92f61126859 100644
--- a/components/script_bindings/webidls/CanvasRenderingContext2D.webidl
+++ b/components/script_bindings/webidls/CanvasRenderingContext2D.webidl
@@ -117,15 +117,15 @@ interface mixin CanvasDrawPath {
// path API (see also CanvasPath)
undefined beginPath();
undefined fill(optional CanvasFillRule fillRule = "nonzero");
- //void fill(Path2D path, optional CanvasFillRule fillRule = "nonzero");
+ undefined fill(Path2D path, optional CanvasFillRule fillRule = "nonzero");
undefined stroke();
- //void stroke(Path2D path);
+ undefined stroke(Path2D path);
undefined clip(optional CanvasFillRule fillRule = "nonzero");
- //void clip(Path2D path, optional CanvasFillRule fillRule = "nonzero");
+ undefined clip(Path2D path, optional CanvasFillRule fillRule = "nonzero");
boolean isPointInPath(unrestricted double x, unrestricted double y,
optional CanvasFillRule fillRule = "nonzero");
- //boolean isPointInPath(Path2D path, unrestricted double x, unrestricted double y,
- // optional CanvasFillRule fillRule = "nonzero");
+ boolean isPointInPath(Path2D path, unrestricted double x, unrestricted double y,
+ optional CanvasFillRule fillRule = "nonzero");
//boolean isPointInStroke(unrestricted double x, unrestricted double y);
//boolean isPointInStroke(Path2D path, unrestricted double x, unrestricted double y);
};
@@ -262,3 +262,12 @@ interface ImageData {
[Throws] readonly attribute Uint8ClampedArray data;
//readonly attribute PredefinedColorSpace colorSpace;
};
+
+[Exposed=(Window,Worker)]
+interface Path2D {
+ constructor();
+ constructor(Path2D other);
+ constructor(DOMString pathString);
+ undefined addPath(Path2D path/*, SVGMatrix? transformation*/);
+};
+Path2D includes CanvasPath;