| Index: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp
|
| diff --git a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp
|
| index c2b01b6ffa46942b5425a244b164e8e34c580923..b6773e35255308cacf640f24bef7112a57549f1a 100644
|
| --- a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp
|
| +++ b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp
|
| @@ -2217,13 +2217,8 @@ void CanvasRenderingContext2D::addHitRegion(const HitRegionOptions& options, Exc
|
|
|
| hitRegionPath.transform(state().transform());
|
|
|
| - if (state().hasClip()) {
|
| - // FIXME: The hit regions should take clipping region into account.
|
| - // However, we have no way to get the region from canvas state stack by now.
|
| - // See http://crbug.com/387057
|
| - exceptionState.throwDOMException(NotSupportedError, "The specified path has no pixels.");
|
| - return;
|
| - }
|
| + if (state().hasClip())
|
| + hitRegionPath = state().totalClipPath(hitRegionPath.skPath());
|
|
|
| if (!m_hitRegionManager)
|
| m_hitRegionManager = HitRegionManager::create();
|
|
|