summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_deltas.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxfa/parser/cxfa_deltas.cpp')
-rw-r--r--xfa/fxfa/parser/cxfa_deltas.cpp18
1 files changed, 4 insertions, 14 deletions
diff --git a/xfa/fxfa/parser/cxfa_deltas.cpp b/xfa/fxfa/parser/cxfa_deltas.cpp
index 2b843b53b4..4db0936ba3 100644
--- a/xfa/fxfa/parser/cxfa_deltas.cpp
+++ b/xfa/fxfa/parser/cxfa_deltas.cpp
@@ -6,20 +6,10 @@
#include "xfa/fxfa/parser/cxfa_deltas.h"
-namespace {
+#include "fxjs/xfa/cjx_deltas.h"
+#include "third_party/base/ptr_util.h"
-constexpr wchar_t kName[] = L"deltas";
-
-} // namespace
-
-CXFA_Deltas::CXFA_Deltas(CXFA_Document* doc, XFA_PacketType packet)
- : CXFA_Node(doc,
- packet,
- XFA_XDPPACKET_Form,
- XFA_ObjectType::Object,
- XFA_Element::Deltas,
- nullptr,
- nullptr,
- kName) {}
+CXFA_Deltas::CXFA_Deltas(CXFA_Document* doc)
+ : CXFA_List(doc, pdfium::MakeUnique<CJX_Deltas>(this)) {}
CXFA_Deltas::~CXFA_Deltas() {}