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

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

Issue 2872593003: [LayoutNG] Introduce NGPositionedFloat. (Closed)
Patch Set: address comments. Created 3 years, 7 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
index 449b6c56915a51e996d891f51193fe5233c862e5..81a2e3bfe48d53406076124fb5f4597ea98a7675 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_floats_utils.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_floats_utils.h
@@ -9,19 +9,23 @@
#include "core/layout/ng/ng_constraint_space.h"
#include "core/layout/ng/ng_floating_object.h"
#include "core/layout/ng/ng_fragment_builder.h"
+#include "core/layout/ng/ng_positioned_float.h"
namespace blink {
// Positions {@code floating_object} into {@code new_parent_space}.
-// @returns Logical offset of the positioned float.
-CORE_EXPORT NGLogicalOffset PositionFloat(NGFloatingObject*,
- NGConstraintSpace* new_parent_space);
+// @returns A positioned float.
+CORE_EXPORT NGPositionedFloat
+PositionFloat(NGFloatingObject*, NGConstraintSpace* new_parent_space);
+
+// Positions the list of {@code floating_objects}. Adds them as exclusions to
+// {@code space}.
+CORE_EXPORT const Vector<NGPositionedFloat> PositionFloats(
+ LayoutUnit origin_block_offset,
+ LayoutUnit from_block_offset,
+ const Vector<RefPtr<NGFloatingObject>>& floating_objects,
+ NGConstraintSpace* space);
-// Positions the list of floats by updating their {@code logical_offset}.
-void PositionFloats(LayoutUnit origin_block_offset,
- LayoutUnit from_block_offset,
- const Vector<RefPtr<NGFloatingObject>>&,
- NGConstraintSpace*);
} // namespace blink
#endif // NGFloatsUtils_h

Powered by Google App Engine
This is Rietveld 408576698