diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-11-07 20:59:30 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-11-07 20:59:30 +0000 |
commit | 5fe712cb6c605e597f65f6b4cd0afa3213234639 (patch) | |
tree | 666bf236e5a213f7baa23fbd1d407baef794942e /xfa/fxfa/cxfa_fwltheme.cpp | |
parent | c3ef52cf3c26d47877740dc46faa3088be44cfae (diff) | |
download | pdfium-5fe712cb6c605e597f65f6b4cd0afa3213234639.tar.xz |
Rename CXFA_Para to CXFA_ParaData
This CL renames CXFA_Para to CXFA_ParaData to show it is part of the
data hierarchy.
Change-Id: I71f58c87416b17d1e59252ca374aad13935fc430
Reviewed-on: https://pdfium-review.googlesource.com/17989
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_fwltheme.cpp')
-rw-r--r-- | xfa/fxfa/cxfa_fwltheme.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/xfa/fxfa/cxfa_fwltheme.cpp b/xfa/fxfa/cxfa_fwltheme.cpp index f27b5ddef5..61c4e25f1d 100644 --- a/xfa/fxfa/cxfa_fwltheme.cpp +++ b/xfa/fxfa/cxfa_fwltheme.cpp @@ -154,10 +154,10 @@ CFX_RectF CXFA_FWLTheme::GetUIMargin(CFWL_ThemePart* pThemePart) const { CXFA_LayoutItem* pItem = pWidget; CXFA_WidgetAcc* pWidgetAcc = pWidget->GetDataAcc(); rect = pWidgetAcc->GetUIMargin(); - if (CXFA_Para para = pWidgetAcc->GetPara()) { - rect.left += para.GetMarginLeft(); + if (CXFA_ParaData paraData = pWidgetAcc->GetParaData()) { + rect.left += paraData.GetMarginLeft(); if (pWidgetAcc->IsMultiLine()) - rect.width += para.GetMarginRight(); + rect.width += paraData.GetMarginRight(); } if (!pItem->GetPrev()) { if (pItem->GetNext()) @@ -212,9 +212,9 @@ CFX_SizeF CXFA_FWLTheme::GetSpaceAboveBelow(CFWL_ThemePart* pThemePart) const { CFX_SizeF sizeAboveBelow; if (CXFA_FFWidget* pWidget = XFA_ThemeGetOuterWidget(pThemePart->m_pWidget)) { CXFA_WidgetAcc* pWidgetAcc = pWidget->GetDataAcc(); - if (CXFA_Para para = pWidgetAcc->GetPara()) { - sizeAboveBelow.width = para.GetSpaceAbove(); - sizeAboveBelow.height = para.GetSpaceBelow(); + if (CXFA_ParaData paraData = pWidgetAcc->GetParaData()) { + sizeAboveBelow.width = paraData.GetSpaceAbove(); + sizeAboveBelow.height = paraData.GetSpaceBelow(); } } return sizeAboveBelow; |