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

Unified Diff: third_party/WebKit/Source/core/animation/DefaultSVGInterpolation.cpp

Issue 1607633003: Code cleanup: Remove SVGInterpolation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused assertion variable to make release compile Created 4 years, 11 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/DefaultSVGInterpolation.cpp
diff --git a/third_party/WebKit/Source/core/animation/DefaultSVGInterpolation.cpp b/third_party/WebKit/Source/core/animation/DefaultSVGInterpolation.cpp
deleted file mode 100644
index 09a80a76b06f35b5730fb1e6b1596d7187bc55bf..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/animation/DefaultSVGInterpolation.cpp
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "core/animation/DefaultSVGInterpolation.h"
-
-#include "core/svg/SVGElement.h"
-
-namespace blink {
-
-DefaultSVGInterpolation::DefaultSVGInterpolation(SVGPropertyBase* start, SVGPropertyBase* end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> attribute)
- : SVGInterpolation(InterpolableBool::create(false), InterpolableBool::create(true), attribute)
- , m_start(start)
- , m_end(end)
-{
-}
-
-PassRefPtrWillBeRawPtr<SVGPropertyBase> DefaultSVGInterpolation::interpolatedValue(SVGElement& element) const
-{
- if (toInterpolableBool(m_cachedValue.get())->value())
- return m_end;
-
- return m_start;
-}
-
-}

Powered by Google App Engine
This is Rietveld 408576698