summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_ffdoc.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-09-21 10:45:18 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-09-21 19:31:12 +0000
commita44a48043e54eac6126c9a2cfae9e6055ef4a15f (patch)
tree9d9c10223c60257e000aa8b9f3ef5236798891c1 /xfa/fxfa/cxfa_ffdoc.h
parent959c2bebde7f46b194f0f83ba5626cb982213638 (diff)
downloadpdfium-a44a48043e54eac6126c9a2cfae9e6055ef4a15f.tar.xz
Move CFGAS_PDFFontMgr to the CXFA_FFDoc
This CL removes the map of CXFA_FFDoc -> CFGAS_PDFFontMgr from the CXFA_FontMgr and moves the storage of the PDFFontMgr into the CXFA_FFDoc itself. Change-Id: Ia725ddd94b1ac2c9504bfd6370040ab6ac01e272 Reviewed-on: https://pdfium-review.googlesource.com/14590 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffdoc.h')
-rw-r--r--xfa/fxfa/cxfa_ffdoc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/xfa/fxfa/cxfa_ffdoc.h b/xfa/fxfa/cxfa_ffdoc.h
index 7984d7425b..1d35c669da 100644
--- a/xfa/fxfa/cxfa_ffdoc.h
+++ b/xfa/fxfa/cxfa_ffdoc.h
@@ -15,6 +15,7 @@
#include "xfa/fxfa/parser/cxfa_document.h"
#include "xfa/fxfa/parser/cxfa_document_parser.h"
+class CFGAS_PDFFontMgr;
class CFX_ChecksumContext;
class CXFA_FFApp;
class CXFA_FFNotify;
@@ -72,6 +73,7 @@ class CXFA_FFDoc {
CFX_RetainPtr<CFX_DIBitmap> GetPDFNamedImage(const WideStringView& wsName,
int32_t& iImageXDpi,
int32_t& iImageYDpi);
+ CFGAS_PDFFontMgr* GetPDFFontMgr() const { return m_pPDFFontMgr.get(); }
bool SavePackage(XFA_HashCode code,
const CFX_RetainPtr<IFX_SeekableStream>& pFile,
@@ -88,6 +90,7 @@ class CXFA_FFDoc {
CFX_UnownedPtr<CPDF_Document> m_pPDFDoc;
std::map<uint32_t, FX_IMAGEDIB_AND_DPI> m_HashToDibDpiMap;
std::unique_ptr<CXFA_FFDocView> m_DocView;
+ std::unique_ptr<CFGAS_PDFFontMgr> m_pPDFFontMgr;
XFA_DocType m_dwDocType;
};