diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-02-06 15:31:38 -0500 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-02-06 21:05:27 +0000 |
commit | 10def51edb8758632be9b24476459b0ab6f23c51 (patch) | |
tree | 0c38eb929236bb9a2415e553a6cdc3c76031df43 /xfa/fxfa/parser/cxfa_document.cpp | |
parent | baf318f298af51bcf1e8719de703773e5e3b94ea (diff) | |
download | pdfium-10def51edb8758632be9b24476459b0ab6f23c51.tar.xz |
More CXFA_ItemLayoutProcessor cleanupchromium/3005
Continuing cleaning up members and methods of CXFA_ItemLayoutProcessor.
Change-Id: Ie74fb83337c85820072b43352b734eafc3a0d5af
Reviewed-on: https://pdfium-review.googlesource.com/2513
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Nicolás Peña <npm@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_document.cpp')
-rw-r--r-- | xfa/fxfa/parser/cxfa_document.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/xfa/fxfa/parser/cxfa_document.cpp b/xfa/fxfa/parser/cxfa_document.cpp index 8ff3c2b06a..adb8eb2e0b 100644 --- a/xfa/fxfa/parser/cxfa_document.cpp +++ b/xfa/fxfa/parser/cxfa_document.cpp @@ -105,6 +105,16 @@ CXFA_Document::~CXFA_Document() { PurgeNodes(); } +CXFA_LayoutProcessor* CXFA_Document::GetLayoutProcessor() { + if (!m_pLayoutProcessor) + m_pLayoutProcessor = new CXFA_LayoutProcessor(this); + return m_pLayoutProcessor; +} + +CXFA_LayoutProcessor* CXFA_Document::GetDocLayout() { + return GetLayoutProcessor(); +} + void CXFA_Document::ClearLayoutData() { delete m_pLayoutProcessor; m_pLayoutProcessor = nullptr; |