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

Unified Diff: sky/engine/core/animation/animatable/AnimatableColor.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/animatable/AnimatableColor.cpp
diff --git a/sky/engine/core/animation/animatable/AnimatableColor.cpp b/sky/engine/core/animation/animatable/AnimatableColor.cpp
index 51361568dc1b9cd56b8176e6c2c3d5c3ed147e73..ef8285b201dc995552105bd0c5eaee01976b4f19 100644
--- a/sky/engine/core/animation/animatable/AnimatableColor.cpp
+++ b/sky/engine/core/animation/animatable/AnimatableColor.cpp
@@ -92,22 +92,21 @@ double AnimatableColorImpl::distanceTo(const AnimatableColorImpl& other) const
+ square(m_alpha - other.m_alpha));
}
-PassRefPtrWillBeRawPtr<AnimatableColor> AnimatableColor::create(const AnimatableColorImpl& color, const AnimatableColorImpl& visitedLinkColor)
+PassRefPtrWillBeRawPtr<AnimatableColor> AnimatableColor::create(const AnimatableColorImpl& color)
{
- return adoptRefWillBeNoop(new AnimatableColor(color, visitedLinkColor));
+ return adoptRefWillBeNoop(new AnimatableColor(color));
}
PassRefPtrWillBeRawPtr<AnimatableValue> AnimatableColor::interpolateTo(const AnimatableValue* value, double fraction) const
{
const AnimatableColor* color = toAnimatableColor(value);
- return create(m_color.interpolateTo(color->m_color, fraction),
- m_visitedLinkColor.interpolateTo(color->m_visitedLinkColor, fraction));
+ return create(m_color.interpolateTo(color->m_color, fraction));
}
bool AnimatableColor::equalTo(const AnimatableValue* value) const
{
const AnimatableColor* color = toAnimatableColor(value);
- return m_color == color->m_color && m_visitedLinkColor == color->m_visitedLinkColor;
+ return m_color == color->m_color;
}
double AnimatableColor::distanceTo(const AnimatableValue* value) const

Powered by Google App Engine
This is Rietveld 408576698