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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/paint/ScrollPaintPropertyNode.h

Issue 2638763003: Move property tree debugging code to platform/graphics/paint/. (Closed)
Patch Set: none Created 3 years, 11 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 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
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;
125 #endif 127 #endif
126 128
127 String toString() const; 129 String toString() const;
128 130
129 private: 131 private:
130 ScrollPaintPropertyNode( 132 ScrollPaintPropertyNode(
131 PassRefPtr<const ScrollPaintPropertyNode> parent, 133 PassRefPtr<const ScrollPaintPropertyNode> parent,
132 PassRefPtr<const TransformPaintPropertyNode> scrollOffsetTranslation, 134 PassRefPtr<const TransformPaintPropertyNode> scrollOffsetTranslation,
133 IntSize clip, 135 IntSize clip,
134 IntSize bounds, 136 IntSize bounds,
(...skipping 19 matching lines...) Expand all
154 MainThreadScrollingReasons m_mainThreadScrollingReasons; 156 MainThreadScrollingReasons m_mainThreadScrollingReasons;
155 }; 157 };
156 158
157 // Redeclared here to avoid ODR issues. 159 // Redeclared here to avoid ODR issues.
158 // See platform/testing/PaintPrinters.h. 160 // See platform/testing/PaintPrinters.h.
159 void PrintTo(const ScrollPaintPropertyNode&, std::ostream*); 161 void PrintTo(const ScrollPaintPropertyNode&, std::ostream*);
160 162
161 } // namespace blink 163 } // namespace blink
162 164
163 #endif // ScrollPaintPropertyNode_h 165 #endif // ScrollPaintPropertyNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698