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 |
7 #include "core/layout/ng/ng_block_node.h" | 7 #include "core/layout/ng/ng_block_node.h" |
8 #include "core/layout/ng/ng_physical_text_fragment.h" | 8 #include "core/layout/ng/ng_physical_text_fragment.h" |
9 #include "core/layout/ng/ng_fragment.h" | 9 #include "core/layout/ng/ng_fragment.h" |
10 #include "core/layout/ng/ng_physical_box_fragment.h" | 10 #include "core/layout/ng/ng_physical_box_fragment.h" |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 NGFragmentBuilder::NGFragmentBuilder(NGPhysicalFragment::NGFragmentType type) | 14 NGFragmentBuilder::NGFragmentBuilder(NGPhysicalFragment::NGFragmentType type) |
15 : type_(type), | 15 : type_(type), |
16 writing_mode_(kHorizontalTopBottom), | 16 writing_mode_(kHorizontalTopBottom), |
17 direction_(TextDirection::Ltr) {} | 17 direction_(TextDirection::kLtr) {} |
18 | 18 |
19 NGFragmentBuilder& NGFragmentBuilder::SetWritingMode( | 19 NGFragmentBuilder& NGFragmentBuilder::SetWritingMode( |
20 NGWritingMode writing_mode) { | 20 NGWritingMode writing_mode) { |
21 writing_mode_ = writing_mode; | 21 writing_mode_ = writing_mode; |
22 return *this; | 22 return *this; |
23 } | 23 } |
24 | 24 |
25 NGFragmentBuilder& NGFragmentBuilder::SetDirection(TextDirection direction) { | 25 NGFragmentBuilder& NGFragmentBuilder::SetDirection(TextDirection direction) { |
26 direction_ = direction; | 26 direction_ = direction; |
27 return *this; | 27 return *this; |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 out_of_flow_positions_); | 163 out_of_flow_positions_); |
164 } | 164 } |
165 | 165 |
166 DEFINE_TRACE(NGFragmentBuilder) { | 166 DEFINE_TRACE(NGFragmentBuilder) { |
167 visitor->trace(children_); | 167 visitor->trace(children_); |
168 visitor->trace(out_of_flow_descendant_candidates_); | 168 visitor->trace(out_of_flow_descendant_candidates_); |
169 visitor->trace(out_of_flow_descendants_); | 169 visitor->trace(out_of_flow_descendants_); |
170 } | 170 } |
171 | 171 |
172 } // namespace blink | 172 } // namespace blink |
OLD | NEW |