diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2018-02-14 15:44:21 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-02-14 15:44:21 +0000 |
commit | d8d6f55140bd4f0a67de833346113cfa6e03c4bd (patch) | |
tree | 1031b18090215b45f2a1533dd0b17390bd6d96cc /fxjs/xfa | |
parent | 2f68cb53f5938e2dd572db79fc5689c987cb350d (diff) | |
download | pdfium-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 'fxjs/xfa')
-rw-r--r-- | fxjs/xfa/cjx_hostpseudomodel.cpp | 2 | ||||
-rw-r--r-- | fxjs/xfa/cjx_layoutpseudomodel.cpp | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/fxjs/xfa/cjx_hostpseudomodel.cpp b/fxjs/xfa/cjx_hostpseudomodel.cpp index 5c63fc8986..37c639f6e4 100644 --- a/fxjs/xfa/cjx_hostpseudomodel.cpp +++ b/fxjs/xfa/cjx_hostpseudomodel.cpp @@ -302,7 +302,7 @@ CJS_Return CJX_HostPseudoModel::openList( pNode = resolveNodeRS.objects.front()->AsNode(); } - CXFA_LayoutProcessor* pDocLayout = GetDocument()->GetDocLayout(); + CXFA_LayoutProcessor* pDocLayout = GetDocument()->GetLayoutProcessor(); if (!pDocLayout) return CJS_Return(true); diff --git a/fxjs/xfa/cjx_layoutpseudomodel.cpp b/fxjs/xfa/cjx_layoutpseudomodel.cpp index fd8c8804f8..6a01d2914e 100644 --- a/fxjs/xfa/cjx_layoutpseudomodel.cpp +++ b/fxjs/xfa/cjx_layoutpseudomodel.cpp @@ -88,7 +88,7 @@ CJS_Return CJX_LayoutPseudoModel::HWXY( } int32_t iIndex = params.size() >= 3 ? runtime->ToInt32(params[2]) : 0; - CXFA_LayoutProcessor* pDocLayout = GetDocument()->GetDocLayout(); + CXFA_LayoutProcessor* pDocLayout = GetDocument()->GetLayoutProcessor(); if (!pDocLayout) return CJS_Return(true); @@ -152,7 +152,7 @@ CJS_Return CJX_LayoutPseudoModel::y( CJS_Return CJX_LayoutPseudoModel::NumberedPageCount(CFX_V8* runtime, bool bNumbered) { - CXFA_LayoutProcessor* pDocLayout = GetDocument()->GetDocLayout(); + CXFA_LayoutProcessor* pDocLayout = GetDocument()->GetLayoutProcessor(); if (!pDocLayout) return CJS_Return(true); @@ -191,7 +191,7 @@ CJS_Return CJX_LayoutPseudoModel::pageSpan( if (!pNode) return CJS_Return(true); - CXFA_LayoutProcessor* pDocLayout = GetDocument()->GetDocLayout(); + CXFA_LayoutProcessor* pDocLayout = GetDocument()->GetLayoutProcessor(); if (!pDocLayout) return CJS_Return(true); @@ -367,7 +367,7 @@ CJS_Return CJX_LayoutPseudoModel::pageContent( if (!pNotify) return CJS_Return(true); - CXFA_LayoutProcessor* pDocLayout = GetDocument()->GetDocLayout(); + CXFA_LayoutProcessor* pDocLayout = GetDocument()->GetLayoutProcessor(); if (!pDocLayout) return CJS_Return(true); @@ -472,7 +472,7 @@ CJS_Return CJX_LayoutPseudoModel::PageInternals( if (!pNode) return CJS_Return(runtime->NewNumber(0)); - CXFA_LayoutProcessor* pDocLayout = GetDocument()->GetDocLayout(); + CXFA_LayoutProcessor* pDocLayout = GetDocument()->GetLayoutProcessor(); if (!pDocLayout) return CJS_Return(true); |