diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-08-23 20:13:46 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-08-23 20:13:46 +0000 |
commit | b4f2744daca0e3d3cebdad92fcc28a271cf0767a (patch) | |
tree | 0721256e009d74bf5d09b51c6022a6fd5dc24fa5 /xfa/fwl/cfwl_form.cpp | |
parent | 8ce49f8f25e993a31e6abe9e656784abbff0650f (diff) | |
download | pdfium-b4f2744daca0e3d3cebdad92fcc28a271cf0767a.tar.xz |
Remove bool arg from CFWL_Widget::GetBorderSize().
The arg determined returning value for X or Y dimension. Splitting
into two separate methods is much clearer at the call sites.
Add missing consts along the way.
Change-Id: I498ea5a8fb4618166727b8a08ade6fcca2111d17
Reviewed-on: https://pdfium-review.googlesource.com/41170
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fwl/cfwl_form.cpp')
-rw-r--r-- | xfa/fwl/cfwl_form.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/fwl/cfwl_form.cpp b/xfa/fwl/cfwl_form.cpp index f779c43468..616167b308 100644 --- a/xfa/fwl/cfwl_form.cpp +++ b/xfa/fwl/cfwl_form.cpp @@ -158,8 +158,8 @@ void CFWL_Form::DrawBackground(CXFA_Graphics* pGraphics, CFX_RectF CFWL_Form::GetEdgeRect() { CFX_RectF rtEdge = m_rtRelative; if (m_pProperties->m_dwStyles & FWL_WGTSTYLE_Border) { - float fCX = GetBorderSize(true); - float fCY = GetBorderSize(false); + float fCX = GetCXBorderSize(); + float fCY = GetCYBorderSize(); rtEdge.Deflate(fCX, fCY, fCX, fCY); } return rtEdge; |