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

Unified Diff: third_party/WebKit/Source/core/paint/PaintInvalidationCapableScrollableArea.cpp

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/paint/PaintInvalidationCapableScrollableArea.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintInvalidationCapableScrollableArea.cpp b/third_party/WebKit/Source/core/paint/PaintInvalidationCapableScrollableArea.cpp
index e552529731da952405cef19fbe3353725b902c42..596bbd3904d00790b63b5d7de3d9a64d2d07f75c 100644
--- a/third_party/WebKit/Source/core/paint/PaintInvalidationCapableScrollableArea.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintInvalidationCapableScrollableArea.cpp
@@ -4,6 +4,8 @@
#include "core/paint/PaintInvalidationCapableScrollableArea.h"
+#include "core/frame/FrameView.h"
+#include "core/frame/LocalFrame.h"
#include "core/frame/Settings.h"
#include "core/html/HTMLFrameOwnerElement.h"
#include "core/layout/LayoutBox.h"
@@ -135,4 +137,9 @@ void PaintInvalidationCapableScrollableArea::scrollControlWasSetNeedsPaintInvali
layoutBox()->setMayNeedPaintInvalidation();
}
+void PaintInvalidationCapableScrollableArea::setUserMayHaveDragged(bool dragged)
+{
+ layoutBox()->frame()->view()->setUserMayHaveDragged(dragged);
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698