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

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

Issue 1420553004: SVG Web Animations: Add compositing pipeline for SVGInterpolationTypes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_svgValueInterpolationType
Patch Set: Created 5 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: third_party/WebKit/Source/core/animation/SampledEffect.cpp
diff --git a/third_party/WebKit/Source/core/animation/SampledEffect.cpp b/third_party/WebKit/Source/core/animation/SampledEffect.cpp
index 07a00d33b69c126f16ec030e124d7a777c690946..06a29fd0a7aca276df6a37e6b80dfeb29bd8aed9 100644
--- a/third_party/WebKit/Source/core/animation/SampledEffect.cpp
+++ b/third_party/WebKit/Source/core/animation/SampledEffect.cpp
@@ -33,22 +33,4 @@ DEFINE_TRACE(SampledEffect)
visitor->trace(m_animation);
}
-void SampledEffect::applySVGUpdate(SVGElement& targetElement)
-{
- for (const auto& interpolation : m_interpolations) {
- if (interpolation->isSVGInterpolation()) {
- toSVGInterpolation(interpolation.get())->apply(targetElement);
- } else if (interpolation->isInvalidatableInterpolation()) {
- const InvalidatableInterpolation& invalidatableInterpolation = toInvalidatableInterpolation(*interpolation);
- if (invalidatableInterpolation.property().isSVGAttribute()) {
- RefPtrWillBeRawPtr<SVGAnimatedPropertyBase> propertyBase = targetElement.propertyFromAttribute(invalidatableInterpolation.property().svgAttribute());
- InterpolationEnvironment environment(targetElement, *propertyBase);
- ActiveInterpolations activeInterpolations(1);
- activeInterpolations[0] = interpolation.get();
- InvalidatableInterpolation::applyStack(activeInterpolations, environment);
- }
- }
- }
-}
-
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698