| 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/geometry/ng_margin_strut.h" | 9 #include "core/layout/ng/geometry/ng_margin_strut.h" |
| 10 #include "core/layout/ng/ng_block_break_token.h" | 10 #include "core/layout/ng/ng_block_break_token.h" |
| 11 #include "core/layout/ng/ng_block_node.h" | 11 #include "core/layout/ng/ng_block_node.h" |
| 12 #include "core/layout/ng/ng_constraint_space_builder.h" | 12 #include "core/layout/ng/ng_constraint_space_builder.h" |
| 13 #include "core/layout/ng/ng_fragment_builder.h" | 13 #include "core/layout/ng/ng_fragment_builder.h" |
| 14 #include "core/layout/ng/ng_layout_algorithm.h" | 14 #include "core/layout/ng/ng_layout_algorithm.h" |
| 15 #include "wtf/RefPtr.h" | 15 #include "platform/wtf/RefPtr.h" |
| 16 | 16 |
| 17 namespace blink { | 17 namespace blink { |
| 18 | 18 |
| 19 class NGConstraintSpace; | 19 class NGConstraintSpace; |
| 20 class NGLayoutResult; | 20 class NGLayoutResult; |
| 21 | 21 |
| 22 // A class for general block layout (e.g. a <div> with no special style). | 22 // A class for general block layout (e.g. a <div> with no special style). |
| 23 // Lays out the children in sequence. | 23 // Lays out the children in sequence. |
| 24 class CORE_EXPORT NGBlockLayoutAlgorithm | 24 class CORE_EXPORT NGBlockLayoutAlgorithm |
| 25 : public NGLayoutAlgorithm<NGBlockNode, NGBlockBreakToken> { | 25 : public NGLayoutAlgorithm<NGBlockNode, NGBlockBreakToken> { |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 LayoutUnit max_inline_size_; | 70 LayoutUnit max_inline_size_; |
| 71 // MarginStrut for the previous child. | 71 // MarginStrut for the previous child. |
| 72 NGMarginStrut curr_margin_strut_; | 72 NGMarginStrut curr_margin_strut_; |
| 73 NGLogicalOffset curr_bfc_offset_; | 73 NGLogicalOffset curr_bfc_offset_; |
| 74 NGBoxStrut curr_child_margins_; | 74 NGBoxStrut curr_child_margins_; |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 } // namespace blink | 77 } // namespace blink |
| 78 | 78 |
| 79 #endif // NGBlockLayoutAlgorithm_h | 79 #endif // NGBlockLayoutAlgorithm_h |
| OLD | NEW |