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

Issue 950623002: Store resolved color in AppliedTextDecoration (Closed)

Created:
5 years, 10 months ago by samahto
Modified:
4 years, 10 months ago
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Store resolved color in AppliedTextDecoration Now AppliedTextDecoration store resolved color instead of currentColor. This patch also adjust the simple underline optimization so that it is still valid. Now optimization works as long as node underline decoration style is not Invalidated. BUG=460698 TEST=LayoutTests/fast/css/text-decoration-color-on-hover.html

Patch Set 1 #

Total comments: 2

Patch Set 2 : Patch in progress(simple underline optimization removed) #

Patch Set 3 : Updated patch with underline optimization handling #

Total comments: 8

Patch Set 4 : Applied review comments. #

Total comments: 5

Patch Set 5 : removed inherited_flags.m_textunderline #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -56 lines) Patch
A LayoutTests/fast/css/text-decoration-color-on-hover.html View 1 2 3 4 1 chunk +48 lines, -0 lines 1 comment Download
A LayoutTests/fast/css/text-decoration-color-on-hover-expected.html View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download
M Source/core/css/resolver/StyleAdjuster.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/layout/LayoutObject.h View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download
M Source/core/layout/LayoutObject.cpp View 1 2 3 4 3 chunks +13 lines, -12 lines 0 comments Download
M Source/core/paint/InlineTextBoxPainter.cpp View 1 2 3 4 5 chunks +8 lines, -7 lines 1 comment Download
M Source/core/style/AppliedTextDecoration.h View 1 2 3 1 chunk +9 lines, -5 lines 0 comments Download
M Source/core/style/AppliedTextDecoration.cpp View 1 2 3 1 chunk +4 lines, -4 lines 1 comment Download
M Source/core/style/ComputedStyle.h View 1 2 3 4 5 chunks +2 lines, -4 lines 1 comment Download
M Source/core/style/ComputedStyle.cpp View 1 2 3 4 4 chunks +20 lines, -17 lines 2 comments Download

Messages

