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 03aed594ebe1ccbb56e744bf9fdb46ce227b05d7..b74c191bcc406b20f1ed952f838c41885673cf30 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp |
@@ -1126,4 +1126,11 @@ std::pair<Element*, String> HTMLCanvasElement::getControlAndIdIfHitRegionExists( |
return std::make_pair(nullptr, String()); |
} |
+String HTMLCanvasElement::getIdFromControl(const Element* element) |
+{ |
+ if (m_context) |
+ return m_context->getIdFromControl(element); |
+ return String(); |
+} |
+ |
} // namespace blink |