| 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" | 10 #include "core/layout/ng/ng_break_token.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 return NGLogicalOffset(border_and_padding_.inline_start, content_size_); | 70 return NGLogicalOffset(border_and_padding_.inline_start, content_size_); |
| 71 } | 71 } |
| 72 | 72 |
| 73 const NGConstraintSpace& ConstraintSpace() const { | 73 const NGConstraintSpace& ConstraintSpace() const { |
| 74 DCHECK(constraint_space_); | 74 DCHECK(constraint_space_); |
| 75 return *constraint_space_; | 75 return *constraint_space_; |
| 76 } | 76 } |
| 77 | 77 |
| 78 const ComputedStyle& Style() const { return node_->Style(); } | 78 const ComputedStyle& Style() const { return node_->Style(); } |
| 79 | 79 |
| 80 // Mutable Getters. |
| 81 NGConstraintSpace* MutableConstraintSpace() { return constraint_space_; } |
| 82 |
| 80 Persistent<NGBlockNode> node_; | 83 Persistent<NGBlockNode> node_; |
| 81 NGConstraintSpace* constraint_space_; | 84 NGConstraintSpace* constraint_space_; |
| 82 | 85 |
| 83 // The break token from which we are currently resuming layout. | 86 // The break token from which we are currently resuming layout. |
| 84 Persistent<NGBlockBreakToken> break_token_; | 87 Persistent<NGBlockBreakToken> break_token_; |
| 85 | 88 |
| 86 NGFragmentBuilder builder_; | 89 NGFragmentBuilder builder_; |
| 87 NGConstraintSpaceBuilder space_builder_; | 90 NGConstraintSpaceBuilder space_builder_; |
| 88 | 91 |
| 89 NGBoxStrut border_and_padding_; | 92 NGBoxStrut border_and_padding_; |
| 90 LayoutUnit content_size_; | 93 LayoutUnit content_size_; |
| 91 LayoutUnit max_inline_size_; | 94 LayoutUnit max_inline_size_; |
| 92 // MarginStrut for the previous child. | 95 // MarginStrut for the previous child. |
| 93 NGMarginStrut curr_margin_strut_; | 96 NGMarginStrut curr_margin_strut_; |
| 94 NGLogicalOffset curr_bfc_offset_; | 97 NGLogicalOffset curr_bfc_offset_; |
| 95 NGBoxStrut curr_child_margins_; | 98 NGBoxStrut curr_child_margins_; |
| 96 }; | 99 }; |
| 97 | 100 |
| 98 } // namespace blink | 101 } // namespace blink |
| 99 | 102 |
| 100 #endif // NGBlockLayoutAlgorithm_h | 103 #endif // NGBlockLayoutAlgorithm_h |
| OLD | NEW |