OLD | NEW |
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 Loading... |
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 |
OLD | NEW |