Index: third_party/WebKit/Source/core/layout/ng/ng_floats_utils.h |
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_floats_utils.h b/third_party/WebKit/Source/core/layout/ng/ng_floats_utils.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7b5333a38bbc4e353b5aa496469f3ac8f6d8617c |
--- /dev/null |
+++ b/third_party/WebKit/Source/core/layout/ng/ng_floats_utils.h |
@@ -0,0 +1,23 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef NGFloatsUtils_h |
+#define NGFloatsUtils_h |
+ |
+#include "core/layout/ng/geometry/ng_logical_offset.h" |
+#include "core/layout/ng/ng_constraint_space.h" |
+#include "core/layout/ng/ng_floating_object.h" |
+ |
+namespace blink { |
+ |
+// Calculates the relative position from {@code from_offset} of the |
+// floating object that is requested to be positioned from {@code origin_point}. |
+CORE_EXPORT NGLogicalOffset PositionFloat(const NGLogicalOffset& origin_point, |
+ const NGLogicalOffset& from_offset, |
+ NGFloatingObject*, |
+ NGConstraintSpace* new_parent_space); |
+ |
+} // namespace blink |
+ |
+#endif // NGFloatsUtils_h |