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_box.h" | 9 #include "core/layout/ng/ng_box.h" |
10 #include "core/layout/ng/ng_fragment_builder.h" | 10 #include "core/layout/ng/ng_fragment_builder.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 const NGMarginStrut& children_margin_strut); | 57 const NGMarginStrut& children_margin_strut); |
58 | 58 |
59 RefPtr<const ComputedStyle> style_; | 59 RefPtr<const ComputedStyle> style_; |
60 Member<NGBox> first_child_; | 60 Member<NGBox> first_child_; |
61 | 61 |
62 enum State { kStateInit, kStateChildLayout, kStateFinalize }; | 62 enum State { kStateInit, kStateChildLayout, kStateFinalize }; |
63 State state_; | 63 State state_; |
64 Member<NGFragmentBuilder> builder_; | 64 Member<NGFragmentBuilder> builder_; |
65 Member<NGConstraintSpace> constraint_space_for_children_; | 65 Member<NGConstraintSpace> constraint_space_for_children_; |
66 Member<NGBox> current_child_; | 66 Member<NGBox> current_child_; |
| 67 NGBoxStrut border_and_padding_; |
67 LayoutUnit content_size_; | 68 LayoutUnit content_size_; |
68 LayoutUnit max_inline_size_; | 69 LayoutUnit max_inline_size_; |
69 // MarginStrut for the previous child. | 70 // MarginStrut for the previous child. |
70 NGMarginStrut prev_child_margin_strut_; | 71 NGMarginStrut prev_child_margin_strut_; |
71 }; | 72 }; |
72 | 73 |
73 } // namespace blink | 74 } // namespace blink |
74 | 75 |
75 #endif // NGBlockLayoutAlgorithm_h | 76 #endif // NGBlockLayoutAlgorithm_h |
OLD | NEW |