diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2018-01-03 16:58:06 -0500 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-01-04 14:48:52 +0000 |
commit | 4cf0589c4bc388781cbfc8459c4904bb2bd947bf (patch) | |
tree | 5bc9da1f2abffbbf9ec91271f7765983e65d1c0d /xfa/fxfa/parser/cxfa_exdata.cpp | |
parent | e83a915ebd3afaa897dbbf3e6cb3d2a2cb198595 (diff) | |
download | pdfium-4cf0589c4bc388781cbfc8459c4904bb2bd947bf.tar.xz |
Fold CXFA_ExDataData into CXFA_ExData
This CL removes the CXFA_ExDataData wrapper and puts the code in
CXFA_ExData directly.
Change-Id: I9406d615a09fb431b5c620ed348f9976cf8dc72a
Reviewed-on: https://pdfium-review.googlesource.com/22230
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_exdata.cpp')
-rw-r--r-- | xfa/fxfa/parser/cxfa_exdata.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xfa/fxfa/parser/cxfa_exdata.cpp b/xfa/fxfa/parser/cxfa_exdata.cpp index 2c4571d101..cf57796ccc 100644 --- a/xfa/fxfa/parser/cxfa_exdata.cpp +++ b/xfa/fxfa/parser/cxfa_exdata.cpp @@ -40,3 +40,7 @@ CXFA_ExData::CXFA_ExData(CXFA_Document* doc, XFA_PacketType packet) pdfium::MakeUnique<CJX_ExData>(this)) {} CXFA_ExData::~CXFA_ExData() {} + +void CXFA_ExData::SetContentType(const WideString& wsContentType) { + JSObject()->SetCData(XFA_Attribute::ContentType, wsContentType, false, false); +} |