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

Unified Diff: sky/engine/core/animation/css/CSSAnimatableValueFactory.cpp

Issue 667003003: Remove most of visited link support. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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
Index: sky/engine/core/animation/css/CSSAnimatableValueFactory.cpp
diff --git a/sky/engine/core/animation/css/CSSAnimatableValueFactory.cpp b/sky/engine/core/animation/css/CSSAnimatableValueFactory.cpp
index db2afbcdfd7006e3c1740937b29b6fd37000f662..da792e1b6799f21780484ae0ed916fe1f6fccf84 100644
--- a/sky/engine/core/animation/css/CSSAnimatableValueFactory.cpp
+++ b/sky/engine/core/animation/css/CSSAnimatableValueFactory.cpp
@@ -209,9 +209,8 @@ inline static PassRefPtrWillBeRawPtr<AnimatableValue> createFromFillLayers(const
PassRefPtrWillBeRawPtr<AnimatableValue> CSSAnimatableValueFactory::createFromColor(CSSPropertyID property, const RenderStyle& style)
{
- Color color = style.colorIncludingFallback(property, false);
- Color visitedLinkColor = style.colorIncludingFallback(property, true);
- return AnimatableColor::create(color, visitedLinkColor);
+ Color color = style.colorIncludingFallback(property);
+ return AnimatableColor::create(color);
}
inline static PassRefPtrWillBeRawPtr<AnimatableValue> createFromShapeValue(ShapeValue* value)
@@ -387,7 +386,7 @@ PassRefPtrWillBeRawPtr<AnimatableValue> CSSAnimatableValueFactory::create(CSSPro
case CSSPropertyRight:
return createFromLength(style.right(), style);
case CSSPropertyTextDecorationColor:
- return AnimatableColor::create(style.textDecorationColor().resolve(style.color()), style.visitedLinkTextDecorationColor().resolve(style.visitedLinkColor()));
+ return AnimatableColor::create(style.textDecorationColor().resolve(style.color()));
case CSSPropertyTextIndent:
return createFromLength(style.textIndent(), style);
case CSSPropertyTextShadow:

Powered by Google App Engine
This is Rietveld 408576698