| 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/graphics/paint/TransformPaintPropertyNode.h" | 10 #include "platform/graphics/paint/TransformPaintPropertyNode.h" |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 // The equality operator is used by FindPropertiesNeedingUpdate.h for checking | 115 // The equality operator is used by FindPropertiesNeedingUpdate.h for checking |
| 116 // if a scroll node has changed. | 116 // if a scroll node has changed. |
| 117 bool operator==(const ScrollPaintPropertyNode& o) const { | 117 bool operator==(const ScrollPaintPropertyNode& o) const { |
| 118 return m_parent == o.m_parent && | 118 return m_parent == o.m_parent && |
| 119 m_scrollOffsetTranslation == o.m_scrollOffsetTranslation && | 119 m_scrollOffsetTranslation == o.m_scrollOffsetTranslation && |
| 120 m_clip == o.m_clip && m_bounds == o.m_bounds && | 120 m_clip == o.m_clip && m_bounds == o.m_bounds && |
| 121 m_userScrollableHorizontal == o.m_userScrollableHorizontal && | 121 m_userScrollableHorizontal == o.m_userScrollableHorizontal && |
| 122 m_userScrollableVertical == o.m_userScrollableVertical && | 122 m_userScrollableVertical == o.m_userScrollableVertical && |
| 123 m_mainThreadScrollingReasons == o.m_mainThreadScrollingReasons; | 123 m_mainThreadScrollingReasons == o.m_mainThreadScrollingReasons; |
| 124 } | 124 } |
| 125 | |
| 126 String toTreeString() const; | |
| 127 #endif | 125 #endif |
| 128 | 126 |
| 129 String toString() const; | 127 String toString() const; |
| 130 | 128 |
| 131 private: | 129 private: |
| 132 ScrollPaintPropertyNode( | 130 ScrollPaintPropertyNode( |
| 133 PassRefPtr<const ScrollPaintPropertyNode> parent, | 131 PassRefPtr<const ScrollPaintPropertyNode> parent, |
| 134 PassRefPtr<const TransformPaintPropertyNode> scrollOffsetTranslation, | 132 PassRefPtr<const TransformPaintPropertyNode> scrollOffsetTranslation, |
| 135 IntSize clip, | 133 IntSize clip, |
| 136 IntSize bounds, | 134 IntSize bounds, |
| (...skipping 19 matching lines...) Expand all Loading... |
| 156 MainThreadScrollingReasons m_mainThreadScrollingReasons; | 154 MainThreadScrollingReasons m_mainThreadScrollingReasons; |
| 157 }; | 155 }; |
| 158 | 156 |
| 159 // Redeclared here to avoid ODR issues. | 157 // Redeclared here to avoid ODR issues. |
| 160 // See platform/testing/PaintPrinters.h. | 158 // See platform/testing/PaintPrinters.h. |
| 161 void PrintTo(const ScrollPaintPropertyNode&, std::ostream*); | 159 void PrintTo(const ScrollPaintPropertyNode&, std::ostream*); |
| 162 | 160 |
| 163 } // namespace blink | 161 } // namespace blink |
| 164 | 162 |
| 165 #endif // ScrollPaintPropertyNode_h | 163 #endif // ScrollPaintPropertyNode_h |
| OLD | NEW |