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

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

Issue 137353004: Add versions of stroke, fill, and clip that take a Path parameter. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Reorder IDL, so that the stricter check for Path comes before the less strict check for an enum. Created 6 years, 10 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 | « Source/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | 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 d99a6a07c70e63980e4b6f616949681725ca2627..223ea6f57cdbf673d544a2261e0d8d2eac4db534 100644
--- a/Source/core/html/canvas/CanvasRenderingContext2D.idl
+++ b/Source/core/html/canvas/CanvasRenderingContext2D.idl
@@ -76,9 +76,18 @@ interface CanvasRenderingContext2D : CanvasRenderingContext {
[RaisesException] void arc(float x, float y, float radius, float startAngle, float endAngle, [Default=Undefined] optional boolean anticlockwise);
[RaisesException] void ellipse(float x, float y, float radiusX, float radiusY, float rotation, float startAngle, float endAngle, [Default=Undefined] optional boolean anticlockwise);
- void fill(optional CanvasWindingRule winding);
+ // FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339000 gets fixed.
+ void fill();
+ [RuntimeEnabled=ExperimentalCanvasFeatures] void fill(Path path);
+ void fill(CanvasWindingRule winding);
+ [RuntimeEnabled=ExperimentalCanvasFeatures] void fill(Path path, CanvasWindingRule winding);
void stroke();
- void clip(optional CanvasWindingRule winding);
+ [RuntimeEnabled=ExperimentalCanvasFeatures] void stroke(Path path);
+ // FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339000 gets fixed.
+ void clip();
+ [RuntimeEnabled=ExperimentalCanvasFeatures] void clip(Path path);
+ void clip(CanvasWindingRule winding);
+ [RuntimeEnabled=ExperimentalCanvasFeatures] void clip(Path path, CanvasWindingRule winding);
boolean isPointInPath(float x, float y, optional CanvasWindingRule winding);
boolean isPointInStroke(float x, float y);
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698