diff options
author | Wei Li <weili@chromium.org> | 2016-03-01 16:29:41 -0800 |
---|---|---|
committer | Wei Li <weili@chromium.org> | 2016-03-01 16:29:41 -0800 |
commit | 0fc6b25e738c311fd66aa9da8c56de50af5644d5 (patch) | |
tree | e148556274b450ae125e2821debebb472f1ba8ee /core/src/fpdfdoc/doc_utils.cpp | |
parent | 738b08ce6b9f80d93b815411b47c2b11c2f090f6 (diff) | |
download | pdfium-0fc6b25e738c311fd66aa9da8c56de50af5644d5.tar.xz |
Remove implicit conversions and some cleanup
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1751753002 .
Diffstat (limited to 'core/src/fpdfdoc/doc_utils.cpp')
-rw-r--r-- | core/src/fpdfdoc/doc_utils.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/fpdfdoc/doc_utils.cpp b/core/src/fpdfdoc/doc_utils.cpp index db5db4ee89..67a9324251 100644 --- a/core/src/fpdfdoc/doc_utils.cpp +++ b/core/src/fpdfdoc/doc_utils.cpp @@ -615,17 +615,19 @@ void RemoveInterFormFont(CPDF_Dictionary* pFormDict, CFX_ByteString csNameTag) { } pFonts->RemoveAt(csNameTag); } + CPDF_Font* GetDefaultInterFormFont(CPDF_Dictionary* pFormDict, CPDF_Document* pDocument) { if (!pFormDict) { return NULL; } - CPDF_DefaultAppearance cDA = pFormDict->GetStringBy("DA"); + CPDF_DefaultAppearance cDA(pFormDict->GetStringBy("DA")); CFX_ByteString csFontNameTag; FX_FLOAT fFontSize; cDA.GetFont(csFontNameTag, fFontSize); return GetInterFormFont(pFormDict, pDocument, csFontNameTag); } + CPDF_IconFit::ScaleMethod CPDF_IconFit::GetScaleMethod() { if (!m_pDict) { return Always; |