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

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: 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
Index: Source/core/html/canvas/CanvasRenderingContext2D.idl
diff --git a/Source/core/html/canvas/CanvasRenderingContext2D.idl b/Source/core/html/canvas/CanvasRenderingContext2D.idl
index c46a82b1fc97c93490980949988f39223539c1e9..ba5971c1efe3acdbc0a82d76b1df107688cf1bc2 100644
--- a/Source/core/html/canvas/CanvasRenderingContext2D.idl
+++ b/Source/core/html/canvas/CanvasRenderingContext2D.idl
@@ -88,7 +88,15 @@ interface CanvasRenderingContext2D : CanvasRenderingContext {
[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);
+
+ // FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339000 gets fixed.
+ [RuntimeEnabled=ExperimentalCanvasFeatures] boolean isPointInPath(Path path, float x, float y);
+ [RuntimeEnabled=ExperimentalCanvasFeatures] boolean isPointInPath(Path path, float x, float y, CanvasWindingRule winding);
+ boolean isPointInPath(float x, float y);
+ boolean isPointInPath(float x, float y, CanvasWindingRule winding);
+
+ // FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339000 gets fixed.
+ [RuntimeEnabled=ExperimentalCanvasFeatures] boolean isPointInStroke(Path path, float x, float y);
boolean isPointInStroke(float x, float y);
// text

Powered by Google App Engine
This is Rietveld 408576698