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

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

Issue 2123133004: Remove IXFA_Parser, cleanup XFA parser code. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 5 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
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_doclayout.h" 7 #include "xfa/fxfa/parser/xfa_doclayout.h"
8 #include "xfa/fxfa/parser/xfa_document.h" 8 #include "xfa/fxfa/parser/xfa_document.h"
9 #include "xfa/fxfa/parser/xfa_localemgr.h" 9 #include "xfa/fxfa/parser/xfa_localemgr.h"
10 #include "xfa/fxfa/parser/xfa_object.h" 10 #include "xfa/fxfa/parser/xfa_object.h"
11 #include "xfa/fxfa/parser/xfa_parser.h"
12 #include "xfa/fxfa/parser/xfa_script.h" 11 #include "xfa/fxfa/parser/xfa_script.h"
13 #include "xfa/fxfa/parser/xfa_utils.h" 12 #include "xfa/fxfa/parser/xfa_utils.h"
14 13
15 class CXFA_TraverseStrategy_DDGroup { 14 class CXFA_TraverseStrategy_DDGroup {
16 public: 15 public:
17 static inline CXFA_Node* GetFirstChild(CXFA_Node* pDDGroupNode) { 16 static inline CXFA_Node* GetFirstChild(CXFA_Node* pDDGroupNode) {
18 return pDDGroupNode->GetFirstChildByName(XFA_HASHCODE_Group); 17 return pDDGroupNode->GetFirstChildByName(XFA_HASHCODE_Group);
19 } 18 }
20 static inline CXFA_Node* GetNextSibling(CXFA_Node* pDDGroupNode) { 19 static inline CXFA_Node* GetNextSibling(CXFA_Node* pDDGroupNode) {
21 return pDDGroupNode->GetNextSameNameSibling(XFA_HASHCODE_Group); 20 return pDDGroupNode->GetNextSameNameSibling(XFA_HASHCODE_Group);
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 pDataNode->SetEnum(XFA_ATTRIBUTE_Contains, XFA_ATTRIBUTEENUM_MetaData); 111 pDataNode->SetEnum(XFA_ATTRIBUTE_Contains, XFA_ATTRIBUTEENUM_MetaData);
113 } 112 }
114 pDataParent->InsertChild(pDataNode); 113 pDataParent->InsertChild(pDataNode);
115 pDataNode->SetDataDescriptionNode(pDDNode); 114 pDataNode->SetDataDescriptionNode(pDDNode);
116 pDataNode->SetFlag(XFA_NodeFlag_Initialized, false); 115 pDataNode->SetFlag(XFA_NodeFlag_Initialized, false);
117 return pDataNode; 116 return pDataNode;
118 } 117 }
119 return nullptr; 118 return nullptr;
120 } 119 }
121 } 120 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698