summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_font.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxfa/parser/cxfa_font.cpp')
-rw-r--r--xfa/fxfa/parser/cxfa_font.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/xfa/fxfa/parser/cxfa_font.cpp b/xfa/fxfa/parser/cxfa_font.cpp
index df2c32797d..eb5c312173 100644
--- a/xfa/fxfa/parser/cxfa_font.cpp
+++ b/xfa/fxfa/parser/cxfa_font.cpp
@@ -6,6 +6,9 @@
#include "xfa/fxfa/parser/cxfa_font.h"
+#include "fxjs/xfa/cjx_font.h"
+#include "third_party/base/ptr_util.h"
+
namespace {
const CXFA_Node::PropertyData kPropertyData[] = {{XFA_Element::Fill, 1, 0},
@@ -56,6 +59,7 @@ CXFA_Font::CXFA_Font(CXFA_Document* doc, XFA_PacketType packet)
XFA_Element::Font,
kPropertyData,
kAttributeData,
- kName) {}
+ kName,
+ pdfium::MakeUnique<CJX_Font>(this)) {}
CXFA_Font::~CXFA_Font() {}