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_break_token.h" | |
11 #include "core/layout/ng/ng_constraint_space_builder.h" | 10 #include "core/layout/ng/ng_constraint_space_builder.h" |
12 #include "core/layout/ng/ng_fragment_builder.h" | 11 #include "core/layout/ng/ng_fragment_builder.h" |
13 #include "core/layout/ng/ng_layout_algorithm.h" | 12 #include "core/layout/ng/ng_layout_algorithm.h" |
14 #include "core/layout/ng/ng_units.h" | 13 #include "core/layout/ng/ng_units.h" |
15 #include "wtf/RefPtr.h" | 14 #include "wtf/RefPtr.h" |
16 | 15 |
17 namespace blink { | 16 namespace blink { |
18 | 17 |
19 class ComputedStyle; | 18 class ComputedStyle; |
20 class NGBlockBreakToken; | 19 class NGBlockBreakToken; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 DCHECK(constraint_space_); | 73 DCHECK(constraint_space_); |
75 return *constraint_space_; | 74 return *constraint_space_; |
76 } | 75 } |
77 | 76 |
78 const ComputedStyle& Style() const { return node_->Style(); } | 77 const ComputedStyle& Style() const { return node_->Style(); } |
79 | 78 |
80 Persistent<NGBlockNode> node_; | 79 Persistent<NGBlockNode> node_; |
81 NGConstraintSpace* constraint_space_; | 80 NGConstraintSpace* constraint_space_; |
82 | 81 |
83 // The break token from which we are currently resuming layout. | 82 // The break token from which we are currently resuming layout. |
84 Persistent<NGBlockBreakToken> break_token_; | 83 NGBlockBreakToken* break_token_; |
85 | 84 |
86 NGFragmentBuilder builder_; | 85 NGFragmentBuilder builder_; |
87 NGConstraintSpaceBuilder space_builder_; | 86 NGConstraintSpaceBuilder space_builder_; |
88 | 87 |
89 NGBoxStrut border_and_padding_; | 88 NGBoxStrut border_and_padding_; |
90 LayoutUnit content_size_; | 89 LayoutUnit content_size_; |
91 LayoutUnit max_inline_size_; | 90 LayoutUnit max_inline_size_; |
92 // MarginStrut for the previous child. | 91 // MarginStrut for the previous child. |
93 NGMarginStrut curr_margin_strut_; | 92 NGMarginStrut curr_margin_strut_; |
94 NGLogicalOffset curr_bfc_offset_; | 93 NGLogicalOffset curr_bfc_offset_; |
95 NGBoxStrut curr_child_margins_; | 94 NGBoxStrut curr_child_margins_; |
96 }; | 95 }; |
97 | 96 |
98 } // namespace blink | 97 } // namespace blink |
99 | 98 |
100 #endif // NGBlockLayoutAlgorithm_h | 99 #endif // NGBlockLayoutAlgorithm_h |
OLD | NEW |