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

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: 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
Index: Source/core/html/canvas/CanvasRenderingContext2D.h
diff --git a/Source/core/html/canvas/CanvasRenderingContext2D.h b/Source/core/html/canvas/CanvasRenderingContext2D.h
index 088158f9437a44daa963d36464415d22ec0a6abd..207338e3c15a3d8988fcda0f5b846b9bdfe5b537 100644
--- a/Source/core/html/canvas/CanvasRenderingContext2D.h
+++ b/Source/core/html/canvas/CanvasRenderingContext2D.h
@@ -157,7 +157,10 @@ public:
void clip(DOMPath*, const String& winding, ExceptionState&);
bool isPointInPath(const float x, const float y, const String& winding = "nonzero");
+ bool isPointInPath(DOMPath*, const float x, const float y, ExceptionState&);
+ bool isPointInPath(DOMPath*, const float x, const float y, const String& winding, ExceptionState&);
bool isPointInStroke(const float x, const float y);
+ bool isPointInStroke(DOMPath*, const float x, const float y, ExceptionState&);
void clearRect(float x, float y, float width, float height);
void fillRect(float x, float y, float width, float height);
@@ -311,6 +314,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);
+ 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