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

Unified Diff: xfa/fxfa/app/xfa_fontmgr.cpp

Issue 2334323005: Rename dictionary set and get methods (Closed)
Patch Set: Created 4 years, 3 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 | « xfa/fxfa/app/xfa_ffdoc.cpp ('k') | xfa/fxfa/fm2js/xfa_fm2jscontext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/fxfa/app/xfa_fontmgr.cpp
diff --git a/xfa/fxfa/app/xfa_fontmgr.cpp b/xfa/fxfa/app/xfa_fontmgr.cpp
index d191ce35373805f3095cd21fd8ba237a19ee429b..3a478038f648a2121e0d29a13870077811a12f4b 100644
--- a/xfa/fxfa/app/xfa_fontmgr.cpp
+++ b/xfa/fxfa/app/xfa_fontmgr.cpp
@@ -1838,11 +1838,11 @@ CFGAS_GEFont* CXFA_PDFFontMgr::FindFont(CFX_ByteString strPsName,
return nullptr;
}
CPDF_Dictionary* pFontSetDict =
- pDoc->GetRoot()->GetDictBy("AcroForm")->GetDictBy("DR");
+ pDoc->GetRoot()->GetDictFor("AcroForm")->GetDictFor("DR");
if (!pFontSetDict) {
return nullptr;
}
- pFontSetDict = pFontSetDict->GetDictBy("Font");
+ pFontSetDict = pFontSetDict->GetDictFor("Font");
if (!pFontSetDict) {
return nullptr;
}
@@ -1856,7 +1856,7 @@ CFGAS_GEFont* CXFA_PDFFontMgr::FindFont(CFX_ByteString strPsName,
continue;
}
CPDF_Dictionary* pFontDict = ToDictionary(pObj->GetDirect());
- if (!pFontDict || pFontDict->GetStringBy("Type") != "Font") {
+ if (!pFontDict || pFontDict->GetStringFor("Type") != "Font") {
return nullptr;
}
CPDF_Font* pPDFFont = pDoc->LoadFont(pFontDict);
« no previous file with comments | « xfa/fxfa/app/xfa_ffdoc.cpp ('k') | xfa/fxfa/fm2js/xfa_fm2jscontext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698