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 #ifndef NGInlineLayoutAlgorithm_h | 5 #ifndef NGInlineLayoutAlgorithm_h |
6 #define NGInlineLayoutAlgorithm_h | 6 #define NGInlineLayoutAlgorithm_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/layout/ng/ng_inline_node.h" | 9 #include "core/layout/ng/ng_inline_node.h" |
10 #include "core/layout/ng/ng_layout_algorithm.h" | 10 #include "core/layout/ng/ng_layout_algorithm.h" |
11 #include "wtf/RefPtr.h" | 11 #include "wtf/RefPtr.h" |
12 | 12 |
13 namespace blink { | 13 namespace blink { |
14 | 14 |
15 class ComputedStyle; | 15 class ComputedStyle; |
16 class NGConstraintSpace; | 16 class NGConstraintSpace; |
17 class NGPhysicalFragment; | |
18 class NGBreakToken; | 17 class NGBreakToken; |
19 | 18 |
20 // A class for text layout. This takes a NGInlineNode which consists only | 19 // A class for text layout. This takes a NGInlineNode which consists only |
21 // non-atomic inlines and produces NGTextFragments. | 20 // non-atomic inlines and produces NGTextFragments. |
22 // | 21 // |
23 // Unlike other layout algorithms this takes a NGInlineNode as its input instead | 22 // Unlike other layout algorithms this takes a NGInlineNode as its input instead |
24 // of the ComputedStyle as it operates over multiple inlines with different | 23 // of the ComputedStyle as it operates over multiple inlines with different |
25 // style. | 24 // style. |
26 class CORE_EXPORT NGTextLayoutAlgorithm : public NGLayoutAlgorithm { | 25 class CORE_EXPORT NGTextLayoutAlgorithm : public NGLayoutAlgorithm { |
27 public: | 26 public: |
(...skipping 13 matching lines...) Expand all Loading... |
41 | 40 |
42 private: | 41 private: |
43 Member<NGInlineNode> inline_box_; | 42 Member<NGInlineNode> inline_box_; |
44 Member<NGConstraintSpace> constraint_space_; | 43 Member<NGConstraintSpace> constraint_space_; |
45 Member<NGBreakToken> break_token_; | 44 Member<NGBreakToken> break_token_; |
46 }; | 45 }; |
47 | 46 |
48 } // namespace blink | 47 } // namespace blink |
49 | 48 |
50 #endif // NGInlineLayoutAlgorithm_h | 49 #endif // NGInlineLayoutAlgorithm_h |
OLD | NEW |