From 67c6ca3cd86b6a31c888264bb8067c6c4324e56c Mon Sep 17 00:00:00 2001 From: dsinclair Date: Wed, 7 Dec 2016 18:24:00 -0800 Subject: Split CFWL_Widget::GetWidgetRect into two parts This CL splits the inflation logic out of GetWidgetRect to allow subclasses to call that directly instead of the CFWL_Widget::GetWidgetRect method. Review-Url: https://codereview.chromium.org/2555253002 --- xfa/fwl/core/cfwl_pushbutton.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xfa/fwl/core/cfwl_pushbutton.cpp') diff --git a/xfa/fwl/core/cfwl_pushbutton.cpp b/xfa/fwl/core/cfwl_pushbutton.cpp index 9e1e693ff0..a2f9b5f1cf 100644 --- a/xfa/fwl/core/cfwl_pushbutton.cpp +++ b/xfa/fwl/core/cfwl_pushbutton.cpp @@ -48,7 +48,7 @@ void CFWL_PushButton::GetWidgetRect(CFX_RectF& rect, bool bAutoSize) { FX_FLOAT* fcaption = static_cast(GetThemeCapacity(CFWL_WidgetCapacity::Margin)); rect.Inflate(*fcaption, *fcaption); - CFWL_Widget::GetWidgetRect(rect, true); + InflateWidgetRect(rect); } void CFWL_PushButton::SetStates(uint32_t dwStates) { -- cgit v1.2.3