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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/paint/PaintInvalidationCapableScrollableArea.h" 5 #include "core/paint/PaintInvalidationCapableScrollableArea.h"
6 6
7 #include "core/frame/FrameView.h"
8 #include "core/frame/LocalFrame.h"
7 #include "core/frame/Settings.h" 9 #include "core/frame/Settings.h"
8 #include "core/html/HTMLFrameOwnerElement.h" 10 #include "core/html/HTMLFrameOwnerElement.h"
9 #include "core/layout/LayoutBox.h" 11 #include "core/layout/LayoutBox.h"
10 #include "core/layout/LayoutScrollbar.h" 12 #include "core/layout/LayoutScrollbar.h"
11 #include "core/layout/LayoutScrollbarPart.h" 13 #include "core/layout/LayoutScrollbarPart.h"
12 #include "core/layout/PaintInvalidationState.h" 14 #include "core/layout/PaintInvalidationState.h"
13 #include "core/paint/PaintLayer.h" 15 #include "core/paint/PaintLayer.h"
14 #include "platform/graphics/GraphicsLayer.h" 16 #include "platform/graphics/GraphicsLayer.h"
15 17
16 namespace blink { 18 namespace blink {
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 fullBounds.unite(m_verticalScrollbarPreviousPaintInvalidationRect); 130 fullBounds.unite(m_verticalScrollbarPreviousPaintInvalidationRect);
129 fullBounds.unite(m_scrollCornerAndResizerPreviousPaintInvalidationRect); 131 fullBounds.unite(m_scrollCornerAndResizerPreviousPaintInvalidationRect);
130 return fullBounds; 132 return fullBounds;
131 } 133 }
132 134
133 void PaintInvalidationCapableScrollableArea::scrollControlWasSetNeedsPaintInvali dation() 135 void PaintInvalidationCapableScrollableArea::scrollControlWasSetNeedsPaintInvali dation()
134 { 136 {
135 layoutBox()->setMayNeedPaintInvalidation(); 137 layoutBox()->setMayNeedPaintInvalidation();
136 } 138 }
137 139
140 void PaintInvalidationCapableScrollableArea::setUserMayHaveDragged(bool dragged)
141 {
142 layoutBox()->frame()->view()->setUserMayHaveDragged(dragged);
143 }
144
138 } // namespace blink 145 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698