| 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_box_fragment.h" |
| 7 #include "core/layout/ng/ng_break_token.h" | 8 #include "core/layout/ng/ng_break_token.h" |
| 8 #include "core/layout/ng/ng_constraint_space.h" | 9 #include "core/layout/ng/ng_constraint_space.h" |
| 9 #include "core/layout/ng/ng_fragment_builder.h" | 10 #include "core/layout/ng/ng_fragment_builder.h" |
| 11 #include "core/layout/ng/ng_inline_node.h" |
| 10 #include "core/layout/ng/ng_line_builder.h" | 12 #include "core/layout/ng/ng_line_builder.h" |
| 11 #include "core/layout/ng/ng_text_fragment.h" | 13 #include "core/layout/ng/ng_text_fragment.h" |
| 12 #include "core/layout/ng/ng_inline_node.h" | |
| 13 #include "core/style/ComputedStyle.h" | 14 #include "core/style/ComputedStyle.h" |
| 14 #include "core/layout/ng/ng_box_fragment.h" | |
| 15 | 15 |
| 16 namespace blink { | 16 namespace blink { |
| 17 | 17 |
| 18 NGTextLayoutAlgorithm::NGTextLayoutAlgorithm( | 18 NGTextLayoutAlgorithm::NGTextLayoutAlgorithm( |
| 19 NGInlineNode* inline_box, | 19 NGInlineNode* inline_box, |
| 20 NGConstraintSpace* constraint_space, | 20 NGConstraintSpace* constraint_space, |
| 21 NGBreakToken* break_token) | 21 NGBreakToken* break_token) |
| 22 : NGLayoutAlgorithm(kTextLayoutAlgorithm), | 22 : NGLayoutAlgorithm(kTextLayoutAlgorithm), |
| 23 inline_box_(inline_box), | 23 inline_box_(inline_box), |
| 24 constraint_space_(constraint_space), | 24 constraint_space_(constraint_space), |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 } | 70 } |
| 71 | 71 |
| 72 DEFINE_TRACE(NGTextLayoutAlgorithm) { | 72 DEFINE_TRACE(NGTextLayoutAlgorithm) { |
| 73 NGLayoutAlgorithm::trace(visitor); | 73 NGLayoutAlgorithm::trace(visitor); |
| 74 visitor->trace(inline_box_); | 74 visitor->trace(inline_box_); |
| 75 visitor->trace(constraint_space_); | 75 visitor->trace(constraint_space_); |
| 76 visitor->trace(break_token_); | 76 visitor->trace(break_token_); |
| 77 } | 77 } |
| 78 | 78 |
| 79 } // namespace blink | 79 } // namespace blink |
| OLD | NEW |