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

Unified Diff: third_party/WebKit/Source/core/animation/animatable/AnimatableSVGPaint.h

Issue 2750293003: Delete unused AnimatableValue code (Closed)
Patch Set: Fix unit tests Created 3 years, 9 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: third_party/WebKit/Source/core/animation/animatable/AnimatableSVGPaint.h
diff --git a/third_party/WebKit/Source/core/animation/animatable/AnimatableSVGPaint.h b/third_party/WebKit/Source/core/animation/animatable/AnimatableSVGPaint.h
index ade4eb154b94b0de90935a73cea0e9d747b83a1b..20c19784128fd63011a8afe954bfa8e29659e099 100644
--- a/third_party/WebKit/Source/core/animation/animatable/AnimatableSVGPaint.h
+++ b/third_party/WebKit/Source/core/animation/animatable/AnimatableSVGPaint.h
@@ -46,30 +46,10 @@ class AnimatableSVGPaint final : public AnimatableValue {
const Color& visitedLinkColor,
const String& uri,
const String& visitedLinkURI) {
- return create(type, visitedLinkType,
- AnimatableColor::create(color, visitedLinkColor), uri,
- visitedLinkURI);
- }
- static PassRefPtr<AnimatableSVGPaint> create(
- SVGPaintType type,
- SVGPaintType visitedLinkType,
- PassRefPtr<AnimatableColor> color,
- const String& uri,
- const String& visitedLinkURI) {
return adoptRef(new AnimatableSVGPaint(
- type, visitedLinkType, std::move(color), uri, visitedLinkURI));
+ type, visitedLinkType, AnimatableColor::create(color, visitedLinkColor),
+ uri, visitedLinkURI));
}
- SVGPaintType paintType() const { return m_type; }
- SVGPaintType visitedLinkPaintType() const { return m_visitedLinkType; }
- Color getColor() const { return m_color->getColor(); }
- Color visitedLinkColor() const { return m_color->visitedLinkColor(); }
- const String& uri() const { return m_uri; }
- const String& visitedLinkURI() const { return m_visitedLinkURI; }
-
- protected:
- PassRefPtr<AnimatableValue> interpolateTo(const AnimatableValue*,
- double fraction) const override;
- bool usesDefaultInterpolationWith(const AnimatableValue*) const override;
private:
AnimatableSVGPaint(SVGPaintType type,

Powered by Google App Engine
This is Rietveld 408576698