Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: xfa/fxfa/parser/cxfa_node.cpp

Issue 2443723002: Rename IFX_ stream names (Closed)
Patch Set: Nits Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fxfa/parser/cxfa_document_parser.cpp ('k') | xfa/fxfa/parser/cxfa_simple_parser.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include "xfa/fxfa/parser/xfa_object.h" 7 #include "xfa/fxfa/parser/xfa_object.h"
8 8
9 #include <map> 9 #include <map>
10 #include <memory> 10 #include <memory>
(...skipping 1426 matching lines...) Expand 10 before | Expand all | Expand 10 after
1437 if (!pElement || pElement->GetType() != FDE_XMLNODE_Element) { 1437 if (!pElement || pElement->GetType() != FDE_XMLNODE_Element) {
1438 pArguments->GetReturnValue()->SetString(bsXMLHeader); 1438 pArguments->GetReturnValue()->SetString(bsXMLHeader);
1439 return; 1439 return;
1440 } 1440 }
1441 XFA_DataExporter_DealWithDataGroupNode(this); 1441 XFA_DataExporter_DealWithDataGroupNode(this);
1442 } 1442 }
1443 std::unique_ptr<IFX_MemoryStream, ReleaseDeleter<IFX_MemoryStream>> 1443 std::unique_ptr<IFX_MemoryStream, ReleaseDeleter<IFX_MemoryStream>>
1444 pMemoryStream(FX_CreateMemoryStream(TRUE)); 1444 pMemoryStream(FX_CreateMemoryStream(TRUE));
1445 std::unique_ptr<IFX_Stream, ReleaseDeleter<IFX_Stream>> pStream( 1445 std::unique_ptr<IFX_Stream, ReleaseDeleter<IFX_Stream>> pStream(
1446 IFX_Stream::CreateStream( 1446 IFX_Stream::CreateStream(
1447 static_cast<IFX_FileWrite*>(pMemoryStream.get()), 1447 static_cast<IFX_SeekableWriteStream*>(pMemoryStream.get()),
1448 FX_STREAMACCESS_Text | FX_STREAMACCESS_Write | 1448 FX_STREAMACCESS_Text | FX_STREAMACCESS_Write |
1449 FX_STREAMACCESS_Append)); 1449 FX_STREAMACCESS_Append));
1450 if (!pStream) { 1450 if (!pStream) {
1451 pArguments->GetReturnValue()->SetString(bsXMLHeader); 1451 pArguments->GetReturnValue()->SetString(bsXMLHeader);
1452 return; 1452 return;
1453 } 1453 }
1454 pStream->SetCodePage(FX_CODEPAGE_UTF8); 1454 pStream->SetCodePage(FX_CODEPAGE_UTF8);
1455 pStream->WriteData(bsXMLHeader.raw_str(), bsXMLHeader.GetLength()); 1455 pStream->WriteData(bsXMLHeader.raw_str(), bsXMLHeader.GetLength());
1456 if (GetPacketID() == XFA_XDPPACKET_Form) 1456 if (GetPacketID() == XFA_XDPPACKET_Form)
1457 XFA_DataExporter_RegenerateFormFile(this, pStream.get(), nullptr, TRUE); 1457 XFA_DataExporter_RegenerateFormFile(this, pStream.get(), nullptr, TRUE);
(...skipping 3727 matching lines...) Expand 10 before | Expand all | Expand 10 after
5185 CXFA_Node* pSrcChild = pSrcModule->GetNodeItem(XFA_NODEITEM_FirstChild); 5185 CXFA_Node* pSrcChild = pSrcModule->GetNodeItem(XFA_NODEITEM_FirstChild);
5186 CXFA_Node* pDstChild = pDstModule->GetNodeItem(XFA_NODEITEM_FirstChild); 5186 CXFA_Node* pDstChild = pDstModule->GetNodeItem(XFA_NODEITEM_FirstChild);
5187 for (; pSrcChild && pDstChild; 5187 for (; pSrcChild && pDstChild;
5188 pSrcChild = pSrcChild->GetNodeItem(XFA_NODEITEM_NextSibling), 5188 pSrcChild = pSrcChild->GetNodeItem(XFA_NODEITEM_NextSibling),
5189 pDstChild = pDstChild->GetNodeItem(XFA_NODEITEM_NextSibling)) { 5189 pDstChild = pDstChild->GetNodeItem(XFA_NODEITEM_NextSibling)) {
5190 MoveBufferMapData(pSrcChild, pDstChild, pKey, TRUE); 5190 MoveBufferMapData(pSrcChild, pDstChild, pKey, TRUE);
5191 } 5191 }
5192 } 5192 }
5193 pSrcModule->MoveBufferMapData(pDstModule, pKey); 5193 pSrcModule->MoveBufferMapData(pDstModule, pKey);
5194 } 5194 }
OLDNEW
« no previous file with comments | « xfa/fxfa/parser/cxfa_document_parser.cpp ('k') | xfa/fxfa/parser/cxfa_simple_parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698