| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |