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_inline_layout_algorithm.h" | 5 #include "core/layout/ng/ng_inline_layout_algorithm.h" |
6 | 6 |
7 #include "core/layout/ng/ng_break_token.h" | 7 #include "core/layout/ng/ng_break_token.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_builder.h" | 9 #include "core/layout/ng/ng_fragment_builder.h" |
10 #include "core/layout/ng/ng_inline_node.h" | 10 #include "core/layout/ng/ng_inline_node.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 first_child_(first_child), | 21 first_child_(first_child), |
22 constraint_space_(constraint_space), | 22 constraint_space_(constraint_space), |
23 break_token_(break_token) { | 23 break_token_(break_token) { |
24 DCHECK(style_); | 24 DCHECK(style_); |
25 } | 25 } |
26 | 26 |
27 NGLayoutStatus NGInlineLayoutAlgorithm::Layout( | 27 NGLayoutStatus NGInlineLayoutAlgorithm::Layout( |
28 NGFragmentBase*, | 28 NGFragmentBase*, |
29 NGPhysicalFragmentBase** fragment_out, | 29 NGPhysicalFragmentBase** fragment_out, |
30 NGLayoutAlgorithm**) { | 30 NGLayoutAlgorithm**) { |
31 NGFragmentBuilder builder(NGPhysicalFragmentBase::FragmentBox); | 31 NGFragmentBuilder builder(NGPhysicalFragmentBase::kFragmentBox); |
32 | 32 |
33 *fragment_out = builder.ToFragment(); | 33 *fragment_out = builder.ToFragment(); |
34 return NewFragment; | 34 return kNewFragment; |
35 } | 35 } |
36 | 36 |
37 DEFINE_TRACE(NGInlineLayoutAlgorithm) { | 37 DEFINE_TRACE(NGInlineLayoutAlgorithm) { |
38 NGLayoutAlgorithm::trace(visitor); | 38 NGLayoutAlgorithm::trace(visitor); |
39 visitor->trace(first_child_); | 39 visitor->trace(first_child_); |
40 visitor->trace(constraint_space_); | 40 visitor->trace(constraint_space_); |
41 visitor->trace(break_token_); | 41 visitor->trace(break_token_); |
42 } | 42 } |
43 | 43 |
44 } // namespace blink | 44 } // namespace blink |
OLD | NEW |