From 32942201a456ace47c052536cba594be03e9aa6c Mon Sep 17 00:00:00 2001 From: Henrique Nakashima Date: Wed, 4 Apr 2018 20:48:50 +0000 Subject: Caret blinks with lower frequency in XFA text field. Change-Id: I803f7816e2b2fecc5737a3ed26ff156bbff0ae2f Reviewed-on: https://pdfium-review.googlesource.com/29770 Commit-Queue: Ryan Harrison Reviewed-by: Ryan Harrison --- xfa/fwl/cfwl_caret.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xfa/fwl/cfwl_caret.cpp b/xfa/fwl/cfwl_caret.cpp index 03c8ffde68..c864b2d809 100644 --- a/xfa/fwl/cfwl_caret.cpp +++ b/xfa/fwl/cfwl_caret.cpp @@ -17,7 +17,7 @@ namespace { -const uint32_t kFrequency = 400; +const uint32_t kBlinkPeriodMs = 600; constexpr int kStateHighlight = (1 << 0); @@ -63,7 +63,7 @@ void CFWL_Caret::ShowCaret() { pOldTimerInfo->StopTimer(); } - m_pTimerInfo = m_pTimer->StartTimer(kFrequency, true); + m_pTimerInfo = m_pTimer->StartTimer(kBlinkPeriodMs, true); RemoveStates(FWL_WGTSTATE_Invisible); } -- cgit v1.2.3