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

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

Issue 2082343003: Remove CXFA_OrdinaryObject class (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa_part_II
Patch Set: Created 4 years, 6 months 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/xfa_object.h ('k') | xfa/fxfa/parser/xfa_script_datawindow.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 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 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 <memory> 9 #include <memory>
10 10
(...skipping 5064 matching lines...) Expand 10 before | Expand all | Expand 10 after
5075 CXFA_Node* pDstChild = pDstModule->GetNodeItem(XFA_NODEITEM_FirstChild); 5075 CXFA_Node* pDstChild = pDstModule->GetNodeItem(XFA_NODEITEM_FirstChild);
5076 for (; pSrcChild && pDstChild; 5076 for (; pSrcChild && pDstChild;
5077 pSrcChild = pSrcChild->GetNodeItem(XFA_NODEITEM_NextSibling), 5077 pSrcChild = pSrcChild->GetNodeItem(XFA_NODEITEM_NextSibling),
5078 pDstChild = pDstChild->GetNodeItem(XFA_NODEITEM_NextSibling)) { 5078 pDstChild = pDstChild->GetNodeItem(XFA_NODEITEM_NextSibling)) {
5079 MoveBufferMapData(pSrcChild, pDstChild, pKey, TRUE); 5079 MoveBufferMapData(pSrcChild, pDstChild, pKey, TRUE);
5080 } 5080 }
5081 } 5081 }
5082 pSrcModule->MoveBufferMapData(pDstModule, pKey); 5082 pSrcModule->MoveBufferMapData(pDstModule, pKey);
5083 } 5083 }
5084 5084
5085 CXFA_OrdinaryObject::CXFA_OrdinaryObject(CXFA_Document* pDocument,
5086 XFA_Element eElement)
5087 : CXFA_Object(pDocument, XFA_ObjectType::OrdinaryObject, eElement) {}
5088
5089 CXFA_OrdinaryObject::~CXFA_OrdinaryObject() {}
5090
5091 CXFA_ThisProxy::CXFA_ThisProxy(CXFA_Node* pThisNode, CXFA_Node* pScriptNode) 5085 CXFA_ThisProxy::CXFA_ThisProxy(CXFA_Node* pThisNode, CXFA_Node* pScriptNode)
5092 : CXFA_Object(pThisNode->GetDocument(), 5086 : CXFA_Object(pThisNode->GetDocument(),
5093 XFA_ObjectType::VariablesThis, 5087 XFA_ObjectType::VariablesThis,
5094 XFA_Element::Unknown), 5088 XFA_Element::Unknown),
5095 m_pThisNode(NULL), 5089 m_pThisNode(NULL),
5096 m_pScriptNode(NULL) { 5090 m_pScriptNode(NULL) {
5097 m_pThisNode = pThisNode; 5091 m_pThisNode = pThisNode;
5098 m_pScriptNode = pScriptNode; 5092 m_pScriptNode = pScriptNode;
5099 } 5093 }
5100 5094
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
5280 return m_pAttachNode->InsertChild(pNewNode, pBeforeNode); 5274 return m_pAttachNode->InsertChild(pNewNode, pBeforeNode);
5281 } 5275 }
5282 FX_BOOL CXFA_AttachNodeList::Remove(CXFA_Node* pNode) { 5276 FX_BOOL CXFA_AttachNodeList::Remove(CXFA_Node* pNode) {
5283 return m_pAttachNode->RemoveChild(pNode); 5277 return m_pAttachNode->RemoveChild(pNode);
5284 } 5278 }
5285 CXFA_Node* CXFA_AttachNodeList::Item(int32_t iIndex) { 5279 CXFA_Node* CXFA_AttachNodeList::Item(int32_t iIndex) {
5286 return m_pAttachNode->GetChild( 5280 return m_pAttachNode->GetChild(
5287 iIndex, XFA_Element::Unknown, 5281 iIndex, XFA_Element::Unknown,
5288 m_pAttachNode->GetElementType() == XFA_Element::Subform); 5282 m_pAttachNode->GetElementType() == XFA_Element::Subform);
5289 } 5283 }
OLDNEW
« no previous file with comments | « xfa/fxfa/parser/xfa_object.h ('k') | xfa/fxfa/parser/xfa_script_datawindow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698