aboutsummaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_caption.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxfa/parser/cxfa_caption.cpp')
-rw-r--r--xfa/fxfa/parser/cxfa_caption.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/xfa/fxfa/parser/cxfa_caption.cpp b/xfa/fxfa/parser/cxfa_caption.cpp
index 1fadb8d7a..3de3ff161 100644
--- a/xfa/fxfa/parser/cxfa_caption.cpp
+++ b/xfa/fxfa/parser/cxfa_caption.cpp
@@ -1,4 +1,4 @@
-// Copyright 2017 PDFium Authors. All rights reserved.
+// Copyright 2017 The PDFium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -7,7 +7,7 @@
#include "xfa/fxfa/parser/cxfa_caption.h"
#include "fxjs/xfa/cjx_node.h"
-#include "third_party/base/ptr_util.h"
+#include "xfa/fxfa/parser/cxfa_document.h"
#include "xfa/fxfa/parser/cxfa_font.h"
#include "xfa/fxfa/parser/cxfa_margin.h"
#include "xfa/fxfa/parser/cxfa_measurement.h"
@@ -16,9 +16,9 @@
namespace {
const CXFA_Node::PropertyData kCaptionPropertyData[] = {
- {XFA_Element::Margin, 1, 0}, {XFA_Element::Para, 1, 0},
- {XFA_Element::Font, 1, 0}, {XFA_Element::Value, 1, 0},
- {XFA_Element::Extras, 1, 0},
+ {XFA_Element::Margin, 1, {}}, {XFA_Element::Para, 1, {}},
+ {XFA_Element::Font, 1, {}}, {XFA_Element::Value, 1, {}},
+ {XFA_Element::Extras, 1, {}},
};
const CXFA_Node::AttributeData kCaptionAttributeData[] = {
@@ -37,12 +37,14 @@ const CXFA_Node::AttributeData kCaptionAttributeData[] = {
CXFA_Caption::CXFA_Caption(CXFA_Document* doc, XFA_PacketType packet)
: CXFA_Node(doc,
packet,
- (XFA_XDPPACKET_Template | XFA_XDPPACKET_Form),
+ {XFA_XDPPACKET::kTemplate, XFA_XDPPACKET::kForm},
XFA_ObjectType::Node,
XFA_Element::Caption,
kCaptionPropertyData,
kCaptionAttributeData,
- pdfium::MakeUnique<CJX_Node>(this)) {}
+ cppgc::MakeGarbageCollected<CJX_Node>(
+ doc->GetHeap()->GetAllocationHandle(),
+ this)) {}
CXFA_Caption::~CXFA_Caption() = default;