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

Issue 14859008: Use a block cursor in overtype mode (Closed)

Created:
7 years, 7 months ago by svillar
Modified:
7 years, 6 months ago
CC:
blink-reviews, csaavedra
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Use a block cursor in overtype mode Overtype mode will use block cursor instead of a caret to highlight the next character to be replaced. It will fully cover the next character to be replaced (except at the end of a line where the usual blinking caret will be shown). This new block cursor is internally implemented as a selection (not exposed to JavaScript) because the selection code knows how to deal with bidi text. R= BUG=237584 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=152662

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+298 lines, -3 lines) Patch
A LayoutTests/editing/selection/block-cursor-overtype-mode.html View 1 1 chunk +27 lines, -0 lines 0 comments Download
A LayoutTests/editing/selection/block-cursor-overtype-mode-expected.txt View 1 1 chunk +81 lines, -0 lines 0 comments Download
A LayoutTests/editing/selection/block-cursor-overtype-mode-rtl.html View 1 1 chunk +27 lines, -0 lines 0 comments Download
A LayoutTests/editing/selection/block-cursor-overtype-mode-rtl-expected.txt View 1 1 chunk +81 lines, -0 lines 0 comments Download
A LayoutTests/editing/selection/resources/block-cursor-utils.js View 1 1 chunk +36 lines, -0 lines 0 comments Download
M Source/core/editing/Editor.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/Editor.cpp View 1 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/editing/FrameSelection.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M Source/core/editing/FrameSelection.cpp View 1 4 chunks +20 lines, -2 lines 0 comments Download
M Source/core/testing/Internals.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/testing/Internals.cpp View 1 1 chunk +11 lines, -0 lines 0 comments Download
M Source/core/testing/Internals.idl View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
svillar
The patch landed in WK http://trac.webkit.org/changeset/149432
7 years, 7 months ago (2013-05-02 19:20:21 UTC) #1
dglazkov
The change looks mechanically good, but I am not the right person to look at ...
7 years, 7 months ago (2013-05-06 16:35:45 UTC) #2
esprehn
https://codereview.chromium.org/14859008/diff/1/Source/core/editing/FrameSelection.cpp File Source/core/editing/FrameSelection.cpp (right): https://codereview.chromium.org/14859008/diff/1/Source/core/editing/FrameSelection.cpp#newcode1743 Source/core/editing/FrameSelection.cpp:1743: // the FrameSelection will paint a blinking caret as ...
7 years, 7 months ago (2013-05-06 16:42:10 UTC) #3
svillar
On 2013/05/06 16:42:10, esprehn wrote: > https://codereview.chromium.org/14859008/diff/1/Source/core/editing/FrameSelection.cpp > File Source/core/editing/FrameSelection.cpp (right): > > https://codereview.chromium.org/14859008/diff/1/Source/core/editing/FrameSelection.cpp#newcode1743 > ...
7 years, 7 months ago (2013-05-06 16:59:43 UTC) #4
leviw_travelin_and_unemployed
I agree that the code appears functionally sound, but I'm unsure of how comfortable I ...
7 years, 7 months ago (2013-05-06 18:40:37 UTC) #5
ojan
How do you turn on overwrite mode in Chrome?
7 years, 7 months ago (2013-05-07 01:21:19 UTC) #6
svillar
On 2013/05/07 01:21:19, ojan wrote: > How do you turn on overwrite mode in Chrome? ...
7 years, 7 months ago (2013-05-07 07:41:02 UTC) #7
svillar
On 2013/05/07 07:41:02, svillar wrote: > On 2013/05/07 01:21:19, ojan wrote: > > How do ...
7 years, 7 months ago (2013-05-13 11:37:36 UTC) #8
svillar
ping reviewers. As mentioned above, the patch for https://codereview.chromium.org/14842018/ enables overtype mode in chromium so ...
7 years, 7 months ago (2013-05-20 17:08:47 UTC) #9
svillar
On 2013/05/20 17:08:47, svillar wrote: > ping reviewers. As mentioned above, the patch for > ...
7 years, 7 months ago (2013-05-22 17:06:57 UTC) #10
csaavedra
7 years, 6 months ago (2013-06-07 15:10:41 UTC) #11
esprehn
https://codereview.chromium.org/14859008/diff/1/LayoutTests/editing/selection/block-cursor-overtype-mode-expected.txt File LayoutTests/editing/selection/block-cursor-overtype-mode-expected.txt (right): https://codereview.chromium.org/14859008/diff/1/LayoutTests/editing/selection/block-cursor-overtype-mode-expected.txt#newcode10 LayoutTests/editing/selection/block-cursor-overtype-mode-expected.txt:10: getSelection().collapse(textNode, 0) It'd be nicer if these tests were ...
7 years, 6 months ago (2013-06-12 19:25:30 UTC) #12
svillar
https://codereview.chromium.org/14859008/diff/1/Source/core/editing/Editor.cpp File Source/core/editing/Editor.cpp (right): https://codereview.chromium.org/14859008/diff/1/Source/core/editing/Editor.cpp#newcode2918 Source/core/editing/Editor.cpp:2918: m_overwriteModeEnabled = !m_overwriteModeEnabled; On 2013/06/12 19:25:30, esprehn wrote: > ...
7 years, 6 months ago (2013-06-13 08:53:06 UTC) #13
esprehn
LGTM.
7 years, 6 months ago (2013-06-18 18:36:03 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/svillar@igalia.com/14859008/17001
7 years, 6 months ago (2013-06-18 18:36:14 UTC) #15
commit-bot: I haz the power
7 years, 6 months ago (2013-06-18 20:20:43 UTC) #16
Message was sent while issue was closed.
Change committed as 152662

Powered by Google App Engine
This is Rietveld 408576698