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

Issue 767343003: Make currentColor keyword in linear-gradient work (Closed)

Created:
6 years ago by rwlbuis
Modified:
6 years ago
Reviewers:
Timothy Loh, esprehn
CC:
blink-reviews, blink-reviews-rendering, zoltan1, blink-reviews-css, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, ed+blinkwatch_opera.com, leviw+renderwatch, dglazkov+blink, apavlov+blink_chromium.org, jchaffraix+rendering, darktears
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Make currentColor keyword in linear-gradient work In the case where the CSSGradientValue is not cacheable (i.e. a color stop uses currentColor), pass the RenderObject so the computed color stops gets resolved against its RenderStyle. Add a reftest for this. BUG=436585 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=186438

Patch Set 1 #

Patch Set 2 : Fix crash #

Patch Set 3 : Add testcase #

Patch Set 4 : Resolve gradient colors later #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -11 lines) Patch
A LayoutTests/fast/css/linear-gradient-currentcolor2.html View 1 2 3 1 chunk +26 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/linear-gradient-currentcolor2-expected.html View 1 2 3 1 chunk +18 lines, -0 lines 0 comments Download
M Source/core/css/CSSGradientValue.h View 1 2 3 3 chunks +3 lines, -3 lines 1 comment Download
M Source/core/css/CSSGradientValue.cpp View 1 2 3 7 chunks +8 lines, -8 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
rwlbuis
PTAL
6 years ago (2014-12-02 19:47:48 UTC) #2
Timothy Loh
On 2014/12/02 19:47:48, rwlbuis wrote: > PTAL Is it possible to delay resolving currentColor in ...
6 years ago (2014-12-02 21:56:21 UTC) #3
rwlbuis
On 2014/12/02 21:56:21, Timothy Loh wrote: > On 2014/12/02 19:47:48, rwlbuis wrote: > > PTAL ...
6 years ago (2014-12-02 22:53:14 UTC) #4
rwlbuis
On 2014/12/02 22:53:14, rwlbuis wrote: > On 2014/12/02 21:56:21, Timothy Loh wrote: > > On ...
6 years ago (2014-12-03 00:23:02 UTC) #5
Timothy Loh
On 2014/12/03 00:23:02, rwlbuis wrote: > On 2014/12/02 22:53:14, rwlbuis wrote: > > On 2014/12/02 ...
6 years ago (2014-12-03 01:09:59 UTC) #6
Timothy Loh
https://codereview.chromium.org/767343003/diff/60001/Source/core/css/CSSGradientValue.h File Source/core/css/CSSGradientValue.h (left): https://codereview.chromium.org/767343003/diff/60001/Source/core/css/CSSGradientValue.h#oldcode61 Source/core/css/CSSGradientValue.h:61: Color m_resolvedColor; I guess we can remove this now?
6 years ago (2014-12-03 01:10:07 UTC) #7
rwlbuis
On 2014/12/03 01:10:07, Timothy Loh wrote: > https://codereview.chromium.org/767343003/diff/60001/Source/core/css/CSSGradientValue.h > File Source/core/css/CSSGradientValue.h (left): > > https://codereview.chromium.org/767343003/diff/60001/Source/core/css/CSSGradientValue.h#oldcode61 ...
6 years ago (2014-12-03 15:56:39 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/767343003/60001
6 years ago (2014-12-03 15:57:03 UTC) #10
commit-bot: I haz the power
6 years ago (2014-12-03 17:10:33 UTC) #11
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=186438

Powered by Google App Engine
This is Rietveld 408576698