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/fpdfapi/fpdf_page/pageint.h" | 7 #include "core/fpdfapi/fpdf_page/pageint.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <set> | 10 #include <set> |
11 | 11 |
12 #include "core/fdrm/crypto/fx_crypt.h" | 12 #include "core/fdrm/crypto/fx_crypt.h" |
13 #include "core/fpdfapi/fpdf_font/cpdf_type1font.h" | 13 #include "core/fpdfapi/fpdf_font/cpdf_type1font.h" |
14 #include "core/fpdfapi/fpdf_font/font_int.h" | 14 #include "core/fpdfapi/fpdf_font/font_int.h" |
15 #include "core/fpdfapi/fpdf_page/cpdf_image.h" | 15 #include "core/fpdfapi/fpdf_page/cpdf_image.h" |
16 #include "core/fpdfapi/fpdf_page/cpdf_pagemodule.h" | 16 #include "core/fpdfapi/fpdf_page/cpdf_pagemodule.h" |
17 #include "core/fpdfapi/fpdf_page/cpdf_pattern.h" | 17 #include "core/fpdfapi/fpdf_page/cpdf_pattern.h" |
18 #include "core/fpdfapi/fpdf_page/cpdf_shadingpattern.h" | 18 #include "core/fpdfapi/fpdf_page/cpdf_shadingpattern.h" |
19 #include "core/fpdfapi/fpdf_page/cpdf_tilingpattern.h" | 19 #include "core/fpdfapi/fpdf_page/cpdf_tilingpattern.h" |
20 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" | 20 #include "core/fpdfapi/fpdf_parser/cpdf_array.h" |
21 #include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h" | 21 #include "core/fpdfapi/fpdf_parser/cpdf_dictionary.h" |
22 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" | 22 #include "core/fpdfapi/fpdf_parser/cpdf_document.h" |
23 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream_acc.h" | 23 #include "core/fpdfapi/fpdf_parser/cpdf_stream_acc.h" |
24 #include "core/fpdfapi/include/cpdf_modulemgr.h" | 24 #include "core/fpdfapi/include/cpdf_modulemgr.h" |
25 #include "third_party/base/stl_util.h" | 25 #include "third_party/base/stl_util.h" |
26 | 26 |
27 void CPDF_ModuleMgr::InitPageModule() { | 27 void CPDF_ModuleMgr::InitPageModule() { |
28 m_pPageModule.reset(new CPDF_PageModule); | 28 m_pPageModule.reset(new CPDF_PageModule); |
29 } | 29 } |
30 | 30 |
31 CPDF_DocPageData::CPDF_DocPageData(CPDF_Document* pPDFDoc) | 31 CPDF_DocPageData::CPDF_DocPageData(CPDF_Document* pPDFDoc) |
32 : m_pPDFDoc(pPDFDoc), m_bForceClear(FALSE) {} | 32 : m_pPDFDoc(pPDFDoc), m_bForceClear(FALSE) {} |
33 | 33 |
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 } | 545 } |
546 | 546 |
547 CPDF_CountedPattern* CPDF_DocPageData::FindPatternPtr( | 547 CPDF_CountedPattern* CPDF_DocPageData::FindPatternPtr( |
548 CPDF_Object* pPatternObj) const { | 548 CPDF_Object* pPatternObj) const { |
549 if (!pPatternObj) | 549 if (!pPatternObj) |
550 return nullptr; | 550 return nullptr; |
551 | 551 |
552 auto it = m_PatternMap.find(pPatternObj); | 552 auto it = m_PatternMap.find(pPatternObj); |
553 return it != m_PatternMap.end() ? it->second : nullptr; | 553 return it != m_PatternMap.end() ? it->second : nullptr; |
554 } | 554 } |
OLD | NEW |