| 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 1752b014d21eacec54b91c9e1e10f9baab0f2c6f..8abbe9c24f7ab09f905fcd6d849b90df77203b48 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
|
| @@ -1083,4 +1083,11 @@ bool HTMLCanvasElement::isSupportedInteractiveCanvasFallback(const Element& elem
|
| return false;
|
| }
|
|
|
| +std::pair<Element*, String> HTMLCanvasElement::getControlAndIdIfHitRegionExists(const LayoutPoint& location)
|
| +{
|
| + if (m_context && m_context->is2d() && m_context->hitRegionsCount() > 0)
|
| + return m_context->getControlAndIdIfHitRegionExists(location);
|
| + return std::make_pair(nullptr, String());
|
| +}
|
| +
|
| } // namespace blink
|
|
|