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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.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_fragment_builder.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.h b/third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.h
index 0924450906e1ad70f95eef3af7ecfab9a4c762cd..cb2dea736cdf9ca909f55223151d3c59c41969cd 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.h
@@ -10,6 +10,7 @@
#include "core/layout/ng/ng_constraint_space.h"
#include "core/layout/ng/ng_floating_object.h"
#include "core/layout/ng/ng_physical_fragment.h"
+#include "core/layout/ng/ng_positioned_float.h"
#include "platform/wtf/Allocator.h"
namespace blink {
@@ -112,7 +113,7 @@ class CORE_EXPORT NGFragmentBuilder final {
}
// Mutable list of positioned floats, i.e. floats with logical_offset set.
- Vector<RefPtr<NGFloatingObject>>& MutablePositionedFloats() {
+ Vector<NGPositionedFloat>& MutablePositionedFloats() {
return positioned_floats_;
}
@@ -173,7 +174,7 @@ class CORE_EXPORT NGFragmentBuilder final {
// determine its block position in space.
Vector<RefPtr<NGFloatingObject>> unpositioned_floats_;
- Vector<RefPtr<NGFloatingObject>> positioned_floats_;
+ Vector<NGPositionedFloat> positioned_floats_;
WTF::Optional<NGLogicalOffset> bfc_offset_;
NGMarginStrut end_margin_strut_;

Powered by Google App Engine
This is Rietveld 408576698