Remove unneeded checks in CPDF_DocPageData::GetFontFileStreamAcc().
authorLei Zhang <thestig@chromium.org>
Sat, 13 Jun 2015 02:14:11 +0000 (19:14 -0700)
committerLei Zhang <thestig@chromium.org>
Sat, 13 Jun 2015 02:14:11 +0000 (19:14 -0700)
commit1972b16849fedfda675eacd5c8594b54dbd1264d
tree114ce0930a4af4cf5d861b5e84f0d9d7168ec935
parent3218fffe6f92b62d05ab5c2d1c78285a0a0f0647
Remove unneeded checks in CPDF_DocPageData::GetFontFileStreamAcc().

The input cannot be null. Same for CPDF_Document::LoadFontFile().

Also set the contract for CPDF_Document::LoadFont() and adjust callers
accordingly.

Also remove unused CPDF_Document::FindFont().

R=tsepez@chromium.org

Review URL: https://codereview.chromium.org/1184673002.
core/include/fpdfapi/fpdf_parser.h
core/src/fpdfapi/fpdf_page/fpdf_page_doc.cpp
core/src/fpdfdoc/doc_formcontrol.cpp
fpdfsdk/src/formfiller/FFL_CBA_Fontmap.cpp