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_picturebox.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'xfa/fwl/core/cfwl_picturebox.cpp') diff --git a/xfa/fwl/core/cfwl_picturebox.cpp b/xfa/fwl/core/cfwl_picturebox.cpp index cb4cff35d1..3c95033aa0 100644 --- a/xfa/fwl/core/cfwl_picturebox.cpp +++ b/xfa/fwl/core/cfwl_picturebox.cpp @@ -30,8 +30,7 @@ void CFWL_PictureBox::GetWidgetRect(CFX_RectF& rect, bool bAutoSize) { } rect.Set(0, 0, 0, 0); - - CFWL_Widget::GetWidgetRect(rect, true); + InflateWidgetRect(rect); } void CFWL_PictureBox::Update() { -- cgit v1.2.3