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

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

Issue 2954953002: [LayoutNG] Abort a layout once the BFC offset is resolved. (Closed)
Patch Set: rebase. Created 3 years, 5 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
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_layout_result.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 Vector<NGOutOfFlowPositionedDescendant> oof_positioned_descendants, 11 Vector<NGOutOfFlowPositionedDescendant> oof_positioned_descendants,
12 Vector<RefPtr<NGUnpositionedFloat>>& unpositioned_floats, 12 Vector<RefPtr<NGUnpositionedFloat>>& unpositioned_floats,
13 const WTF::Optional<NGLogicalOffset> bfc_offset, 13 const WTF::Optional<NGLogicalOffset> bfc_offset,
14 const NGMarginStrut end_margin_strut) 14 const NGMarginStrut end_margin_strut,
15 NGLayoutResultStatus status)
15 : physical_fragment_(std::move(physical_fragment)), 16 : physical_fragment_(std::move(physical_fragment)),
16 bfc_offset_(bfc_offset), 17 bfc_offset_(bfc_offset),
17 end_margin_strut_(end_margin_strut) { 18 end_margin_strut_(end_margin_strut),
19 status_(status) {
18 unpositioned_floats_.swap(unpositioned_floats); 20 unpositioned_floats_.swap(unpositioned_floats);
19 oof_positioned_descendants_.swap(oof_positioned_descendants); 21 oof_positioned_descendants_.swap(oof_positioned_descendants);
20 } 22 }
21 23
22 } // namespace blink 24 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_layout_result.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698