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

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

Issue 2284983002: [layoutng] Implement state machine for async layout (Closed)
Patch Set: NOTREACHED, also fix the windows compile error Created 4 years, 4 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 a6984492230f86c27f1b85a8eab51ef18ce1fead..cb4a5bd08a1109d59980638aa171cb96bb03f459 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,7 +10,8 @@
namespace blink {
-class CORE_EXPORT NGFragmentBuilder final {
+class CORE_EXPORT NGFragmentBuilder final
+ : public GarbageCollected<NGFragmentBuilder> {
public:
NGFragmentBuilder(NGFragmentBase::NGFragmentType);
@@ -31,6 +32,8 @@ class CORE_EXPORT NGFragmentBuilder final {
// Creates the fragment. Can only be called once.
NGFragment* ToFragment();
+ DEFINE_INLINE_VIRTUAL_TRACE() { visitor->trace(children_); }
+
private:
NGFragmentBase::NGFragmentType type_;
NGWritingMode writing_mode_;
@@ -39,7 +42,7 @@ class CORE_EXPORT NGFragmentBuilder final {
NGLogicalSize size_;
NGLogicalSize overflow_;
- PersistentHeapVector<Member<const NGFragmentBase>> children_;
+ HeapVector<Member<const NGFragmentBase>> children_;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698