summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_layoutpagemgr.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-02-06 15:31:38 -0500
committerChromium commit bot <commit-bot@chromium.org>2017-02-06 21:05:27 +0000
commit10def51edb8758632be9b24476459b0ab6f23c51 (patch)
tree0c38eb929236bb9a2415e553a6cdc3c76031df43 /xfa/fxfa/parser/cxfa_layoutpagemgr.cpp
parentbaf318f298af51bcf1e8719de703773e5e3b94ea (diff)
downloadpdfium-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_layoutpagemgr.cpp')
-rw-r--r--xfa/fxfa/parser/cxfa_layoutpagemgr.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/xfa/fxfa/parser/cxfa_layoutpagemgr.cpp b/xfa/fxfa/parser/cxfa_layoutpagemgr.cpp
index 8e004075ce..1bd4836a7d 100644
--- a/xfa/fxfa/parser/cxfa_layoutpagemgr.cpp
+++ b/xfa/fxfa/parser/cxfa_layoutpagemgr.cpp
@@ -444,8 +444,8 @@ void CXFA_LayoutPageMgr::SubmitContentItem(
m_bCreateOverFlowPage = false;
}
- if (eStatus != XFA_ItemLayoutProcessorResult_Done) {
- if (eStatus == XFA_ItemLayoutProcessorResult_PageFullBreak &&
+ if (eStatus != XFA_ItemLayoutProcessorResult::Done) {
+ if (eStatus == XFA_ItemLayoutProcessorResult::PageFullBreak &&
m_CurrentContainerRecordIter == GetTailPosition()) {
AppendNewPage();
}
@@ -466,7 +466,7 @@ FX_FLOAT CXFA_LayoutPageMgr::GetAvailHeight() {
return fAvailHeight;
if (m_CurrentContainerRecordIter == m_ProposedContainerRecords.begin())
return 0.0f;
- return XFA_LAYOUT_FLOAT_MAX;
+ return FLT_MAX;
}
bool XFA_LayoutPageMgr_RunBreakTestScript(CXFA_Node* pTestScript) {