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 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
516 // started handling the fragmentation for floats. | 515 // started handling the fragmentation for floats. |
517 space_builder_.SetBfcOffset(NGLogicalOffset()); | 516 space_builder_.SetBfcOffset(NGLogicalOffset()); |
518 } | 517 } |
519 } | 518 } |
520 space_builder_.SetFragmentainerSpaceAvailable(space_available); | 519 space_builder_.SetFragmentainerSpaceAvailable(space_available); |
521 | 520 |
522 return space_builder_.ToConstraintSpace( | 521 return space_builder_.ToConstraintSpace( |
523 FromPlatformWritingMode(child_style.getWritingMode())); | 522 FromPlatformWritingMode(child_style.getWritingMode())); |
524 } | 523 } |
525 } // namespace blink | 524 } // namespace blink |
OLD | NEW |