Index: third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp |
index 282719c71f07c36d95e4b8cba3c5c1b7a970dba2..f715d6d38c7b85c5d3969e5241659ef3a7e76a30 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp |
@@ -1088,4 +1088,11 @@ bool HTMLCanvasElement::isSupportedInteractiveCanvasFallback(const Element& elem |
return false; |
} |
+std::pair<Element*, String> HTMLCanvasElement::getControlAndIdIfHitRegionExists(const LayoutPoint& location) |
+{ |
+ if (m_context && m_context->is2d()) |
+ return m_context->getControlAndIdIfHitRegionExists(location); |
+ return std::make_pair(nullptr, String()); |
+} |
+ |
} // namespace blink |