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

Unified Diff: xfa/src/fxfa/src/app/xfa_ffdoc.cpp

Issue 1648233002: Merge to XFA: Member function name refactoring (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: more xfa changes Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « fpdfsdk/src/pdfwindow/PWL_Icon.cpp ('k') | xfa/src/fxfa/src/app/xfa_fontmgr.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/src/fxfa/src/app/xfa_ffdoc.cpp
diff --git a/xfa/src/fxfa/src/app/xfa_ffdoc.cpp b/xfa/src/fxfa/src/app/xfa_ffdoc.cpp
index 9e232f1017dd93d301d62f932bec61d85de3bb0a..38901dde8aee60dd98946be8551a055ae29bcc42 100644
--- a/xfa/src/fxfa/src/app/xfa_ffdoc.cpp
+++ b/xfa/src/fxfa/src/app/xfa_ffdoc.cpp
@@ -225,7 +225,7 @@ FX_BOOL CXFA_FFDoc::OpenDoc(CPDF_Document* pPDFDoc) {
if (pRoot == NULL) {
return FALSE;
}
- CPDF_Dictionary* pAcroForm = pRoot->GetDict("AcroForm");
+ CPDF_Dictionary* pAcroForm = pRoot->GetDictBy("AcroForm");
if (pAcroForm == NULL) {
return FALSE;
}
@@ -238,7 +238,7 @@ FX_BOOL CXFA_FFDoc::OpenDoc(CPDF_Document* pPDFDoc) {
CPDF_Array* pXFAArray = (CPDF_Array*)pElementXFA;
FX_DWORD count = pXFAArray->GetCount() / 2;
for (FX_DWORD i = 0; i < count; i++) {
- CPDF_Stream* pStream = pXFAArray->GetStream(i * 2 + 1);
+ CPDF_Stream* pStream = pXFAArray->GetStreamAt(i * 2 + 1);
if (pStream != NULL) {
xfaStreams.Add(pStream);
}
@@ -334,11 +334,11 @@ CFX_DIBitmap* CXFA_FFDoc::GetPDFNamedImage(const CFX_WideStringC& wsName,
if (pRoot == NULL) {
return NULL;
}
- CPDF_Dictionary* pNames = pRoot->GetDict("Names");
+ CPDF_Dictionary* pNames = pRoot->GetDictBy("Names");
if (!pNames) {
return NULL;
}
- CPDF_Dictionary* pXFAImages = pNames->GetDict("XFAImages");
+ CPDF_Dictionary* pXFAImages = pNames->GetDictBy("XFAImages");
if (!pXFAImages) {
return NULL;
}
« no previous file with comments | « fpdfsdk/src/pdfwindow/PWL_Icon.cpp ('k') | xfa/src/fxfa/src/app/xfa_fontmgr.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698