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

Side by Side Diff: third_party/WebKit/Source/core/layout/ng/ng_layout_result.cc

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 #include "core/layout/ng/ng_layout_result.h" 5 #include "core/layout/ng/ng_layout_result.h"
6 6
7 namespace blink { 7 namespace blink {
8 8
9 NGLayoutResult::NGLayoutResult( 9 NGLayoutResult::NGLayoutResult(
10 PassRefPtr<NGPhysicalFragment> physical_fragment, 10 PassRefPtr<NGPhysicalFragment> physical_fragment,
11 PersistentHeapLinkedHashSet<WeakMember<NGBlockNode>>& 11 PersistentHeapLinkedHashSet<WeakMember<NGBlockNode>>&
12 out_of_flow_descendants, 12 out_of_flow_descendants,
13 Vector<NGStaticPosition> out_of_flow_positions, 13 Vector<NGStaticPosition> out_of_flow_positions,
14 Vector<RefPtr<NGFloatingObject>>& unpositioned_floats) 14 Vector<RefPtr<NGFloatingObject>>& unpositioned_floats)
15 : physical_fragment_(physical_fragment), 15 : physical_fragment_(std::move(physical_fragment)),
16 layout_object_(nullptr), 16 layout_object_(nullptr),
17 out_of_flow_descendants_(out_of_flow_descendants), 17 out_of_flow_descendants_(out_of_flow_descendants),
18 out_of_flow_positions_(out_of_flow_positions) { 18 out_of_flow_positions_(out_of_flow_positions) {
19 unpositioned_floats_.swap(unpositioned_floats); 19 unpositioned_floats_.swap(unpositioned_floats);
20 } 20 }
21 21
22 } // namespace blink 22 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698