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/ng_fragment_builder.h" | 5 #include "core/layout/ng/ng_fragment_builder.h" |
| 6 |
6 #include "core/layout/ng/ng_block_node.h" | 7 #include "core/layout/ng/ng_block_node.h" |
7 #include "core/style/ComputedStyle.h" | 8 #include "core/layout/ng/ng_fragment_base.h" |
| 9 #include "core/layout/ng/ng_physical_fragment.h" |
8 | 10 |
9 namespace blink { | 11 namespace blink { |
10 | 12 |
11 NGFragmentBuilder::NGFragmentBuilder( | 13 NGFragmentBuilder::NGFragmentBuilder( |
12 NGPhysicalFragmentBase::NGFragmentType type) | 14 NGPhysicalFragmentBase::NGFragmentType type) |
13 : type_(type), writing_mode_(kHorizontalTopBottom), direction_(LTR) {} | 15 : type_(type), writing_mode_(kHorizontalTopBottom), direction_(LTR) {} |
14 | 16 |
15 NGFragmentBuilder& NGFragmentBuilder::SetWritingMode( | 17 NGFragmentBuilder& NGFragmentBuilder::SetWritingMode( |
16 NGWritingMode writing_mode) { | 18 NGWritingMode writing_mode) { |
17 writing_mode_ = writing_mode; | 19 writing_mode_ = writing_mode; |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 out_of_flow_descendants_, out_of_flow_positions_, margin_strut_); | 148 out_of_flow_descendants_, out_of_flow_positions_, margin_strut_); |
147 } | 149 } |
148 | 150 |
149 DEFINE_TRACE(NGFragmentBuilder) { | 151 DEFINE_TRACE(NGFragmentBuilder) { |
150 visitor->trace(children_); | 152 visitor->trace(children_); |
151 visitor->trace(out_of_flow_descendant_candidates_); | 153 visitor->trace(out_of_flow_descendant_candidates_); |
152 visitor->trace(out_of_flow_descendants_); | 154 visitor->trace(out_of_flow_descendants_); |
153 } | 155 } |
154 | 156 |
155 } // namespace blink | 157 } // namespace blink |
OLD | NEW |