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

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

Issue 2536723007: Removed android scrolling fake mouse moves and device_supports_mouse (Closed)
Patch Set: Made checks mirror what previous logic 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/MouseEventManager.cpp
diff --git a/third_party/WebKit/Source/core/input/MouseEventManager.cpp b/third_party/WebKit/Source/core/input/MouseEventManager.cpp
index 1810c69b2dc98d618b3f14166d5c977752046200..e692b88f948ab1a78f0bef220ddbb63eb53a8b6b 100644
--- a/third_party/WebKit/Source/core/input/MouseEventManager.cpp
+++ b/third_party/WebKit/Source/core/input/MouseEventManager.cpp
@@ -283,8 +283,7 @@ void MouseEventManager::fakeMouseMoveEventTimerFired(TimerBase* timer) {
DCHECK(timer == &m_fakeMouseMoveEventTimer);
DCHECK(!m_mousePressed);
- Settings* settings = m_frame->settings();
- if (settings && !settings->deviceSupportsMouse())
+ if (m_isMousePositionUnknown)
return;
FrameView* view = m_frame->view();
@@ -530,10 +529,6 @@ void MouseEventManager::dispatchFakeMouseMoveEventSoon() {
if (m_isMousePositionUnknown)
return;
- Settings* settings = m_frame->settings();
- if (settings && !settings->deviceSupportsMouse())
- return;
-
// Reschedule the timer, to prevent dispatching mouse move events
// during a scroll. This avoids a potential source of scroll jank.
m_fakeMouseMoveEventTimer.startOneShot(kFakeMouseMoveInterval,

Powered by Google App Engine
This is Rietveld 408576698