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

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

Issue 1830323006: Remove FX_DWORD from XFA. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 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_basic_imp.cpp ('k') | xfa/fxfa/parser/xfa_document_datamerger_imp.cpp » ('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/fm2js/xfa_fm2jsapi.h" 7 #include "xfa/fxfa/fm2js/xfa_fm2jsapi.h"
8 #include "xfa/fxfa/parser/xfa_docdata.h" 8 #include "xfa/fxfa/parser/xfa_docdata.h"
9 #include "xfa/fxfa/parser/xfa_doclayout.h" 9 #include "xfa/fxfa/parser/xfa_doclayout.h"
10 #include "xfa/fxfa/parser/xfa_document.h" 10 #include "xfa/fxfa/parser/xfa_document.h"
(...skipping 16 matching lines...) Expand all
27 static inline CXFA_Node* GetParent(CXFA_Node* pDDGroupNode) { 27 static inline CXFA_Node* GetParent(CXFA_Node* pDDGroupNode) {
28 return pDDGroupNode->GetNodeItem(XFA_NODEITEM_Parent); 28 return pDDGroupNode->GetNodeItem(XFA_NODEITEM_Parent);
29 } 29 }
30 }; 30 };
31 void XFA_DataDescription_UpdateDataRelation(CXFA_Node* pDataNode, 31 void XFA_DataDescription_UpdateDataRelation(CXFA_Node* pDataNode,
32 CXFA_Node* pDataDescriptionNode) { 32 CXFA_Node* pDataDescriptionNode) {
33 FXSYS_assert(pDataDescriptionNode); 33 FXSYS_assert(pDataDescriptionNode);
34 for (CXFA_Node* pDataChild = pDataNode->GetNodeItem(XFA_NODEITEM_FirstChild); 34 for (CXFA_Node* pDataChild = pDataNode->GetNodeItem(XFA_NODEITEM_FirstChild);
35 pDataChild; 35 pDataChild;
36 pDataChild = pDataChild->GetNodeItem(XFA_NODEITEM_NextSibling)) { 36 pDataChild = pDataChild->GetNodeItem(XFA_NODEITEM_NextSibling)) {
37 FX_DWORD dwNameHash = pDataChild->GetNameHash(); 37 uint32_t dwNameHash = pDataChild->GetNameHash();
38 XFA_ELEMENT eType = pDataChild->GetClassID(); 38 XFA_ELEMENT eType = pDataChild->GetClassID();
39 if (!dwNameHash) { 39 if (!dwNameHash) {
40 continue; 40 continue;
41 } 41 }
42 CXFA_NodeIteratorTemplate<CXFA_Node, CXFA_TraverseStrategy_DDGroup> 42 CXFA_NodeIteratorTemplate<CXFA_Node, CXFA_TraverseStrategy_DDGroup>
43 sIterator(pDataDescriptionNode); 43 sIterator(pDataDescriptionNode);
44 for (CXFA_Node* pDDGroupNode = sIterator.GetCurrent(); pDDGroupNode; 44 for (CXFA_Node* pDDGroupNode = sIterator.GetCurrent(); pDDGroupNode;
45 pDDGroupNode = sIterator.MoveToNext()) { 45 pDDGroupNode = sIterator.MoveToNext()) {
46 if (pDDGroupNode != pDataDescriptionNode) { 46 if (pDDGroupNode != pDataDescriptionNode) {
47 if (pDDGroupNode->GetClassID() != XFA_ELEMENT_DataGroup) { 47 if (pDDGroupNode->GetClassID() != XFA_ELEMENT_DataGroup) {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 pDataNode->SetEnum(XFA_ATTRIBUTE_Contains, XFA_ATTRIBUTEENUM_MetaData); 117 pDataNode->SetEnum(XFA_ATTRIBUTE_Contains, XFA_ATTRIBUTEENUM_MetaData);
118 } 118 }
119 pDataParent->InsertChild(pDataNode); 119 pDataParent->InsertChild(pDataNode);
120 pDataNode->SetDataDescriptionNode(pDDNode); 120 pDataNode->SetDataDescriptionNode(pDDNode);
121 pDataNode->SetFlag(XFA_NODEFLAG_Initialized, TRUE, FALSE); 121 pDataNode->SetFlag(XFA_NODEFLAG_Initialized, TRUE, FALSE);
122 return pDataNode; 122 return pDataNode;
123 } 123 }
124 return NULL; 124 return NULL;
125 } 125 }
126 } 126 }
OLDNEW
« no previous file with comments | « xfa/fxfa/parser/xfa_basic_imp.cpp ('k') | xfa/fxfa/parser/xfa_document_datamerger_imp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698