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 NGLayoutAlgorithm_h | 5 #ifndef NGLayoutAlgorithm_h |
6 #define NGLayoutAlgorithm_h | 6 #define NGLayoutAlgorithm_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/layout/ng/ng_min_max_content_size.h" | 9 #include "core/layout/ng/ng_min_max_content_size.h" |
10 #include "wtf/Allocator.h" | 10 #include "platform/wtf/Allocator.h" |
11 #include "wtf/Optional.h" | 11 #include "platform/wtf/Optional.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 NGLayoutResult; | 17 class NGLayoutResult; |
18 | 18 |
19 // Base class for all LayoutNG algorithms. | 19 // Base class for all LayoutNG algorithms. |
20 template <typename NGInputNodeType, typename NGBreakTokenType> | 20 template <typename NGInputNodeType, typename NGBreakTokenType> |
21 class CORE_EXPORT NGLayoutAlgorithm { | 21 class CORE_EXPORT NGLayoutAlgorithm { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 Persistent<NGInputNodeType> node_; | 62 Persistent<NGInputNodeType> node_; |
63 NGConstraintSpace* constraint_space_; | 63 NGConstraintSpace* constraint_space_; |
64 | 64 |
65 // The break token from which we are currently resuming layout. | 65 // The break token from which we are currently resuming layout. |
66 NGBreakTokenType* break_token_; | 66 NGBreakTokenType* break_token_; |
67 }; | 67 }; |
68 | 68 |
69 } // namespace blink | 69 } // namespace blink |
70 | 70 |
71 #endif // NGLayoutAlgorithm_h | 71 #endif // NGLayoutAlgorithm_h |
OLD | NEW |