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

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

Issue 179383002: Add versions of isPointIn*() that take a Path parameter. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase again 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 8c8eb6eca983c6696f5d45193697ee64d148cd64..840d3b5113417b9413f55a5b342502b43d958772 100644
--- a/Source/core/html/canvas/CanvasRenderingContext2D.idl
+++ b/Source/core/html/canvas/CanvasRenderingContext2D.idl
@@ -88,8 +88,16 @@ interface CanvasRenderingContext2D : CanvasRenderingContext {
[RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void clip(Path? path);
void clip(CanvasWindingRule winding);
[RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void clip(Path? path, CanvasWindingRule winding);
- boolean isPointInPath(float x, float y, optional CanvasWindingRule winding);
+
+ // FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339000 gets fixed.
+ boolean isPointInPath(float x, float y);
+ [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] boolean isPointInPath(Path? path, float x, float y);
+ boolean isPointInPath(float x, float y, CanvasWindingRule winding);
+ [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] boolean isPointInPath(Path? path, float x, float y, CanvasWindingRule winding);
+
+ // FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339000 gets fixed.
boolean isPointInStroke(float x, float y);
+ [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] boolean isPointInStroke(Path? path, float x, float y);
// text
attribute DOMString font;
« 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