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) |