| 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 #include "core/layout/ng/ng_constraint_space.h" | 5 #include "core/layout/ng/ng_constraint_space.h" |
| 6 | 6 |
| 7 #include "core/layout/LayoutBlock.h" | 7 #include "core/layout/LayoutBlock.h" |
| 8 #include "core/layout/LayoutView.h" | 8 #include "core/layout/LayoutView.h" |
| 9 #include "core/layout/ng/ng_constraint_space.h" | |
| 10 #include "core/layout/ng/ng_constraint_space_builder.h" | 9 #include "core/layout/ng/ng_constraint_space_builder.h" |
| 11 #include "core/layout/ng/ng_layout_opportunity_iterator.h" | 10 #include "core/layout/ng/ng_layout_opportunity_iterator.h" |
| 12 #include "core/layout/ng/ng_units.h" | |
| 13 | 11 |
| 14 namespace blink { | 12 namespace blink { |
| 15 | 13 |
| 16 NGConstraintSpace::NGConstraintSpace( | 14 NGConstraintSpace::NGConstraintSpace( |
| 17 NGWritingMode writing_mode, | 15 NGWritingMode writing_mode, |
| 18 TextDirection direction, | 16 TextDirection direction, |
| 19 NGLogicalSize available_size, | 17 NGLogicalSize available_size, |
| 20 NGLogicalSize percentage_resolution_size, | 18 NGLogicalSize percentage_resolution_size, |
| 21 bool is_fixed_size_inline, | 19 bool is_fixed_size_inline, |
| 22 bool is_fixed_size_block, | 20 bool is_fixed_size_block, |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 | 112 |
| 115 String NGConstraintSpace::ToString() const { | 113 String NGConstraintSpace::ToString() const { |
| 116 return String::format("%s,%s %sx%s", | 114 return String::format("%s,%s %sx%s", |
| 117 offset_.inline_offset.toString().ascii().data(), | 115 offset_.inline_offset.toString().ascii().data(), |
| 118 offset_.block_offset.toString().ascii().data(), | 116 offset_.block_offset.toString().ascii().data(), |
| 119 AvailableSize().inline_size.toString().ascii().data(), | 117 AvailableSize().inline_size.toString().ascii().data(), |
| 120 AvailableSize().block_size.toString().ascii().data()); | 118 AvailableSize().block_size.toString().ascii().data()); |
| 121 } | 119 } |
| 122 | 120 |
| 123 } // namespace blink | 121 } // namespace blink |
| OLD | NEW |