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

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

Issue 2836293004: [LayoutNG] Move NGInlineNode data to NGInlineNodeData. (Closed)
Patch Set: rebase. Created 3 years, 7 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/layout_ng_block_flow.h" 5 #include "core/layout/ng/layout_ng_block_flow.h"
6 6
7 #include "core/layout/LayoutAnalyzer.h" 7 #include "core/layout/LayoutAnalyzer.h"
8 #include "core/layout/ng/ng_constraint_space.h" 8 #include "core/layout/ng/ng_constraint_space.h"
9 #include "core/layout/ng/ng_fragment.h" 9 #include "core/layout/ng/ng_fragment.h"
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 SetLogicalTop(computed_values.position_); 45 SetLogicalTop(computed_values.position_);
46 } 46 }
47 47
48 for (auto& descendant : result->OutOfFlowDescendants()) 48 for (auto& descendant : result->OutOfFlowDescendants())
49 descendant->UseOldOutOfFlowPositioning(); 49 descendant->UseOldOutOfFlowPositioning();
50 50
51 UpdateAfterLayout(); 51 UpdateAfterLayout();
52 ClearNeedsLayout(); 52 ClearNeedsLayout();
53 } 53 }
54 54
55 NGInlineNodeData& LayoutNGBlockFlow::GetNGInlineNodeData() const {
56 DCHECK(ng_inline_node_data_);
57 return *ng_inline_node_data_.get();
58 }
59
60 void LayoutNGBlockFlow::ResetNGInlineNodeData() {
61 ng_inline_node_data_ = WTF::MakeUnique<NGInlineNodeData>();
62 }
63
55 } // namespace blink 64 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698