Total messages: 45 (3 generated)
samahto
5 years, 10 months ago (2015-02-21 12:42:16 UTC) #1
samahto
5 years, 10 months ago (2015-02-21 12:43:58 UTC) #3
samahto
plz review this.
5 years, 10 months ago (2015-02-22 08:12:11 UTC) #4
Timothy Loh
I'm not sure what the actual bug here is since the two function calls are ...
5 years, 10 months ago (2015-02-22 22:49:37 UTC) #5
pdr.
On 2015/02/22 at 22:49:37, timloh wrote: > Also if possible it would be better to ...
5 years, 10 months ago (2015-02-24 03:58:34 UTC) #6
rune
On 2015/02/24 03:58:34, pdr wrote: > On 2015/02/22 at 22:49:37, timloh wrote: > > Also ...
5 years, 10 months ago (2015-02-24 09:03:57 UTC) #7
samahto
5 years, 10 months ago (2015-02-24 19:12:29 UTC) #8
samahto
https://codereview.chromium.org/950623002/diff/1/Source/core/layout/style/LayoutStyle.cpp File Source/core/layout/style/LayoutStyle.cpp (right): https://codereview.chromium.org/950623002/diff/1/Source/core/layout/style/LayoutStyle.cpp#newcode1293 Source/core/layout/style/LayoutStyle.cpp:1293: StyleColor styleColor = visitedDependentColor(CSSPropertyTextDecorationColor); On 2015/02/22 22:49:37, Timothy Loh ...
5 years, 10 months ago (2015-02-24 19:12:43 UTC) #9
samahto
while debugging issue i found decorationColorIncludingFallback return wrong color but visitedDependentColor return correct color. this ...
5 years, 10 months ago (2015-02-25 04:06:04 UTC) #10
samahto
@Timothy I have put comment explaining things. I need your further view in this before ...
5 years, 10 months ago (2015-02-25 04:09:38 UTC) #11
andruud
On 2015/02/25 04:06:04, samahto wrote: > Before this, > https://codereview.chromium.org/746173002/diff/1/Source/core/rendering/style/RenderStyle.cpp > line: 1407 we use ...
5 years, 10 months ago (2015-02-25 17:40:51 UTC) #13
samahto
On 2015/02/25 17:40:51, andruud wrote: > On 2015/02/25 04:06:04, samahto wrote: > > Before this, ...
5 years, 10 months ago (2015-02-25 18:53:53 UTC) #14
Timothy Loh
On 2015/02/25 17:40:51, andruud wrote: > On 2015/02/25 04:06:04, samahto wrote: > > Before this, ...
5 years, 10 months ago (2015-02-26 05:28:33 UTC) #15
Timothy Loh
On 2015/02/26 05:28:33, Timothy Loh wrote: > On 2015/02/25 17:40:51, andruud wrote: > > On ...
5 years, 10 months ago (2015-02-26 08:14:57 UTC) #16
samahto
On 2015/02/26 08:14:57, Timothy Loh wrote: > On 2015/02/26 05:28:33, Timothy Loh wrote: > > ...
5 years, 10 months ago (2015-02-26 16:57:44 UTC) #17
Timothy Loh
There's a few outstanding issues here: - We should be able to test this by ...
5 years, 10 months ago (2015-02-26 23:45:04 UTC) #18
andersr
andruud == andersr, BTW. > - Change AppliedTextDecoration to store Color instead of StyleColor since ...
5 years, 9 months ago (2015-02-27 10:53:52 UTC) #19
samahto
On 2015/02/27 10:53:52, andersr wrote: > andruud == andersr, BTW. > > > - Change ...
5 years, 9 months ago (2015-03-01 20:02:28 UTC) #20
Timothy Loh
On 2015/03/01 20:02:28, samahto wrote: > I have updated the patch with simple underline optimization ...
5 years, 9 months ago (2015-03-09 07:16:39 UTC) #21
samahto
On 2015/03/09 07:16:39, Timothy Loh wrote: > On 2015/03/01 20:02:28, samahto wrote: > > I ...
5 years, 9 months ago (2015-03-17 16:03:18 UTC) #22
samahto
Hi timothy, andruud Could you review the latest patch uploaded?
5 years, 9 months ago (2015-03-24 07:04:41 UTC) #23
Timothy Loh
This still seems a bit complicated to me. It's probably easier if do what Anders ...
5 years, 9 months ago (2015-03-25 00:26:23 UTC) #24
Timothy Loh
Are you still working on this?
5 years, 7 months ago (2015-04-29 00:13:50 UTC) #25
samahto
Hi Sorry I was out of touch for few days. I will update the bug ...
5 years, 7 months ago (2015-04-29 03:03:07 UTC) #26
samahto
https://codereview.chromium.org/950623002/diff/40001/LayoutTests/fast/css/text-decoration-color-on-hover.html File LayoutTests/fast/css/text-decoration-color-on-hover.html (right): https://codereview.chromium.org/950623002/diff/40001/LayoutTests/fast/css/text-decoration-color-on-hover.html#newcode30 LayoutTests/fast/css/text-decoration-color-on-hover.html:30: testRunner.waitUntilDone(); On 2015/03/25 00:26:23, Timothy Loh wrote: > We ...
5 years, 7 months ago (2015-04-30 20:06:44 UTC) #27
Timothy Loh
https://codereview.chromium.org/950623002/diff/40001/LayoutTests/fast/css/text-decoration-color-on-hover.html File LayoutTests/fast/css/text-decoration-color-on-hover.html (right): https://codereview.chromium.org/950623002/diff/40001/LayoutTests/fast/css/text-decoration-color-on-hover.html#newcode30 LayoutTests/fast/css/text-decoration-color-on-hover.html:30: testRunner.waitUntilDone(); On 2015/04/30 20:06:44, samahto wrote: > On 2015/03/25 ...
5 years, 7 months ago (2015-05-04 00:35:16 UTC) #28
samahto
On 2015/05/04 00:35:16, Timothy Loh wrote: > https://codereview.chromium.org/950623002/diff/40001/LayoutTests/fast/css/text-decoration-color-on-hover.html > File LayoutTests/fast/css/text-decoration-color-on-hover.html (right): > > https://codereview.chromium.org/950623002/diff/40001/LayoutTests/fast/css/text-decoration-color-on-hover.html#newcode30 ...
5 years, 7 months ago (2015-05-05 02:46:31 UTC) #29
Timothy Loh
Please don't remove the automatically added CC-ed people and lists. I think we should move ...
5 years, 7 months ago (2015-05-05 06:51:18 UTC) #30
samahto
On 2015/05/05 06:51:18, Timothy Loh wrote: > Please don't remove the automatically added CC-ed people ...
5 years, 7 months ago (2015-05-05 15:31:25 UTC) #31
samahto
https://codereview.chromium.org/950623002/diff/60001/LayoutTests/fast/css/text-decoration-color-on-hover.html File LayoutTests/fast/css/text-decoration-color-on-hover.html (right): https://codereview.chromium.org/950623002/diff/60001/LayoutTests/fast/css/text-decoration-color-on-hover.html#newcode30 LayoutTests/fast/css/text-decoration-color-on-hover.html:30: function busyWait(millis) { On 2015/05/05 06:51:18, Timothy Loh wrote: ...
5 years, 7 months ago (2015-05-05 15:45:52 UTC) #32
Timothy Loh
https://codereview.chromium.org/950623002/diff/60001/LayoutTests/fast/css/text-decoration-color-on-hover.html File LayoutTests/fast/css/text-decoration-color-on-hover.html (right): https://codereview.chromium.org/950623002/diff/60001/LayoutTests/fast/css/text-decoration-color-on-hover.html#newcode30 LayoutTests/fast/css/text-decoration-color-on-hover.html:30: function busyWait(millis) { On 2015/05/05 15:45:51, samahto wrote: > ...
5 years, 7 months ago (2015-05-06 01:59:00 UTC) #33
samahto
On 2015/05/05 06:51:18, Timothy Loh wrote: > Please don't remove the automatically added CC-ed people ...
5 years, 7 months ago (2015-05-17 17:05:46 UTC) #34
samahto
https://codereview.chromium.org/950623002/diff/80001/Source/core/style/ComputedStyle.cpp File Source/core/style/ComputedStyle.cpp (right): https://codereview.chromium.org/950623002/diff/80001/Source/core/style/ComputedStyle.cpp#newcode1334 Source/core/style/ComputedStyle.cpp:1334: if (hasOutOfFlowPosition() || isFloating()) { [spec says]: "text decorations ...
5 years, 7 months ago (2015-05-17 17:12:40 UTC) #35
samahto
On 2015/05/17 17:12:40, samahto wrote: > https://codereview.chromium.org/950623002/diff/80001/Source/core/style/ComputedStyle.cpp > File Source/core/style/ComputedStyle.cpp (right): > > https://codereview.chromium.org/950623002/diff/80001/Source/core/style/ComputedStyle.cpp#newcode1334 > ...
5 years, 7 months ago (2015-05-25 05:54:23 UTC) #36
samahto
On 2015/05/17 17:12:40, samahto wrote: > https://codereview.chromium.org/950623002/diff/80001/Source/core/style/ComputedStyle.cpp > File Source/core/style/ComputedStyle.cpp (right): > > https://codereview.chromium.org/950623002/diff/80001/Source/core/style/ComputedStyle.cpp#newcode1334 > ...
5 years, 7 months ago (2015-05-25 05:54:26 UTC) #37
Timothy Loh
+wkorman to cc, sounds like you might be looking at text decorations now?
5 years, 6 months ago (2015-06-22 01:33:54 UTC) #38
wkorman
On 2015/06/22 at 01:33:54, timloh wrote: > +wkorman to cc, sounds like you might be ...
5 years, 5 months ago (2015-07-01 15:09:17 UTC) #39
wkorman
https://codereview.chromium.org/950623002/diff/80001/LayoutTests/fast/css/text-decoration-color-on-hover.html File LayoutTests/fast/css/text-decoration-color-on-hover.html (right): https://codereview.chromium.org/950623002/diff/80001/LayoutTests/fast/css/text-decoration-color-on-hover.html#newcode14 LayoutTests/fast/css/text-decoration-color-on-hover.html:14: .nextouter{ space before { https://codereview.chromium.org/950623002/diff/80001/Source/core/paint/InlineTextBoxPainter.cpp File Source/core/paint/InlineTextBoxPainter.cpp (right): https://codereview.chromium.org/950623002/diff/80001/Source/core/paint/InlineTextBoxPainter.cpp#newcode682 ...
5 years, 5 months ago (2015-07-01 15:16:15 UTC) #41
pdr.
Ping? This review looked promising.
5 years, 1 month ago (2015-10-26 22:47:08 UTC) #42
Timothy Loh
On 2015/10/26 22:47:08, pdr wrote: > Ping? This review looked promising. sashab@ has been looking ...
5 years, 1 month ago (2015-10-27 00:00:20 UTC) #43
Timothy Loh
Closing this issue as it has been superseded by https://codereview.chromium.org/1328283005/ (although that one is stalled ...
4 years, 10 months ago (2016-02-22 05:12:02 UTC) #44
Timothy Loh
4 years, 10 months ago (2016-02-22 05:12:03 UTC) #45
Message was sent while issue was closed.
Closing this issue as it has been superseded by
https://codereview.chromium.org/1328283005/ (although that one is stalled at the
moment too..)

Powered by Google App Engine
This is Rietveld 408576698