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

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.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/frame/FrameView.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
index 3524f4d76886fecba87d9725b2c88cfc03c5905c..931177523a1f97a82363f98d47747fa363395e32 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -1588,8 +1588,8 @@ IntPoint FrameView::lastKnownMousePosition() const {
bool FrameView::shouldSetCursor() const {
Page* page = frame().page();
return page && page->visibilityState() != PageVisibilityStateHidden &&
- page->focusController().isActive() &&
- page->settings().deviceSupportsMouse();
+ !m_frame->eventHandler().isMousePositionUnknown() &&
+ page->focusController().isActive();
}
void FrameView::scrollContentsIfNeededRecursive() {
@@ -3551,7 +3551,7 @@ AXObjectCache* FrameView::axObjectCache() const {
void FrameView::setCursor(const Cursor& cursor) {
Page* page = frame().page();
- if (!page || !page->settings().deviceSupportsMouse())
+ if (!page || m_frame->eventHandler().isMousePositionUnknown())
return;
page->chromeClient().setCursor(cursor, m_frame);
}

Powered by Google App Engine
This is Rietveld 408576698