Index: Source/core/html/canvas/HitRegion.cpp |
diff --git a/Source/core/html/canvas/HitRegion.cpp b/Source/core/html/canvas/HitRegion.cpp |
index 60f70a015cf0a201cce85e4c90e58a89f74a66e4..f1466f1f64201953b236ca690a8537afa77f25d1 100644 |
--- a/Source/core/html/canvas/HitRegion.cpp |
+++ b/Source/core/html/canvas/HitRegion.cpp |
@@ -14,6 +14,7 @@ HitRegion::HitRegion(const HitRegionOptions& options) |
: m_id(options.id) |
, m_control(options.control) |
, m_path(options.path) |
+ , m_fillRule(options.fillRule) |
{ |
} |
@@ -41,7 +42,7 @@ void HitRegion::updateAccessibility(Element* canvas) |
bool HitRegion::contains(const LayoutPoint& point) const |
{ |
- return m_path.contains(point, RULE_NONZERO); |
+ return m_path.contains(point, m_fillRule); |
} |
void HitRegion::removePixels(const Path& clearArea) |