Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(545)

Unified Diff: third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp

Issue 1815093002: Canvas2d: fix event.region being null on mouseleave/out events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 e9e1a28f2b7a0f01ffa819be4c9ccd386984d78b..7dfab1db3943947eb14d20f0bf2a63ed8d6b1a35 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(Element* element)
+{
+ if (m_context && m_context->is2d())
+ return m_context->getIdFromControl(element);
+ return String();
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698