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

Unified Diff: Source/core/animation/InterpolationPipeline.cpp

Issue 863863004: Implemented additive animations for length (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: More comprehensive non-negative length layout tests Created 5 years, 10 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: Source/core/animation/InterpolationPipeline.cpp
diff --git a/Source/core/animation/InterpolationPipeline.cpp b/Source/core/animation/InterpolationPipeline.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..a2738e91fee56309be81336060078399cef71e02
--- /dev/null
+++ b/Source/core/animation/InterpolationPipeline.cpp
@@ -0,0 +1,26 @@
+// 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/InterpolationPipeline.h"
+
+namespace blink {
+
+void InterpolationPipeline::append(PassRefPtrWillBeRawPtr<InterpolationPipelineStage> stage)
+{
+ RefPtrWillBeRawPtr<InterpolationPipelineStage> newStage = stage;
+
+ if (isEmpty() || newStage->interpolation()->isReplaceOnly()) {
+ m_first = newStage;
+ m_last = newStage;
+ ASSERT(m_first.get() == m_last.get());
+ } else {
+ m_last->setNext(newStage);
+ m_last = newStage;
+ }
+
+ newStage->setNext(nullptr);
+}
+
+}

Powered by Google App Engine
This is Rietveld 408576698