summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_layoutpagemgr.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-02-14 15:44:21 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-02-14 15:44:21 +0000
commitd8d6f55140bd4f0a67de833346113cfa6e03c4bd (patch)
tree1031b18090215b45f2a1533dd0b17390bd6d96cc /xfa/fxfa/parser/cxfa_layoutpagemgr.cpp
parent2f68cb53f5938e2dd572db79fc5689c987cb350d (diff)
downloadpdfium-d8d6f55140bd4f0a67de833346113cfa6e03c4bd.tar.xz
Cleanup CXFA_Document const-ness
This CL marks methods const where possible and removes redundant methods from CXFA_Document. Change-Id: I34804425469dfd52469daba68f64a4b511e5d4d0 Reviewed-on: https://pdfium-review.googlesource.com/26730 Commit-Queue: Ryan Harrison <rharrison@chromium.org> Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_layoutpagemgr.cpp')
-rw-r--r--xfa/fxfa/parser/cxfa_layoutpagemgr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/fxfa/parser/cxfa_layoutpagemgr.cpp b/xfa/fxfa/parser/cxfa_layoutpagemgr.cpp
index f921d8014f..d6178bfc5e 100644
--- a/xfa/fxfa/parser/cxfa_layoutpagemgr.cpp
+++ b/xfa/fxfa/parser/cxfa_layoutpagemgr.cpp
@@ -1626,7 +1626,7 @@ void CXFA_LayoutPageMgr::SaveLayoutItem(CXFA_LayoutItem* pParentLayoutItem) {
CXFA_FFNotify* pNotify =
m_pTemplatePageSetRoot->GetDocument()->GetNotify();
CXFA_LayoutProcessor* pDocLayout =
- m_pTemplatePageSetRoot->GetDocument()->GetDocLayout();
+ m_pTemplatePageSetRoot->GetDocument()->GetLayoutProcessor();
if (pCurLayoutItem->m_pFirstChild)
SyncRemoveLayoutItem(pCurLayoutItem, pNotify, pDocLayout);
@@ -1687,7 +1687,7 @@ CXFA_Node* CXFA_LayoutPageMgr::QueryOverflow(CXFA_Node* pFormNode) {
void CXFA_LayoutPageMgr::MergePageSetContents() {
CXFA_Document* pDocument = m_pTemplatePageSetRoot->GetDocument();
CXFA_FFNotify* pNotify = pDocument->GetNotify();
- CXFA_LayoutProcessor* pDocLayout = pDocument->GetDocLayout();
+ CXFA_LayoutProcessor* pDocLayout = pDocument->GetLayoutProcessor();
CXFA_ContainerLayoutItem* pRootLayout = GetRootLayoutItem();
for (CXFA_Node* pPageNode : pDocument->m_pPendingPageSet) {
CXFA_NodeIteratorTemplate<CXFA_Node, CXFA_TraverseStrategy_XFANode>