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

Side by Side Diff: xfa/src/fxfa/src/parser/xfa_document_datamerger_imp.cpp

Issue 1409323003: XFA: Remove cond ? TRUE : FALSE. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: address comments Created 5 years, 2 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 "../../../foxitlib.h" 7 #include "../../../foxitlib.h"
8 #include "../common/xfa_utils.h" 8 #include "../common/xfa_utils.h"
9 #include "../common/xfa_object.h" 9 #include "../common/xfa_object.h"
10 #include "../common/xfa_document.h" 10 #include "../common/xfa_document.h"
(...skipping 1183 matching lines...) Expand 10 before | Expand all | Expand 10 after
1194 XFA_RESOLVENODE_Children | XFA_RESOLVENODE_CreateNode; 1194 XFA_RESOLVENODE_Children | XFA_RESOLVENODE_CreateNode;
1195 XFA_RESOLVENODE_RS rs; 1195 XFA_RESOLVENODE_RS rs;
1196 pDocument->GetScriptContext()->ResolveObjects(pDataScope, wsRef, rs, 1196 pDocument->GetScriptContext()->ResolveObjects(pDataScope, wsRef, rs,
1197 dFlags, pTemplateNode); 1197 dFlags, pTemplateNode);
1198 CXFA_Object* pObject = (rs.nodes.GetSize() > 0) ? rs.nodes[0] : NULL; 1198 CXFA_Object* pObject = (rs.nodes.GetSize() > 0) ? rs.nodes[0] : NULL;
1199 pDataNode = 1199 pDataNode =
1200 (pObject && pObject->IsNode()) ? (CXFA_Node*)pObject : NULL; 1200 (pObject && pObject->IsNode()) ? (CXFA_Node*)pObject : NULL;
1201 if (pDataNode) { 1201 if (pDataNode) {
1202 XFA_DataMerge_CreateDataBinding( 1202 XFA_DataMerge_CreateDataBinding(
1203 pFormNode, pDataNode, 1203 pFormNode, pDataNode,
1204 rs.dwFlags == XFA_RESOVENODE_RSTYPE_ExistNodes ? TRUE : FALSE); 1204 rs.dwFlags == XFA_RESOVENODE_RSTYPE_ExistNodes);
1205 } else { 1205 } else {
1206 XFA_DataMerge_FormValueNode_MatchNoneCreateChild(pFormNode); 1206 XFA_DataMerge_FormValueNode_MatchNoneCreateChild(pFormNode);
1207 } 1207 }
1208 } 1208 }
1209 } break; 1209 } break;
1210 default: 1210 default:
1211 break; 1211 break;
1212 } 1212 }
1213 } 1213 }
1214 if (bMatchRef && 1214 if (bMatchRef &&
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
1548 } 1548 }
1549 pFormRoot->SetObject(XFA_ATTRIBUTE_BindingNode, NULL); 1549 pFormRoot->SetObject(XFA_ATTRIBUTE_BindingNode, NULL);
1550 } 1550 }
1551 XFA_DataMerge_ClearGlobalBinding(this); 1551 XFA_DataMerge_ClearGlobalBinding(this);
1552 if (bDoDataMerge) { 1552 if (bDoDataMerge) {
1553 DoDataMerge(); 1553 DoDataMerge();
1554 } 1554 }
1555 CXFA_LayoutProcessor* pLayoutProcessor = GetLayoutProcessor(); 1555 CXFA_LayoutProcessor* pLayoutProcessor = GetLayoutProcessor();
1556 pLayoutProcessor->SetForceReLayout(TRUE); 1556 pLayoutProcessor->SetForceReLayout(TRUE);
1557 } 1557 }
OLDNEW
« no previous file with comments | « xfa/src/fwl/src/core/fwl_formimp.cpp ('k') | xfa/src/fxfa/src/parser/xfa_layout_pagemgr_new.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698