| 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_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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |