Index: third_party/WebKit/Source/modules/canvas2d/TouchHitRegion.cpp |
diff --git a/third_party/WebKit/Source/modules/canvas2d/TouchHitRegion.cpp b/third_party/WebKit/Source/modules/canvas2d/TouchHitRegion.cpp |
index 2b5ccf7f8a9f9ef7dfb48121c17d0c00408369bc..f0a478cda1e40373155b4f5ab7213c5bbef34137 100644 |
--- a/third_party/WebKit/Source/modules/canvas2d/TouchHitRegion.cpp |
+++ b/third_party/WebKit/Source/modules/canvas2d/TouchHitRegion.cpp |
@@ -5,17 +5,12 @@ |
#include "modules/canvas2d/TouchHitRegion.h" |
#include "core/dom/Touch.h" |
-#include "core/html/HTMLCanvasElement.h" |
namespace blink { |
String TouchHitRegion::region(Touch& touch) |
{ |
- if (!touch.target() || !isHTMLCanvasElement(touch.target()->toNode())) |
- return String(); |
- |
- HTMLCanvasElement* canvas = toHTMLCanvasElement(touch.target()->toNode()); |
- return regionIdFromAbsoluteLocation(*canvas, touch.absoluteLocation()); |
+ return touch.region(); |
} |
} // namespace blink |