diff options
author | Lei Zhang <thestig@chromium.org> | 2018-09-17 17:11:54 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-09-17 17:11:54 +0000 |
commit | 35d3d550157a31eeaa6ec8bcd8b62233d1584acb (patch) | |
tree | a56fdb7e4e82d547afb5a3e9a663e87aad8ec63a /core/fpdfapi/page | |
parent | 8071fc75da163ed66e5e3b5fa6e7869a63bfb8a7 (diff) | |
download | pdfium-35d3d550157a31eeaa6ec8bcd8b62233d1584acb.tar.xz |
Encapsulate CPDF_StreamAcc::LoadAllData().
Make it a private method, and add public methods so only limited
combinations of LoadAllData() arguments are possible.
Change-Id: I8c2220eb0e95012350858876586f7c470c40a7c3
Reviewed-on: https://pdfium-review.googlesource.com/42590
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fpdfapi/page')
-rw-r--r-- | core/fpdfapi/page/cpdf_docpagedata.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fpdfapi/page/cpdf_docpagedata.cpp b/core/fpdfapi/page/cpdf_docpagedata.cpp index 6744e0f6a7..9ee8d588e4 100644 --- a/core/fpdfapi/page/cpdf_docpagedata.cpp +++ b/core/fpdfapi/page/cpdf_docpagedata.cpp @@ -470,7 +470,7 @@ RetainPtr<CPDF_StreamAcc> CPDF_DocPageData::GetFontFileStreamAcc( org_size = std::max(org_size, 0); auto pFontAcc = pdfium::MakeRetain<CPDF_StreamAcc>(pFontStream); - pFontAcc->LoadAllData(false, org_size, false); + pFontAcc->LoadAllDataFilteredWithEstimatedSize(org_size); m_FontFileMap[pFontStream] = pFontAcc; return pFontAcc; } |