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

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

Issue 346003007: Add fillRule option for hit regions on canvas2d. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 6 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') | Source/core/html/canvas/HitRegion.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/HitRegion.h
diff --git a/Source/core/html/canvas/HitRegion.h b/Source/core/html/canvas/HitRegion.h
index 3d61fad714c1800cf6f03422420ca0e9f70dad12..8108325fea18c9e4299699c4655cfd8fb6b6b624 100644
--- a/Source/core/html/canvas/HitRegion.h
+++ b/Source/core/html/canvas/HitRegion.h
@@ -24,6 +24,7 @@ public:
String id;
RefPtrWillBeMember<Element> control;
Path path;
+ WindRule fillRule;
};
class HitRegion FINAL : public RefCountedWillBeGarbageCollectedFinalized<HitRegion> {
@@ -43,6 +44,7 @@ public:
const String& id() const { return m_id; }
const Path& path() const { return m_path; }
Element* control() const { return m_control.get(); }
+ WindRule fillRule() const { return m_fillRule; }
void trace(Visitor*);
@@ -52,6 +54,7 @@ private:
String m_id;
RefPtrWillBeMember<Element> m_control;
Path m_path;
+ WindRule m_fillRule;
};
class HitRegionManager FINAL : public NoBaseWillBeGarbageCollected<HitRegionManager> {
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | Source/core/html/canvas/HitRegion.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698