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

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

Issue 1120003002: [Oilpan] Migrate most classes under core/animations to Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Resize expect size of Persistent Created 5 years, 6 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/Interpolation.h" 6 #include "core/animation/Interpolation.h"
7 7
8 namespace blink { 8 namespace blink {
9 9
10 namespace { 10 namespace {
(...skipping 14 matching lines...) Expand all
25 return false; 25 return false;
26 for (size_t i = 0; i < startList->length(); ++i) { 26 for (size_t i = 0; i < startList->length(); ++i) {
27 if (!typesMatch(startList->get(i), endList->get(i))) 27 if (!typesMatch(startList->get(i), endList->get(i)))
28 return false; 28 return false;
29 } 29 }
30 return true; 30 return true;
31 } 31 }
32 32
33 } 33 }
34 34
35 Interpolation::Interpolation(PassOwnPtrWillBeRawPtr<InterpolableValue> start, Pa ssOwnPtrWillBeRawPtr<InterpolableValue> end) 35 Interpolation::Interpolation(InterpolableValue* start, InterpolableValue* end)
36 : m_start(start) 36 : m_start(start)
37 , m_end(end) 37 , m_end(end)
38 , m_cachedFraction(0) 38 , m_cachedFraction(0)
39 , m_cachedIteration(0) 39 , m_cachedIteration(0)
40 , m_cachedValue(m_start->clone()) 40 , m_cachedValue(m_start->clone())
41 { 41 {
42 RELEASE_ASSERT(typesMatch(m_start.get(), m_end.get())); 42 RELEASE_ASSERT(typesMatch(m_start.get(), m_end.get()));
43 } 43 }
44 44
45 Interpolation::~Interpolation() 45 Interpolation::~Interpolation()
(...skipping 10 matching lines...) Expand all
56 } 56 }
57 57
58 DEFINE_TRACE(Interpolation) 58 DEFINE_TRACE(Interpolation)
59 { 59 {
60 visitor->trace(m_start); 60 visitor->trace(m_start);
61 visitor->trace(m_end); 61 visitor->trace(m_end);
62 visitor->trace(m_cachedValue); 62 visitor->trace(m_cachedValue);
63 } 63 }
64 64
65 } 65 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698