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/PointSVGInterpolation.h

Issue 1418003008: Web Animations: Add SVGPointListInterpolationType (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_fixSVGNeutral
Patch Set: Rebase Created 5 years, 1 month 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/PointSVGInterpolation.h
diff --git a/third_party/WebKit/Source/core/animation/PointSVGInterpolation.h b/third_party/WebKit/Source/core/animation/PointSVGInterpolation.h
deleted file mode 100644
index 7478ce46ea697ca8f289f6fb74c0386d7df98d76..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/animation/PointSVGInterpolation.h
+++ /dev/null
@@ -1,39 +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.
-
-#ifndef PointSVGInterpolation_h
-#define PointSVGInterpolation_h
-
-#include "core/animation/SVGInterpolation.h"
-#include "core/svg/SVGPointList.h"
-#include "wtf/Allocator.h"
-
-namespace blink {
-
-class PointSVGInterpolation {
- STATIC_ONLY(PointSVGInterpolation);
-public:
- typedef SVGPointList ListType;
- typedef void NonInterpolableType;
-
- static PassOwnPtr<InterpolableList> toInterpolableValue(SVGPropertyBase* item)
- {
- OwnPtr<InterpolableList> result = InterpolableList::create(2);
- result->set(0, InterpolableNumber::create(toSVGPoint(item)->x()));
- result->set(1, InterpolableNumber::create(toSVGPoint(item)->y()));
- return result.release();
- }
-
- static PassRefPtrWillBeRawPtr<SVGPoint> fromInterpolableValue(const InterpolableValue& value)
- {
- const InterpolableList& list = toInterpolableList(value);
- return SVGPoint::create(FloatPoint(
- toInterpolableNumber(list.get(0))->value(),
- toInterpolableNumber(list.get(1))->value()));
- }
-};
-
-}
-
-#endif // PointSVGInterpolation_h

Powered by Google App Engine
This is Rietveld 408576698