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/include/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_pagemodule.h" | 15 #include "core/fpdfapi/fpdf_page/cpdf_pagemodule.h" |
16 #include "core/fpdfapi/fpdf_page/cpdf_pattern.h" | 16 #include "core/fpdfapi/fpdf_page/cpdf_pattern.h" |
17 #include "core/fpdfapi/fpdf_page/cpdf_shadingpattern.h" | 17 #include "core/fpdfapi/fpdf_page/cpdf_shadingpattern.h" |
18 #include "core/fpdfapi/fpdf_page/cpdf_tilingpattern.h" | 18 #include "core/fpdfapi/fpdf_page/cpdf_tilingpattern.h" |
19 #include "core/fpdfapi/fpdf_page/include/cpdf_image.h" | 19 #include "core/fpdfapi/fpdf_page/include/cpdf_image.h" |
20 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" | 20 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" |
21 #include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h" | 21 #include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h" |
22 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" | 22 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" |
(...skipping 522 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 |