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

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: Change UpdatedAnimationStyle to class for consistency 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 namespace blink { 8 namespace blink {
9 9
10 void InterpolationEffect::getActiveInterpolations(double fraction, double iterat ionDuration, OwnPtrWillBeRawPtr<WillBeHeapVector<RefPtrWillBeMember<Interpolatio n>>>& result) const 10 void InterpolationEffect::getActiveInterpolations(double fraction, double iterat ionDuration, OwnPtrWillBeRawPtr<WillBeHeapVector<RefPtrWillBeMember<Interpolatio n>>>& result) const
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 } 68 }
69 69
70 addInterpolation(interpolation.release(), 70 addInterpolation(interpolation.release(),
71 &keyframeA.easing(), regionStart, regionEnd, regionApplyFrom, re gionApplyTo); 71 &keyframeA.easing(), regionStart, regionEnd, regionApplyFrom, re gionApplyTo);
72 72
73 regionIndex++; 73 regionIndex++;
74 } 74 }
75 } 75 }
76 } 76 }
77 77
78 void InterpolationEffect::setDeferredInterpolationsOutdated()
79 {
80 for (auto& record : m_interpolations) {
81 if (record->m_interpolation->isStyleInterpolation() && toStyleInterpolat ion(record->m_interpolation.get())->isDeferredLegacyStyleInterpolation())
82 toDeferredLegacyStyleInterpolation(toStyleInterpolation(record->m_in terpolation.get()))->setOutdated();
83 }
84 }
85
78 void InterpolationEffect::InterpolationRecord::trace(Visitor* visitor) 86 void InterpolationEffect::InterpolationRecord::trace(Visitor* visitor)
79 { 87 {
80 visitor->trace(m_interpolation); 88 visitor->trace(m_interpolation);
81 } 89 }
82 90
83 void InterpolationEffect::trace(Visitor* visitor) 91 void InterpolationEffect::trace(Visitor* visitor)
84 { 92 {
85 #if ENABLE_OILPAN 93 #if ENABLE_OILPAN
86 visitor->trace(m_interpolations); 94 visitor->trace(m_interpolations);
87 #endif 95 #endif
88 } 96 }
89 97
90 } 98 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698