| Index: core/html/canvas/CanvasRenderingContext2D.idl
|
| diff --git a/core/html/canvas/CanvasRenderingContext2D.idl b/core/html/canvas/CanvasRenderingContext2D.idl
|
| index aa076cca2a10f71aaa6dac41e8dd9bc7643db8bd..b1eb216f331a1f2a9c8b0de96c551f56608ed682 100644
|
| --- a/core/html/canvas/CanvasRenderingContext2D.idl
|
| +++ b/core/html/canvas/CanvasRenderingContext2D.idl
|
| @@ -38,7 +38,7 @@ typedef (HTMLImageElement or
|
| enum CanvasFillRule { "nonzero", "evenodd" };
|
|
|
| [
|
| - TypeChecking=Interface|Unrestricted,
|
| + TypeChecking=(Interface,Unrestricted),
|
| WillBeGarbageCollected,
|
| ] interface CanvasRenderingContext2D {
|
| // back-reference to the canvas
|
| @@ -89,20 +89,20 @@ enum CanvasFillRule { "nonzero", "evenodd" };
|
| // path API (see also CanvasPathMethods)
|
| void beginPath();
|
| void fill(optional CanvasFillRule winding);
|
| - [RuntimeEnabled=Path2D] void fill(Path2D path, optional CanvasFillRule winding);
|
| + void fill(Path2D path, optional CanvasFillRule winding);
|
| void stroke();
|
| - [RuntimeEnabled=Path2D] void stroke(Path2D path);
|
| + void stroke(Path2D path);
|
| // Focus rings
|
| void drawFocusIfNeeded(Element element);
|
| - [RuntimeEnabled=Path2D] void drawFocusIfNeeded(Path2D path, Element element);
|
| + void drawFocusIfNeeded(Path2D path, Element element);
|
|
|
| [RuntimeEnabled=ExperimentalCanvasFeatures] void scrollPathIntoView(optional Path2D path);
|
| void clip(optional CanvasFillRule winding);
|
| - [RuntimeEnabled=Path2D] void clip(Path2D path, optional CanvasFillRule winding);
|
| + void clip(Path2D path, optional CanvasFillRule winding);
|
| boolean isPointInPath(unrestricted float x, unrestricted float y, optional CanvasFillRule winding);
|
| - [RuntimeEnabled=Path2D] boolean isPointInPath(Path2D path, unrestricted float x, unrestricted float y, optional CanvasFillRule winding);
|
| + boolean isPointInPath(Path2D path, unrestricted float x, unrestricted float y, optional CanvasFillRule winding);
|
| boolean isPointInStroke(unrestricted float x, unrestricted float y);
|
| - [RuntimeEnabled=Path2D] boolean isPointInStroke(Path2D path, unrestricted float x, unrestricted float y);
|
| + boolean isPointInStroke(Path2D path, unrestricted float x, unrestricted float y);
|
|
|
| // text (see also the CanvasDrawingStyles interface)
|
| void fillText(DOMString text, unrestricted float x, unrestricted float y, optional unrestricted float maxWidth);
|
| @@ -124,9 +124,7 @@ enum CanvasFillRule { "nonzero", "evenodd" };
|
| [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void drawImage(ImageBitmap imageBitmap, unrestricted float sx, unrestricted float sy, unrestricted float sw, unrestricted float sh, unrestricted float dx, unrestricted float dy, unrestricted float dw, unrestricted float dh);
|
|
|
| // hit regions
|
| - // FIXME: Blink does not currently support WebIDL dictionary definitions.
|
| - // See http://crbug.com/321462
|
| - [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void addHitRegion(optional Dictionary options);
|
| + [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void addHitRegion(optional HitRegionOptions options);
|
| [RuntimeEnabled=ExperimentalCanvasFeatures] void removeHitRegion(DOMString id);
|
| [RuntimeEnabled=ExperimentalCanvasFeatures] void clearHitRegions();
|
|
|
| @@ -159,6 +157,7 @@ enum CanvasFillRule { "nonzero", "evenodd" };
|
| attribute DOMString font; // (default 10px sans-serif)
|
| attribute DOMString textAlign; // "start", "end", "left", "right", "center" (default: "start")
|
| attribute DOMString textBaseline; // "top", "hanging", "middle", "alphabetic", "ideographic", "bottom" (default: "alphabetic")
|
| + [RuntimeEnabled=ExperimentalCanvasFeatures] attribute DOMString direction; // "inherit", "rtl", "ltr" (default: "inherit")
|
|
|
| // Non-standard APIs. Candidates for deprecation
|
| // https://developer.mozilla.org/en/docs/Web/API/CanvasRenderingContext2D
|
|
|