Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1075)

Unified Diff: Source/core/html/canvas/CanvasRenderingContext2D.idl

Issue 334803002: Cleanup [RuntimeEnabled] use in CanvasRenderingContext2D (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/CanvasRenderingContext2D.idl
diff --git a/Source/core/html/canvas/CanvasRenderingContext2D.idl b/Source/core/html/canvas/CanvasRenderingContext2D.idl
index 2b28f1769210239f359d73ad847fb62f50b7a85a..1738af041a40c2c63764caafc7e6ef3db267e018 100644
--- a/Source/core/html/canvas/CanvasRenderingContext2D.idl
+++ b/Source/core/html/canvas/CanvasRenderingContext2D.idl
@@ -88,29 +88,19 @@ enum CanvasFillRule { "nonzero", "evenodd" };
// path API (see also CanvasPathMethods)
void beginPath();
- // FIXME: Simplify these using optional CanvasFillRule once crbug.com/339000 gets fixed.
- void fill();
- void fill(CanvasFillRule winding);
- [RuntimeEnabled=Path2D] void fill(Path2D path);
- [RuntimeEnabled=Path2D] void fill(Path2D path, CanvasFillRule winding);
+ void fill(optional CanvasFillRule winding);
+ [RuntimeEnabled=Path2D] void fill(Path2D path, optional CanvasFillRule winding);
void stroke();
[RuntimeEnabled=Path2D] void stroke(Path2D path);
// Focus rings
void drawFocusIfNeeded(Element element);
[RuntimeEnabled=Path2D] void drawFocusIfNeeded(Path2D path, Element element);
- [RuntimeEnabled=ExperimentalCanvasFeatures] void scrollPathIntoView();
- [RuntimeEnabled=ExperimentalCanvasFeatures] void scrollPathIntoView(Path2D path);
- // FIXME: Simplify these using optional CanvasFillRule once crbug.com/339000 gets fixed.
- void clip();
- void clip(CanvasFillRule winding);
- [RuntimeEnabled=Path2D] void clip(Path2D path);
- [RuntimeEnabled=Path2D] void clip(Path2D path, CanvasFillRule winding);
- // FIXME: Simplify these using optional CanvasFillRule once crbug.com/339000 gets fixed.
- boolean isPointInPath(unrestricted float x, unrestricted float y);
- boolean isPointInPath(unrestricted float x, unrestricted float y, CanvasFillRule winding);
- [RuntimeEnabled=Path2D] boolean isPointInPath(Path2D path, unrestricted float x, unrestricted float y);
- [RuntimeEnabled=Path2D] boolean isPointInPath(Path2D path, unrestricted float x, unrestricted float y, CanvasFillRule winding);
+ [RuntimeEnabled=ExperimentalCanvasFeatures] void scrollPathIntoView(optional Path2D path);
+ void clip(optional CanvasFillRule winding);
+ [RuntimeEnabled=Path2D] 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 isPointInStroke(unrestricted float x, unrestricted float y);
[RuntimeEnabled=Path2D] boolean isPointInStroke(Path2D path, unrestricted float x, unrestricted float y);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698