| Index: Source/core/html/canvas/CanvasRenderingContext2D.cpp
|
| diff --git a/Source/core/html/canvas/CanvasRenderingContext2D.cpp b/Source/core/html/canvas/CanvasRenderingContext2D.cpp
|
| index 106c93fae5d436049d583a4aae50282c7165b75e..933275c0f1bb0eb8ece6ccc861e0124b756fc810 100644
|
| --- a/Source/core/html/canvas/CanvasRenderingContext2D.cpp
|
| +++ b/Source/core/html/canvas/CanvasRenderingContext2D.cpp
|
| @@ -2394,6 +2394,14 @@ void CanvasRenderingContext2D::addHitRegion(const Dictionary& options, Exception
|
| }
|
|
|
| passOptions.path = specifiedPath;
|
| +
|
| + String fillRuleString;
|
| + options.getWithUndefinedOrNullCheck("fillRule", fillRuleString);
|
| + if (fillRuleString.isEmpty() || fillRuleString != "evenodd")
|
| + passOptions.fillRule = RULE_NONZERO;
|
| + else
|
| + passOptions.fillRule = RULE_EVENODD;
|
| +
|
| addHitRegionInternal(passOptions, exceptionState);
|
| }
|
|
|
|
|