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

Unified Diff: Source/core/css/SVGCSSStyleSelector.cpp

Issue 18859010: Move colorFromPrimitiveValue from StyleResolverState to TextLinkColors (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/css/CSSGradientValue.cpp ('k') | Source/core/css/resolver/FilterOperationResolver.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/SVGCSSStyleSelector.cpp
diff --git a/Source/core/css/SVGCSSStyleSelector.cpp b/Source/core/css/SVGCSSStyleSelector.cpp
index dd8baa63b72e76efe73c3956448ddb7e394f8d62..1486c84abf19349f6a709edfd97ba7309b3cda3c 100644
--- a/Source/core/css/SVGCSSStyleSelector.cpp
+++ b/Source/core/css/SVGCSSStyleSelector.cpp
@@ -105,7 +105,7 @@ void StyleResolver::applySVGProperty(CSSPropertyID id, CSSValue* value)
primitiveValue = toCSSPrimitiveValue(value);
// FIXME: This should be a const StyleResolverState, but
- // unfortunately resolveColorFromPrimitiveValue
+ // unfortunately colorFromPrimitiveValue
// has side-effects and is thus not const.
StyleResolverState& state = m_state;
SVGRenderStyle* svgstyle = state.style()->accessSVGStyle();
@@ -568,7 +568,7 @@ void StyleResolver::applySVGProperty(CSSPropertyID id, CSSValue* value)
int blur = item->blur ? item->blur->computeLength<int>(state.style(), state.rootElementStyle()) : 0;
Color color;
if (item->color)
- color = state.resolveColorFromPrimitiveValue(item->color.get());
+ color = state.document()->textLinkColors().colorFromPrimitiveValue(item->color.get(), state.style()->visitedDependentColor(CSSPropertyColor));
// -webkit-svg-shadow does should not have a spread or style
ASSERT(!item->spread);
« no previous file with comments | « Source/core/css/CSSGradientValue.cpp ('k') | Source/core/css/resolver/FilterOperationResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698