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

Unified Diff: third_party/WebKit/Source/core/input/EventHandler.cpp

Issue 2681803002: blink: clear tooltips on frame leaves (Closed)
Patch Set: rebase and nullptr -> WTF::String 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/input/EventHandlerTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/input/EventHandler.cpp
diff --git a/third_party/WebKit/Source/core/input/EventHandler.cpp b/third_party/WebKit/Source/core/input/EventHandler.cpp
index a86fbea82aedc64ea728f883d6df4c872c200607..0d9a2295fe6db2c9a95e7ff31ba0b15200d02843 100644
--- a/third_party/WebKit/Source/core/input/EventHandler.cpp
+++ b/third_party/WebKit/Source/core/input/EventHandler.cpp
@@ -762,6 +762,9 @@ WebInputEventResult EventHandler::handleMouseMoveEvent(
void EventHandler::handleMouseLeaveEvent(const WebMouseEvent& event) {
TRACE_EVENT0("blink", "EventHandler::handleMouseLeaveEvent");
+ Page* page = m_frame->page();
+ if (page)
+ page->chromeClient().clearToolTip(*m_frame);
handleMouseMoveOrLeaveEvent(event, Vector<WebMouseEvent>(), 0, false, true);
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/input/EventHandlerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698