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

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

Issue 616703003: Should remove |struct HitRegionOptionsInternal|. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 3 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/HitRegion.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/HitRegion.cpp
diff --git a/Source/core/html/canvas/HitRegion.cpp b/Source/core/html/canvas/HitRegion.cpp
index e1853a4f1599af5b9a075743522bf6d4156d83d2..3c78dbfe5ef30d6fa6d5ae0e49a6d6bd16175152 100644
--- a/Source/core/html/canvas/HitRegion.cpp
+++ b/Source/core/html/canvas/HitRegion.cpp
@@ -10,12 +10,15 @@
namespace blink {
-HitRegion::HitRegion(const HitRegionOptionsInternal& options)
- : m_id(options.id)
- , m_control(options.control)
- , m_path(options.path)
- , m_fillRule(options.fillRule)
-{
+HitRegion::HitRegion(const Path& path, const HitRegionOptions& options)
+ : m_id(options.id())
+ , m_control(options.control())
+ , m_path(path)
+{
+ if (options.fillRule() != "evenodd")
+ m_fillRule = RULE_NONZERO;
+ else
+ m_fillRule = RULE_EVENODD;
}
void HitRegion::updateAccessibility(Element* canvas)
« no previous file with comments | « Source/core/html/canvas/HitRegion.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698