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

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.h

Issue 2212543002: Disable scroll anchoring if the user engages in a drag motion (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove irrelevant comment Created 4 years, 4 months 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.h
diff --git a/third_party/WebKit/Source/core/frame/FrameView.h b/third_party/WebKit/Source/core/frame/FrameView.h
index bca05f80462497b0b65e9db18734b68eed96ec62..0e44a3d6f7899531a339788b5a7dbf7868760c4d 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.h
+++ b/third_party/WebKit/Source/core/frame/FrameView.h
@@ -622,6 +622,9 @@ public:
// For PaintInvalidator temporarily. TODO(wangxianzhu): Move into PaintInvalidator.
void invalidatePaintIfNeeded(const PaintInvalidationState&);
+ void setUserMayHaveDragged(bool dragged) override { m_userMayHaveDragged = dragged; }
+ bool userMayHaveDragged() const { return m_userMayHaveDragged; }
+
protected:
// Scroll the content via the compositor.
bool scrollContentsFastPath(const IntSize& scrollDelta);
@@ -940,6 +943,8 @@ private:
PaintInvalidationReason reason;
};
std::unique_ptr<Vector<ObjectPaintInvalidation>> m_trackedObjectPaintInvalidations;
+
+ bool m_userMayHaveDragged;
};
inline void FrameView::incrementVisuallyNonEmptyCharacterCount(unsigned count)

Powered by Google App Engine
This is Rietveld 408576698