summaryrefslogtreecommitdiff
path: root/xfa/fwl/core/cfwl_caret.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fwl/core/cfwl_caret.cpp')
-rw-r--r--xfa/fwl/core/cfwl_caret.cpp6
1 files changed, 2 insertions, 4 deletions
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);
}