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 NGBlockLayoutAlgorithm_h | 5 #ifndef NGBlockLayoutAlgorithm_h |
6 #define NGBlockLayoutAlgorithm_h | 6 #define NGBlockLayoutAlgorithm_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/layout/ng/ng_block_node.h" | 9 #include "core/layout/ng/ng_block_node.h" |
10 #include "core/layout/ng/ng_constraint_space_builder.h" | |
11 #include "core/layout/ng/ng_fragment_builder.h" | |
12 #include "core/layout/ng/ng_layout_algorithm.h" | 10 #include "core/layout/ng/ng_layout_algorithm.h" |
| 11 #include "core/layout/ng/ng_units.h" |
13 #include "wtf/RefPtr.h" | 12 #include "wtf/RefPtr.h" |
14 | 13 |
15 namespace blink { | 14 namespace blink { |
16 | 15 |
17 class ComputedStyle; | 16 class ComputedStyle; |
| 17 class NGBreakToken; |
18 class NGConstraintSpace; | 18 class NGConstraintSpace; |
| 19 class NGConstraintSpaceBuilder; |
| 20 class NGFragment; |
| 21 class NGFragmentBuilder; |
19 class NGPhysicalFragmentBase; | 22 class NGPhysicalFragmentBase; |
20 class NGBreakToken; | |
21 | 23 |
22 // A class for general block layout (e.g. a <div> with no special style). | 24 // A class for general block layout (e.g. a <div> with no special style). |
23 // Lays out the children in sequence. | 25 // Lays out the children in sequence. |
24 class CORE_EXPORT NGBlockLayoutAlgorithm : public NGLayoutAlgorithm { | 26 class CORE_EXPORT NGBlockLayoutAlgorithm : public NGLayoutAlgorithm { |
25 public: | 27 public: |
26 // Default constructor. | 28 // Default constructor. |
27 // @param style Style reference of the block that is being laid out. | 29 // @param style Style reference of the block that is being laid out. |
28 // @param first_child Our first child; the algorithm will use its NextSibling | 30 // @param first_child Our first child; the algorithm will use its NextSibling |
29 // method to access all the children. | 31 // method to access all the children. |
30 // @param space The constraint space which the algorithm should generate a | 32 // @param space The constraint space which the algorithm should generate a |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 // MarginStrut for the previous child. | 117 // MarginStrut for the previous child. |
116 NGMarginStrut prev_child_margin_strut_; | 118 NGMarginStrut prev_child_margin_strut_; |
117 // Whether the block-start was set for the currently built | 119 // Whether the block-start was set for the currently built |
118 // fragment's margin strut. | 120 // fragment's margin strut. |
119 bool is_fragment_margin_strut_block_start_updated_ : 1; | 121 bool is_fragment_margin_strut_block_start_updated_ : 1; |
120 }; | 122 }; |
121 | 123 |
122 } // namespace blink | 124 } // namespace blink |
123 | 125 |
124 #endif // NGBlockLayoutAlgorithm_h | 126 #endif // NGBlockLayoutAlgorithm_h |
OLD | NEW |