From b4f2744daca0e3d3cebdad92fcc28a271cf0767a Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Thu, 23 Aug 2018 20:13:46 +0000 Subject: 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 Commit-Queue: Tom Sepez --- xfa/fwl/cfwl_form.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xfa/fwl/cfwl_form.cpp') 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; -- cgit v1.2.3