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

Side by Side Diff: third_party/WebKit/Source/core/layout/ScrollAnchor.h

Issue 2118683002: Limit ScrollAnchor to 20 adjustments between user scrolls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 #ifndef ScrollAnchor_h 5 #ifndef ScrollAnchor_h
6 #define ScrollAnchor_h 6 #define ScrollAnchor_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "platform/geometry/LayoutPoint.h" 9 #include "platform/geometry/LayoutPoint.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 // The anchor point that was used for the most recent non-zero adjustment. 115 // The anchor point that was used for the most recent non-zero adjustment.
116 AnchorPoint m_lastAdjusted; 116 AnchorPoint m_lastAdjusted;
117 117
118 // The size of the most recent non-zero adjustment. 118 // The size of the most recent non-zero adjustment.
119 IntSize m_lastAdjustment; 119 IntSize m_lastAdjustment;
120 120
121 // True iff the last adjustment was the exact opposite of the one before it. 121 // True iff the last adjustment was the exact opposite of the one before it.
122 // A bounce suggests a circular interaction with a scroll event handler. 122 // A bounce suggests a circular interaction with a scroll event handler.
123 bool m_hasBounced; 123 bool m_hasBounced;
124
125 // Number of adjustments made since the last clear().
126 int m_adjustmentCount;
124 }; 127 };
125 128
126 } // namespace blink 129 } // namespace blink
127 130
128 #endif // ScrollAnchor_h 131 #endif // ScrollAnchor_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698