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

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

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.h
diff --git a/Source/core/html/canvas/CanvasRenderingContext2D.h b/Source/core/html/canvas/CanvasRenderingContext2D.h
index 8c57a66887e7a474f8b0e3fb54f20274d57d6068..f0acfb24c3f17c2af3fd6e6852234ee01ce4ed85 100644
--- a/Source/core/html/canvas/CanvasRenderingContext2D.h
+++ b/Source/core/html/canvas/CanvasRenderingContext2D.h
@@ -155,7 +155,9 @@ public:
void clip(DOMPath*, const String& winding = "nonzero");
bool isPointInPath(const float x, const float y, const String& winding = "nonzero");
+ bool isPointInPath(DOMPath*, const float x, const float y, const String& winding = "nonzero");
Rik 2014/02/25 07:46:45 should the DOMPath have a name?
bool isPointInStroke(const float x, const float y);
+ bool isPointInStroke(DOMPath*, const float x, const float y);
void clearRect(float x, float y, float width, float height);
void fillRect(float x, float y, float width, float height);
@@ -309,6 +311,9 @@ private:
void strokeInternal(const Path&);
void clipInternal(const Path&, const String& windingRuleString);
+ bool isPointInPathInternal(const Path&, const float x, const float y, const String& windingRuleString);
Rik 2014/02/25 07:46:45 same here.
+ bool isPointInStrokeInternal(const Path&, const float x, const float y);
+
void drawTextInternal(const String& text, float x, float y, bool fill, float maxWidth = 0, bool useMaxWidth = false);
const Font& accessFont();

Powered by Google App Engine
This is Rietveld 408576698