diff options
author | Wei Li <weili@chromium.org> | 2016-02-16 14:26:22 -0800 |
---|---|---|
committer | Wei Li <weili@chromium.org> | 2016-02-16 14:26:22 -0800 |
commit | 970c11e2225d73234009ccdc6f656abd01ae4026 (patch) | |
tree | c184a4d3b62785ee5431cc2c6d7199103b78986f /core/src/fpdfdoc/doc_formfield.cpp | |
parent | 4f7f4eea92b607ca3864df63e4b277abd5e5af97 (diff) | |
download | pdfium-970c11e2225d73234009ccdc6f656abd01ae4026.tar.xz |
Refactor CPDF_SimpleParser and add unit tests.
Remove unused member functions and simplify calls to find tag parameters.
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1681403007 .
Diffstat (limited to 'core/src/fpdfdoc/doc_formfield.cpp')
-rw-r--r-- | core/src/fpdfdoc/doc_formfield.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/fpdfdoc/doc_formfield.cpp b/core/src/fpdfdoc/doc_formfield.cpp index 31557b490d..274459aec0 100644 --- a/core/src/fpdfdoc/doc_formfield.cpp +++ b/core/src/fpdfdoc/doc_formfield.cpp @@ -1075,7 +1075,7 @@ void CPDF_FormField::LoadDA() { return; } CPDF_SimpleParser syntax(DA); - syntax.FindTagParam("Tf", 2); + syntax.FindTagParamFromStart("Tf", 2); CFX_ByteString font_name = syntax.GetWord(); CPDF_Dictionary* pFontDict = NULL; if (m_pForm->m_pFormDict && m_pForm->m_pFormDict->GetDictBy("DR") && |