From 931bf37379db7274d0e42f68cf358749cb05ba89 Mon Sep 17 00:00:00 2001 From: thestig Date: Tue, 26 Apr 2016 22:24:30 -0700 Subject: Move CPDF_Document code into cpdf_document.cpp. Review URL: https://codereview.chromium.org/1925453002 --- core/fpdfapi/fpdf_page/fpdf_page_doc.cpp | 34 -------------------------------- 1 file changed, 34 deletions(-) (limited to 'core/fpdfapi/fpdf_page/fpdf_page_doc.cpp') diff --git a/core/fpdfapi/fpdf_page/fpdf_page_doc.cpp b/core/fpdfapi/fpdf_page/fpdf_page_doc.cpp index 14621fc2b3..dfc21b47cb 100644 --- a/core/fpdfapi/fpdf_page/fpdf_page_doc.cpp +++ b/core/fpdfapi/fpdf_page/fpdf_page_doc.cpp @@ -24,40 +24,6 @@ void CPDF_ModuleMgr::InitPageModule() { m_pPageModule.reset(new CPDF_PageModule); } -CPDF_Font* CPDF_Document::LoadFont(CPDF_Dictionary* pFontDict) { - ASSERT(pFontDict); - return GetValidatePageData()->GetFont(pFontDict, FALSE); -} - -CPDF_StreamAcc* CPDF_Document::LoadFontFile(CPDF_Stream* pStream) { - return GetValidatePageData()->GetFontFileStreamAcc(pStream); -} - -CPDF_ColorSpace* CPDF_Document::LoadColorSpace(CPDF_Object* pCSObj, - CPDF_Dictionary* pResources) { - return GetValidatePageData()->GetColorSpace(pCSObj, pResources); -} -CPDF_Pattern* CPDF_Document::LoadPattern(CPDF_Object* pPatternObj, - FX_BOOL bShading, - const CFX_Matrix* matrix) { - return GetValidatePageData()->GetPattern(pPatternObj, bShading, matrix); -} -CPDF_IccProfile* CPDF_Document::LoadIccProfile(CPDF_Stream* pStream) { - return GetValidatePageData()->GetIccProfile(pStream); -} -CPDF_Image* CPDF_Document::LoadImageF(CPDF_Object* pObj) { - if (!pObj) { - return NULL; - } - FXSYS_assert(pObj->GetObjNum()); - return GetValidatePageData()->GetImage(pObj); -} -void CPDF_Document::RemoveColorSpaceFromPageData(CPDF_Object* pCSObj) { - if (!pCSObj) { - return; - } - GetPageData()->ReleaseColorSpace(pCSObj); -} CPDF_DocPageData::CPDF_DocPageData(CPDF_Document* pPDFDoc) : m_pPDFDoc(pPDFDoc), m_bForceClear(FALSE) {} -- cgit v1.2.3