diff options
author | dsinclair <dsinclair@chromium.org> | 2016-07-19 10:27:12 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-07-19 10:27:12 -0700 |
commit | eea31b75a11215aa72a9845d47c38d2ce1edd4f7 (patch) | |
tree | f6ef06a0c323a0a842981da595144fc8d2085d86 /xfa/fxfa/parser/xfa_document_datamerger_imp.cpp | |
parent | 3617751cea45fd636d58f535a662337fcea40c4a (diff) | |
download | pdfium-eea31b75a11215aa72a9845d47c38d2ce1edd4f7.tar.xz |
Cleanup CXFA_Documentchromium/2803chromium/2802
Removing unused XFA_LAYOUTRESULT, cleanup unused parameters, convert XFA_DocFlag
to an enum from defines and make the constructor explicit.
Review-Url: https://codereview.chromium.org/2166433002
Diffstat (limited to 'xfa/fxfa/parser/xfa_document_datamerger_imp.cpp')
-rw-r--r-- | xfa/fxfa/parser/xfa_document_datamerger_imp.cpp | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/xfa/fxfa/parser/xfa_document_datamerger_imp.cpp b/xfa/fxfa/parser/xfa_document_datamerger_imp.cpp index 55718e2c88..06bd0dc557 100644 --- a/xfa/fxfa/parser/xfa_document_datamerger_imp.cpp +++ b/xfa/fxfa/parser/xfa_document_datamerger_imp.cpp @@ -855,7 +855,8 @@ CXFA_Node* CopyContainer_SubformSet(CXFA_Document* pDocument, ASSERT(rgItemMatchList.GetSize()); SortRecurseRecord(rgItemMatchList, pDataScope, TRUE); pDocument->DataMerge_CopyContainer( - rgItemMatchList[0].pTemplateChild, pSubformSetNode, pDataScope); + rgItemMatchList[0].pTemplateChild, pSubformSetNode, pDataScope, + FALSE, TRUE, TRUE); break; } case XFA_ATTRIBUTEENUM_Unordered: { @@ -865,13 +866,14 @@ CXFA_Node* CopyContainer_SubformSet(CXFA_Document* pDocument, i++) { pDocument->DataMerge_CopyContainer( rgItemMatchList[i].pTemplateChild, pSubformSetNode, - pDataScope); + pDataScope, FALSE, TRUE, TRUE); } } for (int32_t i = 0, count = rgItemUnmatchList.GetSize(); i < count; i++) { pDocument->DataMerge_CopyContainer(rgItemUnmatchList[i], - pSubformSetNode, pDataScope); + pSubformSetNode, pDataScope, + FALSE, TRUE, TRUE); } break; } @@ -894,7 +896,7 @@ CXFA_Node* CopyContainer_SubformSet(CXFA_Document* pDocument, pTemplateChild, TRUE, nullptr); } else if (pTemplateChild->IsContainerNode()) { pDocument->DataMerge_CopyContainer(pTemplateChild, pSubformSetNode, - pDataScope); + pDataScope, FALSE, TRUE, TRUE); } } } @@ -935,7 +937,7 @@ CXFA_Node* CopyContainer_SubformSet(CXFA_Document* pDocument, pTemplateChild, TRUE, nullptr); } else if (pTemplateChild->IsContainerNode()) { pDocument->DataMerge_CopyContainer(pTemplateChild, pSubformNode, - pDataScope); + pDataScope, FALSE, TRUE, TRUE); } } } @@ -963,7 +965,7 @@ CXFA_Node* CopyContainer_SubformSet(CXFA_Document* pDocument, continue; pDocument->DataMerge_CopyContainer(pTemplateChild, pSubformSetNode, - pDataScope, FALSE, bDataMerge); + pDataScope, FALSE, bDataMerge, TRUE); bFound = TRUE; } } @@ -1470,7 +1472,8 @@ void CXFA_Document::DoDataMerge() { XFA_NodeMerge_CloneOrMergeContainer(this, pSubformSetNode, pTemplateChild, TRUE, nullptr); } else if (pTemplateChild->IsContainerNode()) { - DataMerge_CopyContainer(pTemplateChild, pSubformSetNode, pDataTopLevel); + DataMerge_CopyContainer(pTemplateChild, pSubformSetNode, pDataTopLevel, + FALSE, TRUE, TRUE); } } if (pDDRoot) |