Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Issue 2723003002: Editing: Fix caret blinking after a typing. (Closed)

Created:
3 years, 9 months ago by tkent
Modified:
3 years, 9 months ago
Reviewers:
yosin_UTC9
CC:
blink-reviews, chromium-reviews, kinuko+watch, scheduler-bugs_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Editing: Fix caret blinking after a typing. FrameCaret::updateAppearance() is called in updateStyleAndLayoutIfNeeded(). So if shouldStopBlinkingDueToTypingCommand() is true, we repeatedly stop and start the caret timer. Because FrameSelection::didSetSelectionDeprecated() calls stopCaretBlinkTimer(), we always restart the caret timer after every selection change. Checking shouldStopBlinkingDueToTypingCommand() is unnecessary. The core part of the CL is just to remove shouldStopBlinkingDueToTypingCommand(), however this CL adds a lot of code to make the code testable. - Add FrameCaret::recreateCaretBlinkTimerForTesting(RefPtr<WebTaskRunner>) - Add FrameSelection::frameCaretForTesting() - Add support of delayed task to FakeWebTaskRunner BUG=692900 Review-Url: https://codereview.chromium.org/2723003002 Cr-Commit-Position: refs/heads/master@{#453858} Committed: https://chromium.googlesource.com/chromium/src/+/045a3dd143fabf6787774090a255dc0eda649c59

Patch Set 1 #

Total comments: 6

Patch Set 2 : Apply review comments #

Messages

Total messages: 18 (13 generated)
tkent
yosin@, would you review this please?
3 years, 9 months ago (2017-03-01 02:07:08 UTC) #5
yosin_UTC9
lgtm w/ *optional* style nits Thanks for introducing testable timer which I could not! m(_ ...
3 years, 9 months ago (2017-03-01 03:21:07 UTC) #8
tkent
https://codereview.chromium.org/2723003002/diff/1/third_party/WebKit/Source/core/editing/FrameCaret.cpp File third_party/WebKit/Source/core/editing/FrameCaret.cpp (right): https://codereview.chromium.org/2723003002/diff/1/third_party/WebKit/Source/core/editing/FrameCaret.cpp#newcode88 third_party/WebKit/Source/core/editing/FrameCaret.cpp:88: if (!shouldBlink) { On 2017/03/01 at 03:21:07, yosin_UTC9 wrote: ...
3 years, 9 months ago (2017-03-01 05:50:41 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2723003002/20001
3 years, 9 months ago (2017-03-01 05:50:58 UTC) #15
commit-bot: I haz the power
3 years, 9 months ago (2017-03-01 05:55:44 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/045a3dd143fabf6787774090a255...

Powered by Google App Engine
This is Rietveld 408576698