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

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

Issue 2574713003: Add toString() for paint property node classes (Closed)
Patch Set: Update test Created 4 years 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"
11 #include "platform/scroll/MainThreadScrollingReason.h" 11 #include "platform/scroll/MainThreadScrollingReason.h"
12 #include "wtf/PassRefPtr.h" 12 #include "wtf/PassRefPtr.h"
13 #include "wtf/RefCounted.h" 13 #include "wtf/RefCounted.h"
14 #include "wtf/RefPtr.h" 14 #include "wtf/RefPtr.h"
15 #include "wtf/text/WTFString.h"
15 16
16 #include <iosfwd> 17 #include <iosfwd>
17 18
18 namespace blink { 19 namespace blink {
19 20
20 using MainThreadScrollingReasons = uint32_t; 21 using MainThreadScrollingReasons = uint32_t;
21 22
22 // A scroll node contains auxiliary scrolling information for threaded scrolling 23 // A scroll node contains auxiliary scrolling information for threaded scrolling
23 // which includes how far an area can be scrolled, which transform node contains 24 // which includes how far an area can be scrolled, which transform node contains
24 // the scroll offset, etc. 25 // the scroll offset, etc.
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 bool operator==(const ScrollPaintPropertyNode& o) const { 117 bool operator==(const ScrollPaintPropertyNode& o) const {
117 return m_parent == o.m_parent && 118 return m_parent == o.m_parent &&
118 m_scrollOffsetTranslation == o.m_scrollOffsetTranslation && 119 m_scrollOffsetTranslation == o.m_scrollOffsetTranslation &&
119 m_clip == o.m_clip && m_bounds == o.m_bounds && 120 m_clip == o.m_clip && m_bounds == o.m_bounds &&
120 m_userScrollableHorizontal == o.m_userScrollableHorizontal && 121 m_userScrollableHorizontal == o.m_userScrollableHorizontal &&
121 m_userScrollableVertical == o.m_userScrollableVertical && 122 m_userScrollableVertical == o.m_userScrollableVertical &&
122 m_mainThreadScrollingReasons == o.m_mainThreadScrollingReasons; 123 m_mainThreadScrollingReasons == o.m_mainThreadScrollingReasons;
123 } 124 }
124 #endif 125 #endif
125 126
127 String toString() const;
128
126 private: 129 private:
127 ScrollPaintPropertyNode( 130 ScrollPaintPropertyNode(
128 PassRefPtr<const ScrollPaintPropertyNode> parent, 131 PassRefPtr<const ScrollPaintPropertyNode> parent,
129 PassRefPtr<const TransformPaintPropertyNode> scrollOffsetTranslation, 132 PassRefPtr<const TransformPaintPropertyNode> scrollOffsetTranslation,
130 IntSize clip, 133 IntSize clip,
131 IntSize bounds, 134 IntSize bounds,
132 bool userScrollableHorizontal, 135 bool userScrollableHorizontal,
133 bool userScrollableVertical, 136 bool userScrollableVertical,
134 MainThreadScrollingReasons mainThreadScrollingReasons) 137 MainThreadScrollingReasons mainThreadScrollingReasons)
135 : m_parent(parent), 138 : m_parent(parent),
(...skipping 15 matching lines...) Expand all
151 MainThreadScrollingReasons m_mainThreadScrollingReasons; 154 MainThreadScrollingReasons m_mainThreadScrollingReasons;
152 }; 155 };
153 156
154 // Redeclared here to avoid ODR issues. 157 // Redeclared here to avoid ODR issues.
155 // See platform/testing/PaintPrinters.h. 158 // See platform/testing/PaintPrinters.h.
156 void PrintTo(const ScrollPaintPropertyNode&, std::ostream*); 159 void PrintTo(const ScrollPaintPropertyNode&, std::ostream*);
157 160
158 } // namespace blink 161 } // namespace blink
159 162
160 #endif // ScrollPaintPropertyNode_h 163 #endif // ScrollPaintPropertyNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698