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

Unified Diff: third_party/WebKit/Source/core/page/ChromeClient.cpp

Issue 2681803002: blink: clear tooltips on frame leaves (Closed)
Patch Set: Created 3 years, 10 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/page/ChromeClient.cpp
diff --git a/third_party/WebKit/Source/core/page/ChromeClient.cpp b/third_party/WebKit/Source/core/page/ChromeClient.cpp
index 5c497c153df51b9605eb9d2c6445d8bd408280a1..704d763705215281362dd2eef792b1228f46ab41 100644
--- a/third_party/WebKit/Source/core/page/ChromeClient.cpp
+++ b/third_party/WebKit/Source/core/page/ChromeClient.cpp
@@ -170,6 +170,10 @@ void ChromeClient::mouseDidMoveOverElement(LocalFrame& frame,
setToolTip(frame, result);
}
+void ChromeClient::mouseDidLeave(LocalFrame& frame) {
+ clearToolTip(frame);
+}
+
void ChromeClient::setToolTip(LocalFrame& frame, const HitTestResult& result) {
// First priority is a tooltip for element with "title" attribute.
TextDirection toolTipDirection;

Powered by Google App Engine
This is Rietveld 408576698