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

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

Issue 2536723007: Removed android scrolling fake mouse moves and device_supports_mouse (Closed)
Patch Set: rebase Created 4 years 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/input/EventHandler.cpp
diff --git a/third_party/WebKit/Source/core/input/EventHandler.cpp b/third_party/WebKit/Source/core/input/EventHandler.cpp
index 4f3ef35f25ce5701b9605ad659d2ba9dad8bca00..eae4d8c83d9594411467c4661995d39e286265b9 100644
--- a/third_party/WebKit/Source/core/input/EventHandler.cpp
+++ b/third_party/WebKit/Source/core/input/EventHandler.cpp
@@ -361,9 +361,6 @@ void EventHandler::updateCursor() {
// cursor update could be occluded by a different frame.
ASSERT(m_frame == m_frame->localFrameRoot());
- if (m_mouseEventManager->isMousePositionUnknown())
- return;
-
FrameView* view = m_frame->view();
if (!view || !view->shouldSetCursor())
return;
@@ -1903,7 +1900,8 @@ WebInputEventResult EventHandler::sendContextMenuEventForKey(
void EventHandler::scheduleHoverStateUpdate() {
// TODO(https://crbug.com/668758): Use a normal BeginFrame update for this.
- if (!m_hoverTimer.isActive())
+ if (!m_hoverTimer.isActive() &&
+ !m_mouseEventManager->isMousePositionUnknown())
m_hoverTimer.startOneShot(0, BLINK_FROM_HERE);
}
« no previous file with comments | « third_party/WebKit/Source/core/input/EventHandler.h ('k') | third_party/WebKit/Source/core/input/MouseEventManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698