summaryrefslogtreecommitdiff
path: root/xfa/fwl/cfwl_caret.cpp
diff options
context:
space:
mode:
authorHenrique Nakashima <hnakashima@chromium.org>2018-04-04 20:48:50 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-04-04 20:48:50 +0000
commit32942201a456ace47c052536cba594be03e9aa6c (patch)
tree47c87a50a3544a8c92e295fc3fae9ce2b4f38003 /xfa/fwl/cfwl_caret.cpp
parent8d970f7496a792ceffc0c81a037aafda8932c3fb (diff)
downloadpdfium-32942201a456ace47c052536cba594be03e9aa6c.tar.xz
Caret blinks with lower frequency in XFA text field.
Change-Id: I803f7816e2b2fecc5737a3ed26ff156bbff0ae2f Reviewed-on: https://pdfium-review.googlesource.com/29770 Commit-Queue: Ryan Harrison <rharrison@chromium.org> Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'xfa/fwl/cfwl_caret.cpp')
-rw-r--r--xfa/fwl/cfwl_caret.cpp4
1 files 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);
}