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

Side by Side Diff: third_party/WebKit/Source/core/animation/StackableInterpolation.h

Issue 2236193002: WIP: Implement CSS transitions on top of InterpolationTypes instead of AnimatableValues (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_environmentStyle
Patch Set: Created 4 years, 4 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef StackableInterpolation_h
6 #define StackableInterpolation_h
7
8 #include "core/animation/Interpolation.h"
9
10 namespace blink {
11
12 class InterpolationEnvironment;
13 class TypedInterpolationValue;
14 class UnderlyingValueOwner;
15
16 class StackableInterpolation : public Interpolation {
17 public:
18 static void applyStack(const ActiveInterpolations&, InterpolationEnvironment &);
19
20 virtual bool isStackableInterpolation() const { return true; }
21
22 protected:
23 virtual std::unique_ptr<TypedInterpolationValue> maybeConvertUnderlyingValue (const InterpolationEnvironment&) const = 0;
24 virtual const TypedInterpolationValue* ensureValidInterpolation(const Interp olationEnvironment&, const UnderlyingValueOwner&) const = 0;
25 virtual void setFlagIfInheritUsed(InterpolationEnvironment&) const {}
26 virtual double underlyingFraction() const = 0;
27 };
28
29 DEFINE_TYPE_CASTS(StackableInterpolation, Interpolation, value, value->isStackab leInterpolation(), value.isStackableInterpolation());
30
31 } // namespace blink
32
33 #endif // StackableInterpolation_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698