Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(586)

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_floats_utils.h

Issue 2757603007: Move NG floats utility methods to the separate file (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698