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

Issue 23461040: Selection should not set the cursor type to text over the explicitly set cursor type. (Closed)

Created:
7 years, 3 months ago by vanihegde
Modified:
7 years, 3 months ago
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch, vanivhegde
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Selection should not set the cursor type to text over the explicitly set cursor type. When tried to select some text in an area that has style cursor:default set, cursor type changes to text cursor ignoring the cursor style that is explicitly set. When the cursor style is explicitly set as default(or something else), we should not change it to text cursor no matter what we are over or what operation we are performing (be it hovering over the text or selecting the text). We change the cursor type to text during selection. But if there is an explicit cursor style set then this explicitly set cursor style should be given priority over the text style cursor during selection. This makes the blink behavior compatible with that of FF. This also makes the behavior uniform within blink i.e. currently if the area on which cursor:default is set is contenteditable, in this particular case we do not change the cursor style to text on selection. This should be the behavior irrespective of editability. BUG=134999 R=eseidel, leviw, ojan, yosin Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=157946

Patch Set 1 #

Total comments: 1

Patch Set 2 : patch with test case #

Patch Set 3 : Patch updated #

Total comments: 3

Patch Set 4 : Review comments incorporated #

Total comments: 3

Patch Set 5 : Patch for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -7 lines) Patch
A LayoutTests/editing/caret/caret-type-for-user-select-none.html View 1 2 3 4 1 chunk +37 lines, -0 lines 0 comments Download
A LayoutTests/editing/caret/caret-type-for-user-select-none-expected.txt View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download
M Source/core/page/EventHandler.cpp View 1 2 2 chunks +10 lines, -7 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
vanihegde
I tried in vain to automate a test for this. Appreciate any help on this. ...
7 years, 3 months ago (2013-09-10 11:35:12 UTC) #1
yosin_UTC9
You can use window.internals.getCurrentCursorInfo(document), which returns current cursor information, e.g. type=IBeam hotSpot=0,0, for layout test. ...
7 years, 3 months ago (2013-09-13 03:42:44 UTC) #2
vanihegde
On 2013/09/13 03:42:44, Yoshifumi Inoue wrote: > You can use window.internals.getCurrentCursorInfo(document), which returns > current ...
7 years, 3 months ago (2013-09-13 03:57:49 UTC) #3
yosin_UTC9
C++ changes is ACK. See comments for a test script. https://chromiumcodereview.appspot.com/23461040/diff/9001/LayoutTests/editing/caret/caret-type-for-user-select-none.html File LayoutTests/editing/caret/caret-type-for-user-select-none.html (right): https://chromiumcodereview.appspot.com/23461040/diff/9001/LayoutTests/editing/caret/caret-type-for-user-select-none.html#newcode4 ...
7 years, 3 months ago (2013-09-17 09:46:38 UTC) #4
vanihegde
On 2013/09/17 09:46:38, Yoshifumi Inoue wrote: > C++ changes is ACK. > See comments for ...
7 years, 3 months ago (2013-09-17 09:56:46 UTC) #5
ojan
lgtm once you address yosin's comments.
7 years, 3 months ago (2013-09-17 23:45:59 UTC) #6
vanihegde
I think I have addressed all the review comments in my last patch. I did ...
7 years, 3 months ago (2013-09-18 03:26:12 UTC) #7
yosin_UTC9
https://codereview.chromium.org/23461040/diff/16001/LayoutTests/editing/caret/caret-type-for-user-select-none.html File LayoutTests/editing/caret/caret-type-for-user-select-none.html (right): https://codereview.chromium.org/23461040/diff/16001/LayoutTests/editing/caret/caret-type-for-user-select-none.html#newcode4 LayoutTests/editing/caret/caret-type-for-user-select-none.html:4: <p id="description">Tests whether explicitly set caret style is retained ...
7 years, 3 months ago (2013-09-18 03:42:26 UTC) #8
vanihegde
On 2013/09/18 03:42:26, Yoshifumi Inoue wrote: > https://codereview.chromium.org/23461040/diff/16001/LayoutTests/editing/caret/caret-type-for-user-select-none.html > File LayoutTests/editing/caret/caret-type-for-user-select-none.html (right): > > https://codereview.chromium.org/23461040/diff/16001/LayoutTests/editing/caret/caret-type-for-user-select-none.html#newcode4 ...
7 years, 3 months ago (2013-09-18 05:29:11 UTC) #9
yosin_UTC9
ACK
7 years, 3 months ago (2013-09-18 05:34:45 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vani.hegde@samsung.com/23461040/22001
7 years, 3 months ago (2013-09-18 05:34:59 UTC) #11
commit-bot: I haz the power
7 years, 3 months ago (2013-09-18 08:54:34 UTC) #12
Message was sent while issue was closed.
Change committed as 157946

Powered by Google App Engine
This is Rietveld 408576698