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

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: Add tests for null Path object passed in. 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 efa9d8c443807eb80775a623e5492b0daceac238..7c0764d7fc35537b7757eb698acd8c05cba7a157 100644
--- a/Source/core/html/canvas/CanvasRenderingContext2D.idl
+++ b/Source/core/html/canvas/CanvasRenderingContext2D.idl
@@ -80,8 +80,13 @@ 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);
+ // Not flagged as RuntimeEnabled=ExperimentalCanvasFeatures, see crbug.com/339000.
+ void fill(Path path, optional CanvasWindingRule winding);
Inactive 2014/02/19 16:06:24 Until the generator is fixed, you could mark the m
void fill(optional CanvasWindingRule winding);
void stroke();
+ [RuntimeEnabled=ExperimentalCanvasFeatures] void stroke(Path path);
+ // Not flagged as RuntimeEnabled=ExperimentalCanvasFeatures, see crbug.com/339000.
+ void clip(Path path, optional CanvasWindingRule winding);
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