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

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: clean up idl Created 6 years, 11 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
Index: Source/core/html/canvas/CanvasRenderingContext2D.idl
diff --git a/Source/core/html/canvas/CanvasRenderingContext2D.idl b/Source/core/html/canvas/CanvasRenderingContext2D.idl
index 1c243a6b4a05a2229f0cc902b6d2d247d4155fed..23b06bc7bf8d25cd9f33bb6a49d75729e1ce1a3c 100644
--- a/Source/core/html/canvas/CanvasRenderingContext2D.idl
+++ b/Source/core/html/canvas/CanvasRenderingContext2D.idl
@@ -80,8 +80,11 @@ 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, boolean anticlockwise);
+ void fill(Path? path, optional CanvasWindingRule winding);
jcgregorio 2014/01/23 18:17:14 The part that I'm unsure about is that if I need t
Stephen White 2014/01/23 19:17:06 If so, that sounds like a bug in the RuntimeEnable
eseidel 2014/01/23 20:24:01 RuntimeEnabled= is a bindings generation feature.
Nils Barth (inactive) 2014/01/29 06:59:17 Thanks for raising this Eric, and thanks to Joe an
jcgregorio 2014/01/29 17:51:49 Thanks for the update and good news about the rewr
jcgregorio 2014/01/30 20:41:57 Updated the .idl to have RuntimeEnabled=Experiment
Nils Barth (inactive) 2014/01/31 00:42:38 Thanks Joe - LGTM for IDL!
void fill(optional CanvasWindingRule winding);
void stroke();
+ void stroke(Path path);
+ void clip(Path? path, optional CanvasWindingRule winding);
dshwang 2014/01/23 21:17:17 why "Path? path", instead of "Path path"? The spe
jcgregorio 2014/01/29 17:51:49 Done.
void clip(optional CanvasWindingRule winding);
boolean isPointInPath(float x, float y, optional CanvasWindingRule winding);
boolean isPointInStroke(float x, float y);

Powered by Google App Engine
This is Rietveld 408576698