summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_template.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxfa/parser/cxfa_template.cpp')
-rw-r--r--xfa/fxfa/parser/cxfa_template.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/xfa/fxfa/parser/cxfa_template.cpp b/xfa/fxfa/parser/cxfa_template.cpp
index d847bf8e0c..3f9afa17b8 100644
--- a/xfa/fxfa/parser/cxfa_template.cpp
+++ b/xfa/fxfa/parser/cxfa_template.cpp
@@ -6,6 +6,9 @@
#include "xfa/fxfa/parser/cxfa_template.h"
+#include "fxjs/xfa/cjx_template.h"
+#include "third_party/base/ptr_util.h"
+
namespace {
const CXFA_Node::PropertyData kPropertyData[] = {
@@ -33,6 +36,7 @@ CXFA_Template::CXFA_Template(CXFA_Document* doc, XFA_PacketType packet)
XFA_Element::Template,
kPropertyData,
kAttributeData,
- kName) {}
+ kName,
+ pdfium::MakeUnique<CJX_Template>(this)) {}
CXFA_Template::~CXFA_Template() {}