| 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_text_layout_algorithm.h" | 5 #include "core/layout/ng/ng_text_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 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 NGTextLayoutAlgorithm::NGTextLayoutAlgorithm( | 12 NGTextLayoutAlgorithm::NGTextLayoutAlgorithm( |
| 13 NGInlineNode* inline_box, | 13 NGInlineNode* inline_box, |
| 14 NGConstraintSpace* constraint_space, | 14 NGConstraintSpace* constraint_space, |
| 15 NGBreakToken* break_token) | 15 NGBreakToken* break_token) |
| 16 : inline_box_(inline_box), | 16 : inline_box_(inline_box), |
| 17 constraint_space_(constraint_space), | 17 constraint_space_(constraint_space), |
| 18 break_token_(break_token) { | 18 break_token_(break_token) { |
| 19 DCHECK(inline_box_); | 19 DCHECK(inline_box_); |
| 20 } | 20 } |
| 21 | 21 |
| 22 NGLayoutStatus NGTextLayoutAlgorithm::Layout( | 22 NGLayoutStatus NGTextLayoutAlgorithm::Layout( |
| 23 NGFragmentBase*, | 23 NGFragmentBase*, |
| 24 NGPhysicalFragmentBase** fragment_out, | 24 NGPhysicalFragmentBase** fragment_out, |
| 25 NGLayoutAlgorithm**) { | 25 NGLayoutAlgorithm**) { |
| 26 // TODO(layout-dev): implement. | 26 // TODO(layout-dev): implement. |
| 27 *fragment_out = nullptr; | 27 *fragment_out = nullptr; |
| 28 return NewFragment; | 28 return kNewFragment; |
| 29 } | 29 } |
| 30 | 30 |
| 31 DEFINE_TRACE(NGTextLayoutAlgorithm) { | 31 DEFINE_TRACE(NGTextLayoutAlgorithm) { |
| 32 NGLayoutAlgorithm::trace(visitor); | 32 NGLayoutAlgorithm::trace(visitor); |
| 33 visitor->trace(inline_box_); | 33 visitor->trace(inline_box_); |
| 34 visitor->trace(constraint_space_); | 34 visitor->trace(constraint_space_); |
| 35 visitor->trace(break_token_); | 35 visitor->trace(break_token_); |
| 36 } | 36 } |
| 37 | 37 |
| 38 } // namespace blink | 38 } // namespace blink |
| OLD | NEW |