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

Issue 778723002: Refactor CSSGradientValue (Closed)

Created:
6 years ago by rwlbuis
Modified:
6 years ago
Reviewers:
Timothy Loh
CC:
blink-reviews, blink-reviews-css, ed+blinkwatch_opera.com, dglazkov+blink, apavlov+blink_chromium.org, darktears
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Refactor CSSGradientValue After r186438 currentColor is evaluated when the actual background image is created. This means m_resolvedColor and gradientWithStylesResolved can be removed when in other code spots we resolve the color using the passed RenderObject. Also with gradientWithStylesResolved gone some call sites can be simplified. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=186701

Patch Set 1 #

Patch Set 2 : Fix compile #

Patch Set 3 : Another approach #

Patch Set 4 : Fix crashes #

Patch Set 5 : Add helper method #

Patch Set 6 : Patch for review #

Total comments: 1

Patch Set 7 : Remove m_colorIsDerivedFromElement #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -47 lines) Patch
M Source/core/css/CSSGradientValue.h View 1 2 2 chunks +0 lines, -2 lines 0 comments Download
M Source/core/css/CSSGradientValue.cpp View 1 2 3 4 5 6 chunks +12 lines, -37 lines 0 comments Download
M Source/core/css/resolver/ElementStyleResources.cpp View 1 2 1 chunk +1 line, -4 lines 0 comments Download
M Source/core/css/resolver/StyleBuilderCustom.cpp View 1 2 1 chunk +1 line, -4 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
rwlbuis
PTAL, WDYT?
6 years ago (2014-12-04 23:48:33 UTC) #2
Timothy Loh
This is probably fine. I still find it weird that gradients don't resolve their styles ...
6 years ago (2014-12-05 00:07:07 UTC) #3
rwlbuis
On 2014/12/05 00:07:07, Timothy Loh wrote: > This is probably fine. I still find it ...
6 years ago (2014-12-05 17:04:01 UTC) #4
Timothy Loh
lgtm
6 years ago (2014-12-07 23:20:43 UTC) #5
andersr
On 2014/12/05 00:07:07, Timothy Loh wrote: > This is probably fine. I still find it ...
6 years ago (2014-12-08 12:13:42 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/778723002/120001
6 years ago (2014-12-08 13:43:18 UTC) #8
commit-bot: I haz the power
6 years ago (2014-12-08 14:51:14 UTC) #9
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=186701

Powered by Google App Engine
This is Rietveld 408576698