Index: third_party/WebKit/Source/core/layout/ng/ng_fragment.h |
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_fragment.h b/third_party/WebKit/Source/core/layout/ng/ng_fragment.h |
index 44fef5d670aa89dfcfcfbd7fedddbc720ca78fcf..f6a80fa3d9fcb58d90737c066d4a422ba564c96f 100644 |
--- a/third_party/WebKit/Source/core/layout/ng/ng_fragment.h |
+++ b/third_party/WebKit/Source/core/layout/ng/ng_fragment.h |
@@ -28,6 +28,10 @@ class CORE_EXPORT NGFragment final : public NGFragmentBase { |
NGFragmentBase::traceAfterDispatch(visitor); |
} |
+ void swapChildren(HeapVector<Member<const NGFragmentBase>>& children) { |
+ m_children.swap(children); |
+ } |
+ |
private: |
HeapVector<Member<const NGFragmentBase>> m_children; |
bool m_isText; |