OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef NGFloatsUtils_h |
| 6 #define NGFloatsUtils_h |
| 7 |
| 8 #include "core/layout/ng/geometry/ng_logical_offset.h" |
| 9 #include "core/layout/ng/ng_constraint_space.h" |
| 10 #include "core/layout/ng/ng_floating_object.h" |
| 11 |
| 12 namespace blink { |
| 13 |
| 14 // Calculates the relative position from {@code from_offset} of the |
| 15 // floating object that is requested to be positioned from {@code origin_point}. |
| 16 CORE_EXPORT NGLogicalOffset PositionFloat(const NGLogicalOffset& origin_point, |
| 17 const NGLogicalOffset& from_offset, |
| 18 NGFloatingObject*, |
| 19 NGConstraintSpace* new_parent_space); |
| 20 |
| 21 } // namespace blink |
| 22 |
| 23 #endif // NGFloatsUtils_h |
OLD | NEW |