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 e9d29906908580a7a7222f00e6eee45e2a1ec416..74a4b26d14915baa4f78102af9087f8a5441f44f 100644 |
--- a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp |
+++ b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp |
@@ -2262,7 +2262,7 @@ void CanvasRenderingContext2D::addHitRegion(const HitRegionOptions& options, Exc |
hitRegionPath.transform(state().transform()); |
if (state().hasClip()) { |
- hitRegionPath = state().intersectPathWithClip(hitRegionPath.skPath()); |
+ hitRegionPath.intersectPath(state().getCurrentClipPath()); |
if (hitRegionPath.isEmpty()) |
exceptionState.throwDOMException(NotSupportedError, "The specified path has no pixels."); |
} |