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_block_layout_algorithm.h" | 5 #include "core/layout/ng/ng_block_layout_algorithm.h" |
6 | 6 |
7 #include "core/layout/ng/ng_absolute_utils.h" | 7 #include "core/layout/ng/ng_absolute_utils.h" |
8 #include "core/layout/ng/ng_block_break_token.h" | 8 #include "core/layout/ng/ng_block_break_token.h" |
9 #include "core/layout/ng/ng_block_child_iterator.h" | 9 #include "core/layout/ng/ng_block_child_iterator.h" |
10 #include "core/layout/ng/ng_box_fragment.h" | 10 #include "core/layout/ng/ng_box_fragment.h" |
11 #include "core/layout/ng/ng_constraint_space.h" | 11 #include "core/layout/ng/ng_constraint_space.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_floats_utils.h" | 13 #include "core/layout/ng/ng_floats_utils.h" |
14 #include "core/layout/ng/ng_fragment.h" | 14 #include "core/layout/ng/ng_fragment.h" |
15 #include "core/layout/ng/ng_fragment_builder.h" | 15 #include "core/layout/ng/ng_fragment_builder.h" |
16 #include "core/layout/ng/ng_inline_node.h" | 16 #include "core/layout/ng/ng_inline_node.h" |
17 #include "core/layout/ng/ng_layout_opportunity_iterator.h" | 17 #include "core/layout/ng/ng_layout_opportunity_iterator.h" |
18 #include "core/layout/ng/ng_length_utils.h" | 18 #include "core/layout/ng/ng_length_utils.h" |
19 #include "core/layout/ng/ng_line_builder.h" | |
20 #include "core/layout/ng/ng_out_of_flow_layout_part.h" | 19 #include "core/layout/ng/ng_out_of_flow_layout_part.h" |
21 #include "core/layout/ng/ng_space_utils.h" | 20 #include "core/layout/ng/ng_space_utils.h" |
22 #include "core/style/ComputedStyle.h" | 21 #include "core/style/ComputedStyle.h" |
23 #include "platform/LengthFunctions.h" | 22 #include "platform/LengthFunctions.h" |
24 #include "wtf/Optional.h" | 23 #include "wtf/Optional.h" |
25 | 24 |
26 namespace blink { | 25 namespace blink { |
27 namespace { | 26 namespace { |
28 | 27 |
29 // Positions pending floats stored on the fragment builder starting from | 28 // Positions pending floats stored on the fragment builder starting from |
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 DCHECK(builder_.BfcOffset()); | 510 DCHECK(builder_.BfcOffset()); |
512 space_available -= curr_bfc_offset_.block_offset; | 511 space_available -= curr_bfc_offset_.block_offset; |
513 } | 512 } |
514 } | 513 } |
515 space_builder_.SetFragmentainerSpaceAvailable(space_available); | 514 space_builder_.SetFragmentainerSpaceAvailable(space_available); |
516 | 515 |
517 return space_builder_.ToConstraintSpace( | 516 return space_builder_.ToConstraintSpace( |
518 FromPlatformWritingMode(child_style.getWritingMode())); | 517 FromPlatformWritingMode(child_style.getWritingMode())); |
519 } | 518 } |
520 } // namespace blink | 519 } // namespace blink |
OLD | NEW |