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

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

Issue 2676533003: [LayoutNG] Convert physical fragments to being RefCounted. (Closed)
Patch Set: address comments. Created 3 years, 10 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_line_builder.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_line_builder.h b/third_party/WebKit/Source/core/layout/ng/ng_line_builder.h
index 702f220fa18bc9c655bd0d8fef8d5395d159266f..552a19bdbcfb90951465c201de8975eeba1ac811 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_line_builder.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_line_builder.h
@@ -6,6 +6,7 @@
#define NGLineBuilder_h
#include "core/CoreExport.h"
+#include "core/layout/ng/ng_physical_fragment.h"
#include "core/layout/ng/ng_units.h"
#include "platform/heap/Handle.h"
#include "wtf/Vector.h"
@@ -13,7 +14,6 @@
namespace blink {
class NGConstraintSpace;
-class NGFragment;
class NGFragmentBuilder;
class NGInlineNode;
@@ -61,7 +61,7 @@ class CORE_EXPORT NGLineBuilder final
Member<NGInlineNode> inline_box_;
Member<const NGConstraintSpace> constraint_space_;
- HeapVector<Member<NGFragment>, 32> fragments_;
+ Vector<RefPtr<NGPhysicalFragment>, 32> fragments_;
Vector<NGLogicalOffset, 32> offsets_;
Vector<LineItemChunk, 32> line_item_chunks_;
Vector<LineBoxData, 32> line_box_data_list_;

Powered by Google App Engine
This is Rietveld 408576698