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

Issue 19477010: Background color applied on a selection of text is lost when the selection is deleted (Closed)

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

Description

Background color applied on a selection of text is lost when the selection is deleted While deleting a selection, only inheritable style properties were saved. Since background color is considered as noninheritable style property, it was not being saved and hence was lost. Because of this background color set on a selection of text was lost when the selection was deleted and if new text is inserted after this it would not have the background color set. Before deleting a selection we should save all style properties applied on that particular selection. Modified accordingly. NOTE: This patch makes chrome behavior compatible with that of IE and FF. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=158906

Patch Set 1 #

Total comments: 7

Patch Set 2 : Review comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -1 line) Patch
A LayoutTests/editing/style/background-color-retained.html View 1 1 chunk +21 lines, -0 lines 0 comments Download
A LayoutTests/editing/style/background-color-retained-expected.txt View 1 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/editing/DeleteSelectionCommand.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
vanihegde
7 years, 5 months ago (2013-07-26 08:25:51 UTC) #1
yosin_UTC9
It seems IE and FireFox keep background-color, please mention about this in description. Since, this ...
7 years, 3 months ago (2013-09-09 04:57:48 UTC) #2
yosin_UTC9
How about adding background-color into inheritableEditingProperties()? It seems we remove background-color: transparent in EditingStyle::removeStyleFromRulesAndContext().
7 years, 3 months ago (2013-09-09 05:24:01 UTC) #3
vanihegde
On 2013/09/09 04:57:48, Yoshifumi Inoue wrote: > It seems IE and FireFox keep background-color, please ...
7 years, 2 months ago (2013-09-30 11:32:48 UTC) #4
vanihegde
On 2013/09/09 05:24:01, Yoshifumi Inoue wrote: > How about adding background-color into inheritableEditingProperties()? It seems ...
7 years, 2 months ago (2013-09-30 11:33:35 UTC) #5
yosin_UTC9
On 2013/09/30 11:33:35, vanihegde wrote: > On 2013/09/09 05:24:01, Yoshifumi Inoue wrote: > > How ...
7 years, 2 months ago (2013-10-01 01:30:22 UTC) #6
ojan
The C++ side of this patch LGTM. Please address Yoshifumi's comments on the test. I ...
7 years, 2 months ago (2013-10-02 01:04:13 UTC) #7
vanihegde
On 2013/10/02 01:04:13, ojan wrote: > The C++ side of this patch LGTM. Please address ...
7 years, 2 months ago (2013-10-03 05:55:35 UTC) #8
vanihegde
Using span.style.backgroundColor was wrong, as it was always returning backgroundColor to be green even if ...
7 years, 2 months ago (2013-10-03 05:58:49 UTC) #9
ojan
lgtm
7 years, 2 months ago (2013-10-03 23:30:20 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/19477010/11001
7 years, 2 months ago (2013-10-03 23:31:36 UTC) #11
commit-bot: I haz the power
7 years, 2 months ago (2013-10-04 07:52:03 UTC) #12
Message was sent while issue was closed.
Change committed as 158906

Powered by Google App Engine
This is Rietveld 408576698