Index: third_party/WebKit/Source/core/layout/ng/ng_layout_result.h |
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_layout_result.h b/third_party/WebKit/Source/core/layout/ng/ng_layout_result.h |
index 3ec776990cf99fe23231b975227433589e8698ad..64689633dfde025341e81d111a125cb33f70de24 100644 |
--- a/third_party/WebKit/Source/core/layout/ng/ng_layout_result.h |
+++ b/third_party/WebKit/Source/core/layout/ng/ng_layout_result.h |
@@ -7,6 +7,7 @@ |
#include "core/CoreExport.h" |
#include "core/layout/ng/geometry/ng_static_position.h" |
+#include "core/layout/ng/ng_floating_object.h" |
#include "core/layout/ng/ng_physical_fragment.h" |
#include "platform/LayoutUnit.h" |
#include "platform/heap/Handle.h" |
@@ -15,7 +16,6 @@ |
namespace blink { |
class LayoutObject; |
-class NGPhysicalFragment; |
class NGBlockNode; |
struct NGFloatingObject; |
@@ -48,7 +48,7 @@ class CORE_EXPORT NGLayoutResult : public RefCounted<NGLayoutResult> { |
// The float cannot be positioned right away inside of the 1st div because |
// the vertical position is not known at that moment. It will be known only |
// after the 2nd div collapses its margin with its parent. |
- const Vector<Persistent<NGFloatingObject>>& UnpositionedFloats() const { |
+ const Vector<RefPtr<NGFloatingObject>>& UnpositionedFloats() const { |
return unpositioned_floats_; |
} |
@@ -59,13 +59,13 @@ class CORE_EXPORT NGLayoutResult : public RefCounted<NGLayoutResult> { |
PersistentHeapLinkedHashSet<WeakMember<NGBlockNode>>& |
out_of_flow_descendants, |
Vector<NGStaticPosition> out_of_flow_positions, |
- Vector<Persistent<NGFloatingObject>>& unpositioned_floats); |
+ Vector<RefPtr<NGFloatingObject>>& unpositioned_floats); |
RefPtr<NGPhysicalFragment> physical_fragment_; |
LayoutObject* layout_object_; |
PersistentHeapLinkedHashSet<WeakMember<NGBlockNode>> out_of_flow_descendants_; |
Vector<NGStaticPosition> out_of_flow_positions_; |
- Vector<Persistent<NGFloatingObject>> unpositioned_floats_; |
+ Vector<RefPtr<NGFloatingObject>> unpositioned_floats_; |
}; |
} // namespace blink |