blob: c0d0a599015256377390f6cb18a8f383581335db [file] [log] [blame]
kumarashishg826308d2023-06-23 13:21:22 +00001// Copyright 2017 The PDFium Authors
Philip P. Moltmannd904c1e2018-03-19 09:26:45 -07002// 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_packet.h"
8
9#include "fxjs/xfa/cjx_packet.h"
kumarashishg826308d2023-06-23 13:21:22 +000010#include "xfa/fxfa/parser/cxfa_document.h"
Philip P. Moltmannd904c1e2018-03-19 09:26:45 -070011
Philip P. Moltmannd904c1e2018-03-19 09:26:45 -070012CXFA_Packet::CXFA_Packet(CXFA_Document* doc, XFA_PacketType packet)
13 : CXFA_Node(doc,
14 packet,
kumarashishg826308d2023-06-23 13:21:22 +000015 XFA_XDPPACKET::kXdp,
Philip P. Moltmannd904c1e2018-03-19 09:26:45 -070016 XFA_ObjectType::NodeC,
17 XFA_Element::Packet,
Haibo Huang49cc9302020-04-27 16:14:24 -070018 {},
19 {},
kumarashishg826308d2023-06-23 13:21:22 +000020 cppgc::MakeGarbageCollected<CJX_Packet>(
21 doc->GetHeap()->GetAllocationHandle(),
22 this)) {}
Philip P. Moltmannd904c1e2018-03-19 09:26:45 -070023
Haibo Huang49cc9302020-04-27 16:14:24 -070024CXFA_Packet::~CXFA_Packet() = default;