| OLD | NEW |
| 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/fpdf_module.h" | 12 #include "core/include/fpdfapi/fpdf_module.h" |
| 12 #include "core/include/fpdfapi/fpdf_parser.h" | 13 #include "core/include/fpdfapi/fpdf_parser.h" |
| 13 #include "core/include/fxge/fx_font.h" | 14 #include "core/include/fxge/fx_font.h" |
| 14 #include "core/src/fpdfapi/fpdf_render/render_int.h" | 15 #include "core/src/fpdfapi/fpdf_render/render_int.h" |
| 15 #include "third_party/base/stl_util.h" | 16 #include "third_party/base/stl_util.h" |
| 16 | 17 |
| 17 namespace { | 18 namespace { |
| 18 | 19 |
| 19 int CountPages(CPDF_Dictionary* pPages, | 20 int CountPages(CPDF_Dictionary* pPages, |
| 20 std::set<CPDF_Dictionary*>* visited_pages) { | 21 std::set<CPDF_Dictionary*>* visited_pages) { |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 } | 342 } |
| 342 | 343 |
| 343 void CPDF_Document::ClearRenderFont() { | 344 void CPDF_Document::ClearRenderFont() { |
| 344 if (!m_pDocRender) | 345 if (!m_pDocRender) |
| 345 return; | 346 return; |
| 346 | 347 |
| 347 CFX_FontCache* pCache = m_pDocRender->GetFontCache(); | 348 CFX_FontCache* pCache = m_pDocRender->GetFontCache(); |
| 348 if (pCache) | 349 if (pCache) |
| 349 pCache->FreeCache(FALSE); | 350 pCache->FreeCache(FALSE); |
| 350 } | 351 } |
| OLD | NEW |