| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 ScrollPaintPropertyNode_h | 5 #ifndef ScrollPaintPropertyNode_h |
| 6 #define ScrollPaintPropertyNode_h | 6 #define ScrollPaintPropertyNode_h |
| 7 | 7 |
| 8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
| 9 #include "platform/geometry/FloatSize.h" | 9 #include "platform/geometry/FloatSize.h" |
| 10 #include "platform/scroll/MainThreadScrollingReason.h" | 10 #include "platform/scroll/MainThreadScrollingReason.h" |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 String toString() const; | 129 String toString() const; |
| 130 | 130 |
| 131 private: | 131 private: |
| 132 ScrollPaintPropertyNode(PassRefPtr<const ScrollPaintPropertyNode> parent, | 132 ScrollPaintPropertyNode(PassRefPtr<const ScrollPaintPropertyNode> parent, |
| 133 IntSize clip, | 133 IntSize clip, |
| 134 IntSize bounds, | 134 IntSize bounds, |
| 135 bool userScrollableHorizontal, | 135 bool userScrollableHorizontal, |
| 136 bool userScrollableVertical, | 136 bool userScrollableVertical, |
| 137 MainThreadScrollingReasons mainThreadScrollingReasons, | 137 MainThreadScrollingReasons mainThreadScrollingReasons, |
| 138 WebLayerScrollClient* scrollClient) | 138 WebLayerScrollClient* scrollClient) |
| 139 : m_parent(parent), | 139 : m_parent(std::move(parent)), |
| 140 m_clip(clip), | 140 m_clip(clip), |
| 141 m_bounds(bounds), | 141 m_bounds(bounds), |
| 142 m_userScrollableHorizontal(userScrollableHorizontal), | 142 m_userScrollableHorizontal(userScrollableHorizontal), |
| 143 m_userScrollableVertical(userScrollableVertical), | 143 m_userScrollableVertical(userScrollableVertical), |
| 144 m_mainThreadScrollingReasons(mainThreadScrollingReasons), | 144 m_mainThreadScrollingReasons(mainThreadScrollingReasons), |
| 145 m_scrollClient(scrollClient) {} | 145 m_scrollClient(scrollClient) {} |
| 146 | 146 |
| 147 RefPtr<const ScrollPaintPropertyNode> m_parent; | 147 RefPtr<const ScrollPaintPropertyNode> m_parent; |
| 148 IntSize m_clip; | 148 IntSize m_clip; |
| 149 IntSize m_bounds; | 149 IntSize m_bounds; |
| 150 bool m_userScrollableHorizontal : 1; | 150 bool m_userScrollableHorizontal : 1; |
| 151 bool m_userScrollableVertical : 1; | 151 bool m_userScrollableVertical : 1; |
| 152 MainThreadScrollingReasons m_mainThreadScrollingReasons; | 152 MainThreadScrollingReasons m_mainThreadScrollingReasons; |
| 153 WebLayerScrollClient* m_scrollClient; | 153 WebLayerScrollClient* m_scrollClient; |
| 154 }; | 154 }; |
| 155 | 155 |
| 156 // Redeclared here to avoid ODR issues. | 156 // Redeclared here to avoid ODR issues. |
| 157 // See platform/testing/PaintPrinters.h. | 157 // See platform/testing/PaintPrinters.h. |
| 158 void PrintTo(const ScrollPaintPropertyNode&, std::ostream*); | 158 void PrintTo(const ScrollPaintPropertyNode&, std::ostream*); |
| 159 | 159 |
| 160 } // namespace blink | 160 } // namespace blink |
| 161 | 161 |
| 162 #endif // ScrollPaintPropertyNode_h | 162 #endif // ScrollPaintPropertyNode_h |
| OLD | NEW |