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

Unified Diff: Source/core/svg/SVGAnimatedColor.cpp

Issue 750333004: Change rendering code to use RenderObject::resolveColor (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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/rendering/svg/SVGRenderTreeAsText.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGAnimatedColor.cpp
diff --git a/Source/core/svg/SVGAnimatedColor.cpp b/Source/core/svg/SVGAnimatedColor.cpp
index d765ff8a1cdad31da1baa467d790c3e74cf087ce..380f6202392ae35fecf3ccb16db4fc6cf8ba13d3 100644
--- a/Source/core/svg/SVGAnimatedColor.cpp
+++ b/Source/core/svg/SVGAnimatedColor.cpp
@@ -43,7 +43,7 @@ static inline Color fallbackColorForCurrentColor(SVGElement* targetElement)
{
ASSERT(targetElement);
if (RenderObject* targetRenderer = targetElement->renderer())
- return targetRenderer->style()->visitedDependentColor(CSSPropertyColor);
+ return targetRenderer->resolveColor(CSSPropertyColor);
else
return Color::transparent;
}
« no previous file with comments | « Source/core/rendering/svg/SVGRenderTreeAsText.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698