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

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

Issue 1923153002: CPDF_Document::LoadPattern() and friends always have a valid matrix. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@clean_doc2
Patch Set: rebase Created 4 years, 7 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/fpdf_page/pageint.h ('k') | core/fpdfapi/fpdf_parser/include/cpdf_document.h » ('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/fpdf_parser/include/cpdf_document.h" 7 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h"
8 8
9 #include <set> 9 #include <set>
10 10
(...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after
746 return m_pDocPage->GetFontFileStreamAcc(pStream); 746 return m_pDocPage->GetFontFileStreamAcc(pStream);
747 } 747 }
748 748
749 CPDF_ColorSpace* CPDF_Document::LoadColorSpace(CPDF_Object* pCSObj, 749 CPDF_ColorSpace* CPDF_Document::LoadColorSpace(CPDF_Object* pCSObj,
750 CPDF_Dictionary* pResources) { 750 CPDF_Dictionary* pResources) {
751 return m_pDocPage->GetColorSpace(pCSObj, pResources); 751 return m_pDocPage->GetColorSpace(pCSObj, pResources);
752 } 752 }
753 753
754 CPDF_Pattern* CPDF_Document::LoadPattern(CPDF_Object* pPatternObj, 754 CPDF_Pattern* CPDF_Document::LoadPattern(CPDF_Object* pPatternObj,
755 FX_BOOL bShading, 755 FX_BOOL bShading,
756 const CFX_Matrix* matrix) { 756 const CFX_Matrix& matrix) {
757 return m_pDocPage->GetPattern(pPatternObj, bShading, matrix); 757 return m_pDocPage->GetPattern(pPatternObj, bShading, matrix);
758 } 758 }
759 759
760 CPDF_IccProfile* CPDF_Document::LoadIccProfile(CPDF_Stream* pStream) { 760 CPDF_IccProfile* CPDF_Document::LoadIccProfile(CPDF_Stream* pStream) {
761 return m_pDocPage->GetIccProfile(pStream); 761 return m_pDocPage->GetIccProfile(pStream);
762 } 762 }
763 763
764 CPDF_Image* CPDF_Document::LoadImageF(CPDF_Object* pObj) { 764 CPDF_Image* CPDF_Document::LoadImageF(CPDF_Object* pObj) {
765 if (!pObj) 765 if (!pObj)
766 return nullptr; 766 return nullptr;
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
1439 } 1439 }
1440 } 1440 }
1441 pFontDesc->SetAtInteger("StemV", fStemV); 1441 pFontDesc->SetAtInteger("StemV", fStemV);
1442 AddIndirectObject(pFontDesc); 1442 AddIndirectObject(pFontDesc);
1443 pFontDict->SetAtReference("FontDescriptor", this, pFontDesc); 1443 pFontDict->SetAtReference("FontDescriptor", this, pFontDesc);
1444 CFRelease(traits); 1444 CFRelease(traits);
1445 CFRelease(languages); 1445 CFRelease(languages);
1446 return LoadFont(pBaseDict); 1446 return LoadFont(pBaseDict);
1447 } 1447 }
1448 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ 1448 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_page/pageint.h ('k') | core/fpdfapi/fpdf_parser/include/cpdf_document.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698