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

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

Issue 1841173002: Rename GetElementValue() to GetDirectObject{By,At}(). (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Use "At" for arrays. Created 4 years, 8 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 "core/fxcrt/include/fx_ext.h" 7 #include "core/fxcrt/include/fx_ext.h"
8 #include "xfa/fxfa/fm2js/xfa_fm2jsapi.h" 8 #include "xfa/fxfa/fm2js/xfa_fm2jsapi.h"
9 #include "xfa/fxfa/parser/xfa_basic_imp.h" 9 #include "xfa/fxfa/parser/xfa_basic_imp.h"
10 #include "xfa/fxfa/parser/xfa_docdata.h" 10 #include "xfa/fxfa/parser/xfa_docdata.h"
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 } 169 }
170 } 170 }
171 CXFA_Node* CXFA_Document::CreateNode(uint32_t dwPacket, XFA_ELEMENT eElement) { 171 CXFA_Node* CXFA_Document::CreateNode(uint32_t dwPacket, XFA_ELEMENT eElement) {
172 return CreateNode(XFA_GetPacketByID(dwPacket), eElement); 172 return CreateNode(XFA_GetPacketByID(dwPacket), eElement);
173 } 173 }
174 CXFA_Node* CXFA_Document::CreateNode(const XFA_PACKETINFO* pPacket, 174 CXFA_Node* CXFA_Document::CreateNode(const XFA_PACKETINFO* pPacket,
175 XFA_ELEMENT eElement) { 175 XFA_ELEMENT eElement) {
176 if (pPacket == NULL) { 176 if (pPacket == NULL) {
177 return NULL; 177 return NULL;
178 } 178 }
179 const XFA_ELEMENTINFO* pElement = XFA_GetElementByID(eElement); 179 const XFA_ELEMENTINFO* pElement = XFA_GetObjectByByID(eElement);
Tom Sepez 2016/03/29 20:58:13 reverted entire file.
180 if (pElement && (pElement->dwPackets & pPacket->eName)) { 180 if (pElement && (pElement->dwPackets & pPacket->eName)) {
181 CXFA_Node* pNode = new CXFA_Node(this, pPacket->eName, pElement->eName); 181 CXFA_Node* pNode = new CXFA_Node(this, pPacket->eName, pElement->eName);
182 if (pNode) { 182 if (pNode) {
183 AddPurgeNode(pNode); 183 AddPurgeNode(pNode);
184 } 184 }
185 return pNode; 185 return pNode;
186 } 186 }
187 return NULL; 187 return NULL;
188 } 188 }
189 void CXFA_Document::AddPurgeNode(CXFA_Node* pNode) { 189 void CXFA_Document::AddPurgeNode(CXFA_Node* pNode) {
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 pProtoNode)) { 432 pProtoNode)) {
433 continue; 433 continue;
434 } 434 }
435 } 435 }
436 if (!pProtoNode) { 436 if (!pProtoNode) {
437 continue; 437 continue;
438 } 438 }
439 XFA_ProtoMerge_MergeNode(this, pUseHrefNode, pProtoNode); 439 XFA_ProtoMerge_MergeNode(this, pUseHrefNode, pProtoNode);
440 } 440 }
441 } 441 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698