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

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: 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/frame/FrameView.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
index b16e02c6f7143d8bd1ddf6262dbc036fb711f6e4..e1b62509b08c745affd26a7a3a85dcc10a194dd6 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -1618,8 +1618,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() {
@@ -3580,7 +3580,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