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 inline layout (e.g. a anonymous block with inline-level children | 19 // A class for inline layout (e.g. a anonymous block with inline-level children |
21 // only). | 20 // only). |
22 // | 21 // |
23 // This algorithm may at some point be merged with NGBlockLayoutAlgorithm in | 22 // This algorithm may at some point be merged with NGBlockLayoutAlgorithm in |
24 // the future. Currently it exists as its own class to simplify the LayoutNG | 23 // the future. Currently it exists as its own class to simplify the LayoutNG |
25 // transition period. | 24 // transition period. |
26 class CORE_EXPORT NGInlineLayoutAlgorithm : public NGLayoutAlgorithm { | 25 class CORE_EXPORT NGInlineLayoutAlgorithm : public NGLayoutAlgorithm { |
27 public: | 26 public: |
(...skipping 20 matching lines...) Expand all Loading... |
48 | 47 |
49 RefPtr<const ComputedStyle> style_; | 48 RefPtr<const ComputedStyle> style_; |
50 Member<NGInlineNode> first_child_; | 49 Member<NGInlineNode> first_child_; |
51 Member<NGConstraintSpace> constraint_space_; | 50 Member<NGConstraintSpace> constraint_space_; |
52 Member<NGBreakToken> break_token_; | 51 Member<NGBreakToken> break_token_; |
53 }; | 52 }; |
54 | 53 |
55 } // namespace blink | 54 } // namespace blink |
56 | 55 |
57 #endif // NGInlineLayoutAlgorithm_h | 56 #endif // NGInlineLayoutAlgorithm_h |
OLD | NEW |