| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 NGFloatsUtils_h | 5 #ifndef NGFloatsUtils_h |
| 6 #define NGFloatsUtils_h | 6 #define NGFloatsUtils_h |
| 7 | 7 |
| 8 #include "core/layout/ng/geometry/ng_logical_offset.h" | 8 #include "core/layout/ng/geometry/ng_logical_offset.h" |
| 9 #include "core/layout/ng/ng_constraint_space.h" | 9 #include "core/layout/ng/ng_constraint_space.h" |
| 10 #include "core/layout/ng/ng_floating_object.h" | 10 #include "core/layout/ng/ng_floating_object.h" |
| 11 #include "core/layout/ng/ng_fragment_builder.h" | 11 #include "core/layout/ng/ng_fragment_builder.h" |
| 12 #include "core/layout/ng/ng_positioned_float.h" | 12 #include "core/layout/ng/ng_positioned_float.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 // Positions {@code floating_object} into {@code new_parent_space}. | 16 // Positions {@code floating_object} into {@code new_parent_space}. |
| 17 // @returns A positioned float. | 17 // @returns A positioned float. |
| 18 CORE_EXPORT NGPositionedFloat | 18 CORE_EXPORT NGPositionedFloat |
| 19 PositionFloat(NGFloatingObject*, NGConstraintSpace* new_parent_space); | 19 PositionFloat(NGFloatingObject*, NGConstraintSpace* new_parent_space); |
| 20 | 20 |
| 21 // Positions the list of {@code floating_objects}. Adds them as exclusions to | 21 // Positions the list of {@code floating_objects}. Adds them as exclusions to |
| 22 // {@code space}. | 22 // {@code space}. |
| 23 CORE_EXPORT const Vector<NGPositionedFloat> PositionFloats( | 23 CORE_EXPORT const Vector<NGPositionedFloat> PositionFloats( |
| 24 LayoutUnit origin_block_offset, | 24 LayoutUnit origin_block_offset, |
| 25 LayoutUnit from_block_offset, | 25 LayoutUnit from_block_offset, |
| 26 LayoutUnit container_block_offset, |
| 26 const Vector<RefPtr<NGFloatingObject>>& floating_objects, | 27 const Vector<RefPtr<NGFloatingObject>>& floating_objects, |
| 27 NGConstraintSpace* space); | 28 NGConstraintSpace* space); |
| 28 | 29 |
| 29 } // namespace blink | 30 } // namespace blink |
| 30 | 31 |
| 31 #endif // NGFloatsUtils_h | 32 #endif // NGFloatsUtils_h |
| OLD | NEW |