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

Unified Diff: sky/engine/core/animation/animatable/AnimatableColor.h

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.h
diff --git a/sky/engine/core/animation/animatable/AnimatableColor.h b/sky/engine/core/animation/animatable/AnimatableColor.h
index cca1c4e315318c86f0e6ee8ae812b2b8d9c2fcc6..7589a0588c645e9c1b0f3742b2817cd349256d6f 100644
--- a/sky/engine/core/animation/animatable/AnimatableColor.h
+++ b/sky/engine/core/animation/animatable/AnimatableColor.h
@@ -58,9 +58,8 @@ private:
// but inefficient.
class AnimatableColor FINAL : public AnimatableValue {
public:
- static PassRefPtrWillBeRawPtr<AnimatableColor> create(const AnimatableColorImpl&, const AnimatableColorImpl& visitedLinkColor);
+ static PassRefPtrWillBeRawPtr<AnimatableColor> create(const AnimatableColorImpl&);
Color color() const { return m_color.toColor(); }
- Color visitedLinkColor() const { return m_visitedLinkColor.toColor(); }
virtual void trace(Visitor* visitor) OVERRIDE { AnimatableValue::trace(visitor); }
@@ -68,16 +67,14 @@ protected:
virtual PassRefPtrWillBeRawPtr<AnimatableValue> interpolateTo(const AnimatableValue*, double fraction) const OVERRIDE;
private:
- AnimatableColor(const AnimatableColorImpl& color, const AnimatableColorImpl& visitedLinkColor)
+ AnimatableColor(const AnimatableColorImpl& color)
: m_color(color)
- , m_visitedLinkColor(visitedLinkColor)
{
}
virtual AnimatableType type() const OVERRIDE { return TypeColor; }
virtual bool equalTo(const AnimatableValue*) const OVERRIDE;
virtual double distanceTo(const AnimatableValue*) const OVERRIDE;
const AnimatableColorImpl m_color;
- const AnimatableColorImpl m_visitedLinkColor;
};
DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(AnimatableColor, isColor());

Powered by Google App Engine
This is Rietveld 408576698