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

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

Issue 1778173002: Split apart the remainder of fpdf_render_render.cpp into per-class files. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: remove more stray includes. 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/include/fpdfapi/cpdf_document.h"
8 8
9 #include <set> 9 #include <set>
10 10
11 #include "core/include/fpdfapi/cpdf_parser.h" 11 #include "core/include/fpdfapi/cpdf_parser.h"
12 #include "core/include/fpdfapi/fpdf_module.h" 12 #include "core/include/fpdfapi/fpdf_module.h"
13 #include "core/include/fpdfapi/fpdf_parser.h"
14 #include "core/include/fxge/fx_font.h" 13 #include "core/include/fxge/fx_font.h"
15 #include "core/src/fpdfapi/fpdf_render/render_int.h" 14 #include "core/src/fpdfapi/fpdf_render/render_int.h"
16 #include "third_party/base/stl_util.h" 15 #include "third_party/base/stl_util.h"
17 16
18 namespace { 17 namespace {
19 18
20 int CountPages(CPDF_Dictionary* pPages, 19 int CountPages(CPDF_Dictionary* pPages,
21 std::set<CPDF_Dictionary*>* visited_pages) { 20 std::set<CPDF_Dictionary*>* visited_pages) {
22 int count = pPages->GetIntegerBy("Count"); 21 int count = pPages->GetIntegerBy("Count");
23 if (count > 0 && count < FPDF_PAGE_MAX_NUM) { 22 if (count > 0 && count < FPDF_PAGE_MAX_NUM) {
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 } 342 }
344 343
345 void CPDF_Document::ClearRenderFont() { 344 void CPDF_Document::ClearRenderFont() {
346 if (!m_pDocRender) 345 if (!m_pDocRender)
347 return; 346 return;
348 347
349 CFX_FontCache* pCache = m_pDocRender->GetFontCache(); 348 CFX_FontCache* pCache = m_pDocRender->GetFontCache();
350 if (pCache) 349 if (pCache)
351 pCache->FreeCache(FALSE); 350 pCache->FreeCache(FALSE);
352 } 351 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698