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

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

Issue 928103002: Remove some unused functions in core (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: git cl try 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 /* 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 copyToActiveInterpolationMap(*sample, result); 64 copyToActiveInterpolationMap(*sample, result);
65 } 65 }
66 } 66 }
67 67
68 } // namespace 68 } // namespace
69 69
70 AnimationStack::AnimationStack() 70 AnimationStack::AnimationStack()
71 { 71 {
72 } 72 }
73 73
74 bool AnimationStack::affects(CSSPropertyID property) const
75 {
76 for (const auto& effect : m_effects) {
77 if (effect->animation() && effect->animation()->affects(property))
78 return true;
79 }
80 return false;
81 }
82
83 bool AnimationStack::hasActiveAnimationsOnCompositor(CSSPropertyID property) con st 74 bool AnimationStack::hasActiveAnimationsOnCompositor(CSSPropertyID property) con st
84 { 75 {
85 for (const auto& effect : m_effects) { 76 for (const auto& effect : m_effects) {
86 if (effect->animation() && effect->animation()->hasActiveAnimationsOnCom positor(property)) 77 if (effect->animation() && effect->animation()->hasActiveAnimationsOnCom positor(property))
87 return true; 78 return true;
88 } 79 }
89 return false; 80 return false;
90 } 81 }
91 82
92 WillBeHeapHashMap<CSSPropertyID, RefPtrWillBeMember<Interpolation> > AnimationSt ack::activeInterpolations(AnimationStack* animationStack, const WillBeHeapVector <RawPtrWillBeMember<InertAnimation> >* newAnimations, const WillBeHeapHashSet<Ra wPtrWillBeMember<const AnimationPlayer> >* suppressedAnimationPlayers, Animation ::Priority priority, double timelineCurrentTime) 83 WillBeHeapHashMap<CSSPropertyID, RefPtrWillBeMember<Interpolation> > AnimationSt ack::activeInterpolations(AnimationStack* animationStack, const WillBeHeapVector <RawPtrWillBeMember<InertAnimation> >* newAnimations, const WillBeHeapHashSet<Ra wPtrWillBeMember<const AnimationPlayer> >* suppressedAnimationPlayers, Animation ::Priority priority, double timelineCurrentTime)
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 FloatBox expandingBox(originalBox); 150 FloatBox expandingBox(originalBox);
160 if (!CompositorAnimations::instance()->getAnimatedBoundingBox(expand ingBox, *anim->effect(), startRange, endRange)) 151 if (!CompositorAnimations::instance()->getAnimatedBoundingBox(expand ingBox, *anim->effect(), startRange, endRange))
161 return false; 152 return false;
162 box.expandTo(expandingBox); 153 box.expandTo(expandingBox);
163 } 154 }
164 } 155 }
165 return true; 156 return true;
166 } 157 }
167 158
168 } // namespace blink 159 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/animation/AnimationStack.h ('k') | Source/core/animation/animatable/AnimatableColor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698