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

Issue 18859010: Move colorFromPrimitiveValue from StyleResolverState to TextLinkColors (Closed)

Created:
7 years, 5 months ago by eae
Modified:
7 years, 5 months ago
Reviewers:
dglazkov
CC:
blink-reviews, eae+blinkwatch, leviw+renderwatch, dglazkov+blink, apavlov+blink_chromium.org, adamk+blink_chromium.org, jchaffraix+rendering, darktears
Visibility:
Public.

Description

Move colorFromPrimitiveValue from StyleResolverState to TextLinkColors Break dependencies on state for resolveColorFromPrimitiveValue and move to TextLinkColors. Also renames it to colorFromPrimitiveValue as it no longer modifies the state. This change moves the flag preventing currentColor styles from being cashed out out StyleResolverState and into RenderStyle where the other similar flags are located. It also removes the dependency on Element and RenderStyle by having the caller pass in the current color value. BUG=259018 TEST=No new tests, covered by existing fast/css tests R=dglazkov@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=153939

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -85 lines) Patch
M Source/core/css/CSSGradientValue.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/SVGCSSStyleSelector.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/css/resolver/FilterOperationResolver.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/resolver/StyleResolver.cpp View 1 6 chunks +8 lines, -6 lines 0 comments Download
M Source/core/css/resolver/StyleResolverState.h View 4 chunks +0 lines, -8 lines 0 comments Download
M Source/core/css/resolver/StyleResolverState.cpp View 2 chunks +0 lines, -64 lines 0 comments Download
M Source/core/dom/TextLinkColors.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M Source/core/dom/TextLinkColors.cpp View 1 2 chunks +63 lines, -0 lines 0 comments Download
M Source/core/rendering/style/RenderStyle.h View 5 chunks +7 lines, -1 line 0 comments Download
M Source/core/rendering/style/RenderStyle.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/scripts/templates/StyleBuilderFunctions.cpp.tmpl View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
eae
I don't really need to use visitedDependentColor but using color directly (like we used to ...
7 years, 5 months ago (2013-07-10 19:12:39 UTC) #1
dglazkov
lgtm https://codereview.chromium.org/18859010/diff/1/Source/core/dom/TextLinkColors.h File Source/core/dom/TextLinkColors.h (right): https://codereview.chromium.org/18859010/diff/1/Source/core/dom/TextLinkColors.h#newcode56 Source/core/dom/TextLinkColors.h:56: Color resolveColorFromPrimitiveValue(const CSSPrimitiveValue*, Color currentColor, bool forVisitedLink = ...
7 years, 5 months ago (2013-07-10 20:07:37 UTC) #2
eae
Thanks! https://codereview.chromium.org/18859010/diff/1/Source/core/dom/TextLinkColors.h File Source/core/dom/TextLinkColors.h (right): https://codereview.chromium.org/18859010/diff/1/Source/core/dom/TextLinkColors.h#newcode56 Source/core/dom/TextLinkColors.h:56: Color resolveColorFromPrimitiveValue(const CSSPrimitiveValue*, Color currentColor, bool forVisitedLink = ...
7 years, 5 months ago (2013-07-10 20:12:04 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eae@chromium.org/18859010/8001
7 years, 5 months ago (2013-07-10 20:21:35 UTC) #4
commit-bot: I haz the power
7 years, 5 months ago (2013-07-10 23:10:11 UTC) #5
Message was sent while issue was closed.
Change committed as 153939

Powered by Google App Engine
This is Rietveld 408576698