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

Side by Side Diff: Source/core/animation/InterpolationEffect.cpp

Issue 851693007: Prepare for responsive CSS animations. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase and tidy up 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "core/animation/InterpolationEffect.h" 6 #include "core/animation/InterpolationEffect.h"
7 7
8 #include "core/animation/DeferredLegacyStyleInterpolation.h"
9 #include "core/animation/StyleInterpolation.h"
Timothy Loh 2015/02/11 04:09:00 unused includes?
shend 2015/02/12 01:01:42 Done.
10
8 namespace blink { 11 namespace blink {
9 12
10 void InterpolationEffect::getActiveInterpolations(double fraction, double iterat ionDuration, OwnPtrWillBeRawPtr<WillBeHeapVector<RefPtrWillBeMember<Interpolatio n>>>& result) const 13 void InterpolationEffect::getActiveInterpolations(double fraction, double iterat ionDuration, OwnPtrWillBeRawPtr<WillBeHeapVector<RefPtrWillBeMember<Interpolatio n>>>& result) const
11 { 14 {
12 if (!result) 15 if (!result)
13 result = adoptPtrWillBeNoop(new WillBeHeapVector<RefPtrWillBeMember<Inte rpolation> >()); 16 result = adoptPtrWillBeNoop(new WillBeHeapVector<RefPtrWillBeMember<Inte rpolation> >());
14 17
15 size_t existingSize = result->size(); 18 size_t existingSize = result->size();
16 size_t resultIndex = 0; 19 size_t resultIndex = 0;
17 20
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 } 82 }
80 83
81 void InterpolationEffect::trace(Visitor* visitor) 84 void InterpolationEffect::trace(Visitor* visitor)
82 { 85 {
83 #if ENABLE_OILPAN 86 #if ENABLE_OILPAN
84 visitor->trace(m_interpolations); 87 visitor->trace(m_interpolations);
85 #endif 88 #endif
86 } 89 }
87 90
88 } 91 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698