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

Side by Side Diff: core/fpdfapi/fpdf_parser/cpdf_document.cpp

Issue 1805603002: core/include/fdpfapi cleanup Part I. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include "core/include/fpdfapi/cpdf_document.h" 7 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h"
8 8
9 #include <set> 9 #include <set>
10 10
11 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h"
12 #include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h"
13 #include "core/fpdfapi/fpdf_parser/include/cpdf_parser.h"
14 #include "core/fpdfapi/fpdf_parser/include/cpdf_reference.h"
11 #include "core/fpdfapi/fpdf_render/render_int.h" 15 #include "core/fpdfapi/fpdf_render/render_int.h"
12 #include "core/include/fpdfapi/cpdf_array.h" 16 #include "core/fpdfapi/include/cpdf_modulemgr.h"
13 #include "core/include/fpdfapi/cpdf_dictionary.h" 17 #include "core/fpdfapi/ipdf_rendermodule.h"
14 #include "core/include/fpdfapi/cpdf_parser.h"
15 #include "core/include/fpdfapi/cpdf_reference.h"
16 #include "core/include/fpdfapi/fpdf_module.h"
17 #include "core/include/fxge/fx_font.h" 18 #include "core/include/fxge/fx_font.h"
18 #include "third_party/base/stl_util.h" 19 #include "third_party/base/stl_util.h"
19 20
20 namespace { 21 namespace {
21 22
22 int CountPages(CPDF_Dictionary* pPages, 23 int CountPages(CPDF_Dictionary* pPages,
23 std::set<CPDF_Dictionary*>* visited_pages) { 24 std::set<CPDF_Dictionary*>* visited_pages) {
24 int count = pPages->GetIntegerBy("Count"); 25 int count = pPages->GetIntegerBy("Count");
25 if (count > 0 && count < FPDF_PAGE_MAX_NUM) { 26 if (count > 0 && count < FPDF_PAGE_MAX_NUM) {
26 return count; 27 return count;
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 } 346 }
346 347
347 void CPDF_Document::ClearRenderFont() { 348 void CPDF_Document::ClearRenderFont() {
348 if (!m_pDocRender) 349 if (!m_pDocRender)
349 return; 350 return;
350 351
351 CFX_FontCache* pCache = m_pDocRender->GetFontCache(); 352 CFX_FontCache* pCache = m_pDocRender->GetFontCache();
352 if (pCache) 353 if (pCache)
353 pCache->FreeCache(FALSE); 354 pCache->FreeCache(FALSE);
354 } 355 }
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_parser/cpdf_dictionary.cpp ('k') | core/fpdfapi/fpdf_parser/cpdf_hint_tables.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698