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 1a99cf8fcfe81a5b2fe36e4e67721574b17df9bc..48126add0afd9da4a8ae9970ac934ea3290d1625 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, |