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

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

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

Powered by Google App Engine
This is Rietveld 408576698