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

Side by Side Diff: third_party/WebKit/Source/core/animation/AnimationStack.cpp

Issue 2236583003: Rename AnimationEffect to AnimationEffectReadOnly (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@deprecated-assert
Patch Set: Rebase 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
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 } // namespace 79 } // namespace
80 80
81 AnimationStack::AnimationStack() 81 AnimationStack::AnimationStack()
82 { 82 {
83 } 83 }
84 84
85 bool AnimationStack::hasActiveAnimationsOnCompositor(CSSPropertyID property) con st 85 bool AnimationStack::hasActiveAnimationsOnCompositor(CSSPropertyID property) con st
86 { 86 {
87 for (const auto& sampledEffect : m_sampledEffects) { 87 for (const auto& sampledEffect : m_sampledEffects) {
88 // TODO(dstockwell): move the playing check into AnimationEffect and exp ose both hasAnimations and hasActiveAnimations 88 // TODO(dstockwell): move the playing check into AnimationEffectReadOnly and expose both hasAnimations and hasActiveAnimations
89 if (sampledEffect->effect() && sampledEffect->effect()->animation()->pla ying() && sampledEffect->effect()->hasActiveAnimationsOnCompositor(property)) 89 if (sampledEffect->effect() && sampledEffect->effect()->animation()->pla ying() && sampledEffect->effect()->hasActiveAnimationsOnCompositor(property))
90 return true; 90 return true;
91 } 91 }
92 return false; 92 return false;
93 } 93 }
94 94
95 ActiveInterpolationsMap AnimationStack::activeInterpolations(AnimationStack* ani mationStack, const HeapVector<Member<const InertEffect>>* newAnimations, const H eapHashSet<Member<const Animation>>* suppressedAnimations, KeyframeEffect::Prior ity priority, PropertyHandleFilter propertyHandleFilter) 95 ActiveInterpolationsMap AnimationStack::activeInterpolations(AnimationStack* ani mationStack, const HeapVector<Member<const InertEffect>>* newAnimations, const H eapHashSet<Member<const Animation>>* suppressedAnimations, KeyframeEffect::Prior ity priority, PropertyHandleFilter propertyHandleFilter)
96 { 96 {
97 ActiveInterpolationsMap result; 97 ActiveInterpolationsMap result;
98 98
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 FloatBox expandingBox(originalBox); 153 FloatBox expandingBox(originalBox);
154 if (!CompositorAnimations::getAnimatedBoundingBox(expandingBox, *eff ect->model(), startRange, endRange)) 154 if (!CompositorAnimations::getAnimatedBoundingBox(expandingBox, *eff ect->model(), startRange, endRange))
155 return false; 155 return false;
156 box.expandTo(expandingBox); 156 box.expandTo(expandingBox);
157 } 157 }
158 } 158 }
159 return true; 159 return true;
160 } 160 }
161 161
162 } // namespace blink 162 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698