diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-11-07 18:40:35 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-11-07 18:40:35 +0000 |
commit | 50132e522702dd016b83ed12e91d065357fe0b59 (patch) | |
tree | c766cd59b00885c8dd38b1e0ff2ba9e9ebde5c85 /xfa/fxfa/cxfa_ffcheckbutton.cpp | |
parent | e0d68541163e34cc61fcb7e7cb9f5a9887f45245 (diff) | |
download | pdfium-50132e522702dd016b83ed12e91d065357fe0b59.tar.xz |
Rename CXFA_Border to CXFA_BorderData
This CL renames CXFA_Border to CXFA_BorderData to make it clear it's
part of the Data hierarchy.
Change-Id: Icfe8dc07d527ba54413f073f5a444fb7b2a71271
Reviewed-on: https://pdfium-review.googlesource.com/17974
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffcheckbutton.cpp')
-rw-r--r-- | xfa/fxfa/cxfa_ffcheckbutton.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/xfa/fxfa/cxfa_ffcheckbutton.cpp b/xfa/fxfa/cxfa_ffcheckbutton.cpp index 05c5a72ef5..ab303b08dd 100644 --- a/xfa/fxfa/cxfa_ffcheckbutton.cpp +++ b/xfa/fxfa/cxfa_ffcheckbutton.cpp @@ -172,9 +172,9 @@ bool CXFA_FFCheckButton::PerformLayout() { m_rtUI.height = fCheckSize; AddUIMargin(iCapPlacement); m_rtCheckBox = m_rtUI; - CXFA_Border borderUI = m_pDataAcc->GetUIBorder(); - if (borderUI) { - CXFA_Margin margin = borderUI.GetMargin(); + CXFA_BorderData borderUIData = m_pDataAcc->GetUIBorderData(); + if (borderUIData) { + CXFA_Margin margin = borderUIData.GetMargin(); if (margin) XFA_RectWidthoutMargin(m_rtUI, margin); } @@ -232,9 +232,8 @@ void CXFA_FFCheckButton::RenderWidget(CXFA_Graphics* pGS, mtRotate.Concat(matrix); CXFA_FFWidget::RenderWidget(pGS, mtRotate, dwStatus); - CXFA_Border borderUI = m_pDataAcc->GetUIBorder(); DrawBorderWithFlags( - pGS, borderUI, m_rtUI, mtRotate, + pGS, m_pDataAcc->GetUIBorderData(), m_rtUI, mtRotate, m_pDataAcc->GetCheckButtonShape() == XFA_ATTRIBUTEENUM_Round ? XFA_DRAWBOX_ForceRound : 0); |