summaryrefslogtreecommitdiff
path: root/fxjs/xfa
diff options
context:
space:
mode:
authordan sinclair <dsinclair@chromium.org>2018-04-17 18:23:28 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-04-17 18:23:28 +0000
commitffdae5fceb4e0b37bc649d99d12c15ccd6ae1b9e (patch)
tree3a719c2bf12bf2b16f473db9e739e9de15e5fafe /fxjs/xfa
parentbc069b7a855998ab28f487d2f09152851dddb16a (diff)
downloadpdfium-ffdae5fceb4e0b37bc649d99d12c15ccd6ae1b9e.tar.xz
Use IFX_SeekableStream in xfa_utils
This CL converts xfa_utils to use an IFX_SeekableStream instead of a CFX_SeekableStreamProxy. Change-Id: I824b477351ac29d54118df2f3c5442c503aa3671 Reviewed-on: https://pdfium-review.googlesource.com/30852 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxjs/xfa')
-rw-r--r--fxjs/xfa/cjx_node.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/fxjs/xfa/cjx_node.cpp b/fxjs/xfa/cjx_node.cpp
index dc4cd30132..44a5a1a42c 100644
--- a/fxjs/xfa/cjx_node.cpp
+++ b/fxjs/xfa/cjx_node.cpp
@@ -352,10 +352,7 @@ CJS_Return CJX_Node::saveXML(CFX_V8* runtime,
pMemoryStream->WriteString(bsXMLHeader.AsStringView());
if (GetXFANode()->GetPacketType() == XFA_PacketType::Form) {
- auto proxy =
- pdfium::MakeRetain<CFX_SeekableStreamProxy>(pMemoryStream, true);
- proxy->SetCodePage(FX_CODEPAGE_UTF8);
- XFA_DataExporter_RegenerateFormFile(GetXFANode(), proxy, true);
+ XFA_DataExporter_RegenerateFormFile(GetXFANode(), pMemoryStream, true);
} else {
pElement->Save(pMemoryStream);
}