From da911bc12558667555266425d0b7e83296e8cc7d Mon Sep 17 00:00:00 2001 From: dsinclair Date: Wed, 7 Dec 2016 18:47:00 -0800 Subject: Convert GetWidgetRect to return rect. Current GetWidgetRect accepts the rect as an out-param. This CL converts the code to return the rect instead. Review-Url: https://codereview.chromium.org/2556873004 --- xfa/fwl/core/cfwl_caret.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'xfa/fwl/core/cfwl_caret.cpp') diff --git a/xfa/fwl/core/cfwl_caret.cpp b/xfa/fwl/core/cfwl_caret.cpp index 0457347b66..f9e26a7e9f 100644 --- a/xfa/fwl/core/cfwl_caret.cpp +++ b/xfa/fwl/core/cfwl_caret.cpp @@ -76,8 +76,7 @@ void CFWL_Caret::DrawCaretBK(CFX_Graphics* pGraphics, if (!(m_pProperties->m_dwStates & FWL_STATE_CAT_HightLight)) return; - CFX_RectF rect; - GetWidgetRect(rect, false); + CFX_RectF rect = GetWidgetRect(); rect.Set(0, 0, rect.width, rect.height); CFWL_ThemeBackground param; @@ -107,8 +106,7 @@ void CFWL_Caret::Timer::Run(CFWL_TimerInfo* pTimerInfo) { else pCaret->RemoveStates(FWL_STATE_CAT_HightLight); - CFX_RectF rt; - pCaret->GetWidgetRect(rt, false); + CFX_RectF rt = pCaret->GetWidgetRect(); rt.Set(0, 0, rt.width + 1, rt.height); pCaret->Repaint(&rt); } -- cgit v1.2.3