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

Side by Side Diff: core/fpdfapi/page/cpdf_docpagedata.cpp

Issue 2409283002: Rename fpdf_page_doc.cpp -> cpdf_docpagedata.h (Closed)
Patch Set: 2016 Created 4 years, 2 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
« no previous file with comments | « core/fpdfapi/page/cpdf_docpagedata.h ('k') | core/fpdfapi/page/cpdf_image.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/fpdfapi/page/pageint.h" 7 #include "core/fpdfapi/page/cpdf_docpagedata.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/cpdf_modulemgr.h" 13 #include "core/fpdfapi/cpdf_modulemgr.h"
14 #include "core/fpdfapi/font/cpdf_type1font.h" 14 #include "core/fpdfapi/font/cpdf_type1font.h"
15 #include "core/fpdfapi/font/font_int.h" 15 #include "core/fpdfapi/font/font_int.h"
16 #include "core/fpdfapi/page/cpdf_image.h" 16 #include "core/fpdfapi/page/cpdf_image.h"
17 #include "core/fpdfapi/page/cpdf_pagemodule.h" 17 #include "core/fpdfapi/page/cpdf_pagemodule.h"
18 #include "core/fpdfapi/page/cpdf_pattern.h" 18 #include "core/fpdfapi/page/cpdf_pattern.h"
19 #include "core/fpdfapi/page/cpdf_shadingpattern.h" 19 #include "core/fpdfapi/page/cpdf_shadingpattern.h"
20 #include "core/fpdfapi/page/cpdf_tilingpattern.h" 20 #include "core/fpdfapi/page/cpdf_tilingpattern.h"
21 #include "core/fpdfapi/parser/cpdf_array.h" 21 #include "core/fpdfapi/parser/cpdf_array.h"
22 #include "core/fpdfapi/parser/cpdf_dictionary.h" 22 #include "core/fpdfapi/parser/cpdf_dictionary.h"
23 #include "core/fpdfapi/parser/cpdf_document.h" 23 #include "core/fpdfapi/parser/cpdf_document.h"
24 #include "core/fpdfapi/parser/cpdf_stream_acc.h" 24 #include "core/fpdfapi/parser/cpdf_stream_acc.h"
25 #include "third_party/base/stl_util.h" 25 #include "third_party/base/stl_util.h"
26 26
27 void CPDF_ModuleMgr::InitPageModule() {
28 m_pPageModule.reset(new CPDF_PageModule);
29 }
30
31 CPDF_DocPageData::CPDF_DocPageData(CPDF_Document* pPDFDoc) 27 CPDF_DocPageData::CPDF_DocPageData(CPDF_Document* pPDFDoc)
32 : m_pPDFDoc(pPDFDoc), m_bForceClear(false) {} 28 : m_pPDFDoc(pPDFDoc), m_bForceClear(false) {}
33 29
34 CPDF_DocPageData::~CPDF_DocPageData() { 30 CPDF_DocPageData::~CPDF_DocPageData() {
35 Clear(false); 31 Clear(false);
36 Clear(true); 32 Clear(true);
37 33
38 for (auto& it : m_PatternMap) 34 for (auto& it : m_PatternMap)
39 delete it.second; 35 delete it.second;
40 m_PatternMap.clear(); 36 m_PatternMap.clear();
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 } 536 }
541 537
542 CPDF_CountedPattern* CPDF_DocPageData::FindPatternPtr( 538 CPDF_CountedPattern* CPDF_DocPageData::FindPatternPtr(
543 CPDF_Object* pPatternObj) const { 539 CPDF_Object* pPatternObj) const {
544 if (!pPatternObj) 540 if (!pPatternObj)
545 return nullptr; 541 return nullptr;
546 542
547 auto it = m_PatternMap.find(pPatternObj); 543 auto it = m_PatternMap.find(pPatternObj);
548 return it != m_PatternMap.end() ? it->second : nullptr; 544 return it != m_PatternMap.end() ? it->second : nullptr;
549 } 545 }
OLDNEW
« no previous file with comments | « core/fpdfapi/page/cpdf_docpagedata.h ('k') | core/fpdfapi/page/cpdf_image.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698