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

Issue 17225002: Make user-select:none not to affect editability (Closed)

Created:
7 years, 6 months ago by yosin_UTC9
Modified:
7 years, 6 months ago
Reviewers:
tkent
CC:
blink-reviews, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering
Visibility:
Public.

Description

This patch makes CSS property |user-select:none| not to affect editability as IE and FireFox. However, selection behavior different among browsers: - Chrome: selection works as |user-select:text|. - FireFox: selection works as |user-select:text| for text input and textarea. In other elements, selection can be extended by cursor key. Mouse click always set caret to start of text. - IE: Selection can not be extended neither cursor key nor mouse click. * editing/selection/4866671.html: Replaced with editing/selection/user-select-none-in-editable.html * editing/selection/5779984-1.html: Replaced with editing/selection/user-select-none-in-editable.html and user-select-js-property.html, for style.webkitUserSelect property. * fast/events/standalone-image-drag-to-editable.html: Convert to text test instead of pixel test for updating reference images, since the final image is colored with selection color. BUG=105876 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=152753

Patch Set 1 : 2013-06-19T11:23:11 #

Total comments: 2

Patch Set 2 : 2013-06-19T15:19:21 #

Patch Set 3 : 2013-06-19T18:10:01 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+192 lines, -164 lines) Patch
D LayoutTests/editing/selection/4866671.html View 1 chunk +0 lines, -11 lines 0 comments Download
D LayoutTests/editing/selection/4866671-expected.txt View 1 chunk +0 lines, -23 lines 0 comments Download
D LayoutTests/editing/selection/5779984-1.html View 1 chunk +0 lines, -18 lines 0 comments Download
D LayoutTests/editing/selection/5779984-1-expected.txt View 1 chunk +0 lines, -3 lines 0 comments Download
A LayoutTests/editing/selection/user-select-js-property.html View 1 2 1 chunk +34 lines, -0 lines 0 comments Download
A LayoutTests/editing/selection/user-select-js-property-expected.txt View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
A LayoutTests/editing/selection/user-select-none-in-editable.html View 1 chunk +40 lines, -0 lines 0 comments Download
A LayoutTests/editing/selection/user-select-none-in-editable-expected.txt View 1 chunk +6 lines, -0 lines 0 comments Download
M LayoutTests/fast/events/resources/standalone-image-drag-to-editable-frame.html View 2 chunks +7 lines, -2 lines 0 comments Download
M LayoutTests/fast/events/standalone-image-drag-to-editable.html View 2 chunks +8 lines, -1 line 0 comments Download
M LayoutTests/fast/events/standalone-image-drag-to-editable-expected.txt View 1 chunk +1 line, -26 lines 0 comments Download
M LayoutTests/fast/forms/input-select-webkit-user-select-none.html View 1 chunk +30 lines, -22 lines 0 comments Download
M LayoutTests/fast/forms/input-select-webkit-user-select-none-expected.txt View 1 chunk +4 lines, -3 lines 0 comments Download
A LayoutTests/fast/forms/input-user-select-none.html View 1 chunk +42 lines, -0 lines 0 comments Download
A LayoutTests/fast/forms/input-user-select-none-expected.txt View 1 chunk +6 lines, -0 lines 0 comments Download
D LayoutTests/platform/chromium-android/fast/events/standalone-image-drag-to-editable-expected.png View Binary file 0 comments Download
D LayoutTests/platform/chromium-android/fast/events/standalone-image-drag-to-editable-expected.txt View 1 chunk +0 lines, -26 lines 0 comments Download
D LayoutTests/platform/chromium-linux/fast/events/standalone-image-drag-to-editable-expected.png View Binary file 0 comments Download
D LayoutTests/platform/chromium-mac-lion/fast/events/standalone-image-drag-to-editable-expected.png View Binary file 0 comments Download
D LayoutTests/platform/chromium-mac-snowleopard/fast/events/standalone-image-drag-to-editable-expected.png View Binary file 0 comments Download
D LayoutTests/platform/chromium-mac/fast/events/standalone-image-drag-to-editable-expected.png View Binary file 0 comments Download
D LayoutTests/platform/chromium-win/fast/events/standalone-image-drag-to-editable-expected.png View Binary file 0 comments Download
D LayoutTests/platform/chromium-win/fast/events/standalone-image-drag-to-editable-expected.txt View 1 chunk +0 lines, -26 lines 0 comments Download
M Source/core/dom/Position.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderObject.cpp View 2 chunks +7 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
yosin_UTC9
Could you review this patch? Thanks in advance.
7 years, 6 months ago (2013-06-17 06:50:04 UTC) #1
yosin_UTC9
Hi, Could you review this patch? Thanks in advance. It seems Linux and Win bots ...
7 years, 6 months ago (2013-06-19 03:31:41 UTC) #2
tkent
> editing/selection/4866671.html, editing/selection/5779984-1.html: Replaced with editing/selection/user-select-non-ineditable.html non-ineditable -> none-in-editable https://codereview.chromium.org/17225002/diff/12001/LayoutTests/editing/selection/5779984-1.html File LayoutTests/editing/selection/5779984-1.html (left): https://codereview.chromium.org/17225002/diff/12001/LayoutTests/editing/selection/5779984-1.html#oldcode9 LayoutTests/editing/selection/5779984-1.html:9: ...
7 years, 6 months ago (2013-06-19 03:50:40 UTC) #3
yosin_UTC9
On 2013/06/19 03:50:40, tkent wrote: > > editing/selection/4866671.html, editing/selection/5779984-1.html: Replaced > with editing/selection/user-select-non-ineditable.html > > ...
7 years, 6 months ago (2013-06-19 04:28:46 UTC) #4
tkent
> Setting CSS property from JS is covered by other tests by setting "WebKit*" > ...
7 years, 6 months ago (2013-06-19 04:32:20 UTC) #5
yosin_UTC9
On 2013/06/19 04:32:20, tkent wrote: > > Setting CSS property from JS is covered by ...
7 years, 6 months ago (2013-06-19 04:39:19 UTC) #6
tkent
> I think tests for setting style.WebKitXXX are enough, e.g. I don't think so.
7 years, 6 months ago (2013-06-19 05:05:27 UTC) #7
yosin_UTC9
On 2013/06/19 05:05:27, tkent wrote: > > I think tests for setting style.WebKitXXX are enough, ...
7 years, 6 months ago (2013-06-19 06:41:37 UTC) #8
tkent
> Sure. Added user-select-js-property.html for testing WebKitUserSelect. What we need is a test to verify ...
7 years, 6 months ago (2013-06-19 08:03:47 UTC) #9
yosin_UTC9
On 2013/06/19 08:03:47, tkent wrote: > > Sure. Added user-select-js-property.html for testing WebKitUserSelect. > > ...
7 years, 6 months ago (2013-06-19 09:11:17 UTC) #10
tkent
lgtm
7 years, 6 months ago (2013-06-19 21:10:10 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yosin@chromium.org/17225002/35001
7 years, 6 months ago (2013-06-20 01:44:51 UTC) #12
commit-bot: I haz the power
7 years, 6 months ago (2013-06-20 06:07:44 UTC) #13
Message was sent while issue was closed.
Change committed as 152753

Powered by Google App Engine
This is Rietveld 408576698