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

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

Issue 1512483004: Simplify and test SVGInterpolation effect application (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove removal Created 5 years 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/SVGInterpolation.cpp
diff --git a/third_party/WebKit/Source/core/animation/SVGInterpolation.cpp b/third_party/WebKit/Source/core/animation/SVGInterpolation.cpp
deleted file mode 100644
index ee5515078a5e7f8322210f7a16637ef84443b781..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/animation/SVGInterpolation.cpp
+++ /dev/null
@@ -1,29 +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 "config.h"
-#include "core/animation/SVGInterpolation.h"
-
-#include "core/svg/SVGAnimateElement.h" // findElementInstances
-
-namespace blink {
-
-void SVGInterpolation::apply(SVGElement& targetElement) const
-{
- SVGElement::InstanceUpdateBlocker blocker(&targetElement);
- RefPtrWillBeRawPtr<SVGPropertyBase> value = interpolatedValue(targetElement);
- SVGElementInstances instances = SVGAnimateElement::findElementInstances(&targetElement);
-
- for (SVGElement* element : instances) {
- RefPtrWillBeRawPtr<SVGAnimatedPropertyBase> animatedProperty =
- element->propertyFromAttribute(attributeName());
- if (animatedProperty) {
- animatedProperty->setAnimatedValue(value);
- element->invalidateSVGAttributes();
- element->svgAttributeChanged(attributeName());
- }
- }
-}
-
-}
« no previous file with comments | « third_party/WebKit/Source/core/animation/SVGInterpolation.h ('k') | third_party/WebKit/Source/core/core.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698