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

Unified Diff: third_party/WebKit/Source/platform/graphics/Path.h

Issue 1532923002: Add a Path::contains() version that use the Path's winding rule (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Forward declare Path in GC.h Created 5 years 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: third_party/WebKit/Source/platform/graphics/Path.h
diff --git a/third_party/WebKit/Source/platform/graphics/Path.h b/third_party/WebKit/Source/platform/graphics/Path.h
index 5b8becd73f01469f9c403f72ad4404b66b9ca8fc..f2a4f7244474953a94d8878a4b08543369e31f05 100644
--- a/third_party/WebKit/Source/platform/graphics/Path.h
+++ b/third_party/WebKit/Source/platform/graphics/Path.h
@@ -37,8 +37,6 @@
#include "wtf/Allocator.h"
#include "wtf/Forward.h"
-class SkPath;
-
namespace blink {
class AffineTransform;
@@ -76,7 +74,8 @@ public:
Path& operator=(const SkPath&);
bool operator==(const Path&) const;
- bool contains(const FloatPoint&, WindRule = RULE_NONZERO) const;
+ bool contains(const FloatPoint&) const;
+ bool contains(const FloatPoint&, WindRule) const;
bool strokeContains(const FloatPoint&, const StrokeData&) const;
FloatRect boundingRect() const;
FloatRect strokeBoundingRect(const StrokeData&) const;

Powered by Google App Engine
This is Rietveld 408576698