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

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

Issue 2761693002: Wrapped PassRefPtrs in move where passed to RefPtr constructor. (Closed)
Patch Set: Added move wraps for multiple instances in 1 line. Created 3 years, 9 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/scroll/MainThreadScrollingReason.h" 10 #include "platform/scroll/MainThreadScrollingReason.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698