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

Side by Side Diff: Source/core/animation/InterpolationPipeline.h

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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 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 InterpolationPipeline_h
6 #define InterpolationPipeline_h
7
8 #include "core/animation/InterpolationPipelineStage.h"
9 #include "platform/heap/Handle.h"
10
11 namespace blink {
12
13 class InterpolationPipeline : public RefCountedWillBeGarbageCollected<Interpolat ionPipeline> {
14 public:
15 static PassRefPtrWillBeRawPtr<InterpolationPipeline> create()
16 {
17 return adoptRefWillBeNoop(new InterpolationPipeline());
18 }
19
20 RefPtrWillBeRawPtr<InterpolationPipelineStage> first() const
21 {
22 return m_first;
23 }
24
25 RefPtrWillBeRawPtr<InterpolationPipelineStage> last() const
26 {
27 return m_last;
28 }
29
30 void append(PassRefPtrWillBeRawPtr<InterpolationPipelineStage>);
31 bool isEmpty() const { return !m_first && !m_last; }
32
33 void trace(Visitor* visitor)
34 {
35 m_first->trace(visitor);
36 m_last->trace(visitor);
37 }
38
39 ~InterpolationPipeline()
40 {
41 }
42 private:
43 InterpolationPipeline()
44 : m_first(nullptr)
45 , m_last(nullptr)
46 {
47 }
48
49 RefPtrWillBeMember<InterpolationPipelineStage> m_first;
50 RefPtrWillBeMember<InterpolationPipelineStage> m_last;
51 };
52
53 using InterpolationPipelineMap = WillBeHeapHashMap<CSSPropertyID, RefPtrWillBeRa wPtr<InterpolationPipeline>>;
54
55 } // namespace blink
56
57 #endif // InterpolationPipeline_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698