1 // Copyright 2018 The PDFium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #include "xfa/fxfa/parser/cxfa_nodeowner.h" 8 9 #include "fxjs/gc/container_trace.h" 10 #include "third_party/base/check.h" 11 #include "xfa/fxfa/parser/cxfa_list.h" 12 #include "xfa/fxfa/parser/cxfa_node.h" 13 14 CXFA_NodeOwner::CXFA_NodeOwner() = default; 15 16 CXFA_NodeOwner::~CXFA_NodeOwner() = default; 17 Trace(cppgc::Visitor * visitor) const18void CXFA_NodeOwner::Trace(cppgc::Visitor* visitor) const { 19 ContainerTrace(visitor, lists_); 20 } 21 PersistList(CXFA_List * list)22void CXFA_NodeOwner::PersistList(CXFA_List* list) { 23 DCHECK(list); 24 lists_.emplace_back(list); 25 } 26