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

Issue 2322303002: Textfield: suppress cursor repaints when there's a selection (Closed)

Created:
4 years, 3 months ago by Elly Fong-Jones
Modified:
4 years, 3 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews, tfarina, James Su, shuchen+watch_chromium.org, yusukes+watch_chromium.org, nona+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Textfield: suppress cursor repaints when there's a selection Without this, we do a considerable amount of repainting every timer tick. BUG=645262 Committed: https://crrev.com/1c77b2b6c04efe4e5d5d3ec5688616d65b8d0138 Cr-Commit-Position: refs/heads/master@{#420667}

Patch Set 1 #

Patch Set 2 : better suppression #

Total comments: 9

Patch Set 3 : add comment #

Patch Set 4 : refactor #

Total comments: 5

Patch Set 5 : refactor all the stuff #

Total comments: 4

Patch Set 6 : final nit #

Patch Set 7 : remove spurious DCHECK #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -29 lines) Patch
M ui/views/controls/textfield/textfield.h View 1 2 3 4 5 2 chunks +18 lines, -3 lines 0 comments Download
M ui/views/controls/textfield/textfield.cc View 1 2 3 4 5 6 8 chunks +45 lines, -26 lines 0 comments Download

Messages

Total messages: 32 (11 generated)
Elly Fong-Jones
pkasting: ptal? :)
4 years, 3 months ago (2016-09-09 14:12:03 UTC) #3
Peter Kasting
https://codereview.chromium.org/2322303002/diff/20001/ui/views/controls/textfield/textfield.cc File ui/views/controls/textfield/textfield.cc (right): https://codereview.chromium.org/2322303002/diff/20001/ui/views/controls/textfield/textfield.cc#newcode1798 ui/views/controls/textfield/textfield.cc:1798: if (HasSelection() || !HasFocus()) Are the two lines above ...
4 years, 3 months ago (2016-09-09 21:47:15 UTC) #4
Elly Fong-Jones
https://codereview.chromium.org/2322303002/diff/20001/ui/views/controls/textfield/textfield.cc File ui/views/controls/textfield/textfield.cc (right): https://codereview.chromium.org/2322303002/diff/20001/ui/views/controls/textfield/textfield.cc#newcode1798 ui/views/controls/textfield/textfield.cc:1798: if (HasSelection() || !HasFocus()) On 2016/09/09 21:47:15, Peter Kasting ...
4 years, 3 months ago (2016-09-12 11:39:16 UTC) #5
Peter Kasting
https://codereview.chromium.org/2322303002/diff/20001/ui/views/controls/textfield/textfield.cc File ui/views/controls/textfield/textfield.cc (right): https://codereview.chromium.org/2322303002/diff/20001/ui/views/controls/textfield/textfield.cc#newcode1798 ui/views/controls/textfield/textfield.cc:1798: if (HasSelection() || !HasFocus()) On 2016/09/12 11:39:16, Elly Jones ...
4 years, 3 months ago (2016-09-13 05:16:07 UTC) #6
Elly Fong-Jones
pkasting: ptal? :) https://codereview.chromium.org/2322303002/diff/20001/ui/views/controls/textfield/textfield.cc File ui/views/controls/textfield/textfield.cc (right): https://codereview.chromium.org/2322303002/diff/20001/ui/views/controls/textfield/textfield.cc#newcode1798 ui/views/controls/textfield/textfield.cc:1798: if (HasSelection() || !HasFocus()) On 2016/09/13 ...
4 years, 3 months ago (2016-09-14 15:26:27 UTC) #7
Peter Kasting
I'm worried that I'm blocking submitting what seems like a win because I'm not understanding ...
4 years, 3 months ago (2016-09-15 21:07:11 UTC) #8
Elly Fong-Jones
On 2016/09/15 21:07:11, Peter Kasting wrote: > I'm worried that I'm blocking submitting what seems ...
4 years, 3 months ago (2016-09-16 11:57:33 UTC) #9
Peter Kasting
https://codereview.chromium.org/2322303002/diff/50001/ui/views/controls/textfield/textfield.cc File ui/views/controls/textfield/textfield.cc (right): https://codereview.chromium.org/2322303002/diff/50001/ui/views/controls/textfield/textfield.cc#newcode258 ui/views/controls/textfield/textfield.cc:258: editing_cursor_visible_(false), I still don't really know what "editing cursor ...
4 years, 3 months ago (2016-09-16 18:52:27 UTC) #10
Elly Fong-Jones
On 2016/09/16 18:52:27, Peter Kasting wrote: > https://codereview.chromium.org/2322303002/diff/50001/ui/views/controls/textfield/textfield.cc > File ui/views/controls/textfield/textfield.cc (right): > > https://codereview.chromium.org/2322303002/diff/50001/ui/views/controls/textfield/textfield.cc#newcode258 ...
4 years, 3 months ago (2016-09-19 12:41:50 UTC) #11
Peter Kasting
On 2016/09/19 12:41:50, Elly Jones wrote: > On 2016/09/16 18:52:27, Peter Kasting wrote: > > ...
4 years, 3 months ago (2016-09-19 18:31:33 UTC) #12
Elly Fong-Jones
On 2016/09/19 18:31:33, Peter Kasting wrote: > On 2016/09/19 12:41:50, Elly Jones wrote: > > ...
4 years, 3 months ago (2016-09-20 10:40:53 UTC) #13
Peter Kasting
LGTM https://codereview.chromium.org/2322303002/diff/70001/ui/views/controls/textfield/textfield.h File ui/views/controls/textfield/textfield.h (right): https://codereview.chromium.org/2322303002/diff/70001/ui/views/controls/textfield/textfield.h#newcode408 ui/views/controls/textfield/textfield.h:408: // |Textfield::GetCaretBlinkMs()|. Nit: No || on function names ...
4 years, 3 months ago (2016-09-20 17:15:41 UTC) #14
Peter Kasting
(This definitely seems clearer now! Yay!) You may want to update the CL description, especially ...
4 years, 3 months ago (2016-09-20 17:16:58 UTC) #15
Elly Fong-Jones
https://codereview.chromium.org/2322303002/diff/70001/ui/views/controls/textfield/textfield.h File ui/views/controls/textfield/textfield.h (right): https://codereview.chromium.org/2322303002/diff/70001/ui/views/controls/textfield/textfield.h#newcode408 ui/views/controls/textfield/textfield.h:408: // |Textfield::GetCaretBlinkMs()|. On 2016/09/20 17:15:41, Peter Kasting wrote: > ...
4 years, 3 months ago (2016-09-21 14:00:10 UTC) #16
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/2322303002/90001
4 years, 3 months ago (2016-09-21 14:00:30 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/239244)
4 years, 3 months ago (2016-09-21 14:31:52 UTC) #21
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/2322303002/110001
4 years, 3 months ago (2016-09-23 12:43:08 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: win_clang on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/90790)
4 years, 3 months ago (2016-09-23 13:04:18 UTC) #26
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/2322303002/110001
4 years, 3 months ago (2016-09-23 17:32:35 UTC) #28
commit-bot: I haz the power
Committed patchset #7 (id:110001)
4 years, 3 months ago (2016-09-23 18:22:23 UTC) #30
commit-bot: I haz the power
4 years, 3 months ago (2016-09-23 18:24:48 UTC) #32
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/1c77b2b6c04efe4e5d5d3ec5688616d65b8d0138
Cr-Commit-Position: refs/heads/master@{#420667}

Powered by Google App Engine
This is Rietveld 408576698