Changeset 141314 in webkit
- Timestamp:
- Jan 30, 2013 2:32:30 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r141313 r141314 1 2013-01-30 Douglas Stockwell <dstockwell@chromium.org> 2 3 Remove unnecessary setAnimating() method 4 https://bugs.webkit.org/show_bug.cgi?id=107495 5 6 Reviewed by Dean Jackson. 7 8 The corresponding accessor and uses were removed in r39211. 9 10 No new tests: no change in behaviour. 11 12 * page/animation/AnimationBase.cpp: 13 (WebCore::AnimationBase::AnimationBase): 14 * page/animation/AnimationBase.h: 15 (AnimationBase): 16 * page/animation/CompositeAnimation.cpp: 17 * page/animation/CompositeAnimation.h: 18 * page/animation/ImplicitAnimation.cpp: 19 (WebCore::ImplicitAnimation::animate): 20 * page/animation/KeyframeAnimation.cpp: 21 (WebCore::KeyframeAnimation::animate): 22 1 23 2013-01-30 Elliott Sprehn <esprehn@chromium.org> 2 24 -
trunk/Source/WebCore/page/animation/AnimationBase.cpp
r120639 r141314 71 71 AnimationBase::AnimationBase(const Animation* transition, RenderObject* renderer, CompositeAnimation* compAnim) 72 72 : m_animState(AnimationStateNew) 73 , m_isAnimating(false)74 73 , m_isAccelerated(false) 75 74 , m_transformFunctionListValid(false) -
trunk/Source/WebCore/page/animation/AnimationBase.h
r115581 r141314 130 130 bool waitingForStyleAvailable() const { return m_animState == AnimationStateStartWaitStyleAvailable; } 131 131 132 // "animating" means that something is running that requires a timer to keep firing133 // (e.g. a software animation)134 void setAnimating(bool inAnimating = true) { m_isAnimating = inAnimating; }135 132 virtual double timeToNextService(); 136 133 … … 225 222 AnimState m_animState; 226 223 227 bool m_isAnimating; // transition/animation requires continual timer firing228 224 bool m_isAccelerated; 229 225 bool m_transformFunctionListValid; -
trunk/Source/WebCore/page/animation/CompositeAnimation.cpp
r137243 r141314 326 326 } 327 327 328 // "animating" means that something is running that requires the timer to keep firing329 void CompositeAnimation::setAnimating(bool animating)330 {331 if (!m_transitions.isEmpty()) {332 CSSPropertyTransitionsMap::const_iterator transitionsEnd = m_transitions.end();333 for (CSSPropertyTransitionsMap::const_iterator it = m_transitions.begin(); it != transitionsEnd; ++it) {334 ImplicitAnimation* transition = it->value.get();335 transition->setAnimating(animating);336 }337 }338 if (!m_keyframeAnimations.isEmpty()) {339 m_keyframeAnimations.checkConsistency();340 AnimationNameMap::const_iterator animationsEnd = m_keyframeAnimations.end();341 for (AnimationNameMap::const_iterator it = m_keyframeAnimations.begin(); it != animationsEnd; ++it) {342 KeyframeAnimation* anim = it->value.get();343 anim->setAnimating(animating);344 }345 }346 }347 348 328 double CompositeAnimation::timeToNextService() const 349 329 { -
trunk/Source/WebCore/page/animation/CompositeAnimation.h
r137243 r141314 69 69 bool hasAnimations() const { return !m_transitions.isEmpty() || !m_keyframeAnimations.isEmpty(); } 70 70 71 void setAnimating(bool);72 71 bool isAnimatingProperty(CSSPropertyID, bool acceleratedOnly, bool isRunningNow) const; 73 72 -
trunk/Source/WebCore/page/animation/ImplicitAnimation.cpp
r139762 r141314 82 82 // FIXME: we also need to detect cases where we have to software animate for other reasons, 83 83 // such as a child using inheriting the transform. https://bugs.webkit.org/show_bug.cgi?id=23902 84 if (needsAnim) 85 setAnimating(); 86 else { 87 #if USE(ACCELERATED_COMPOSITING) 84 #if USE(ACCELERATED_COMPOSITING) 85 if (!needsAnim) 88 86 // If we are running an accelerated animation, set a flag in the style which causes the style 89 87 // to compare as different to any other style. This ensures that changes to the property … … 92 90 animatedStyle->setIsRunningAcceleratedAnimation(); 93 91 #endif 94 }95 92 96 93 // Fire the start timeout if needed -
trunk/Source/WebCore/page/animation/KeyframeAnimation.cpp
r120639 r141314 188 188 189 189 bool needsAnim = CSSPropertyAnimation::blendProperties(this, *it, animatedStyle.get(), fromStyle, toStyle, progress); 190 if (needsAnim)191 setAnimating();192 else {193 190 #if USE(ACCELERATED_COMPOSITING) 191 if (!needsAnim) 194 192 // If we are running an accelerated animation, set a flag in the style 195 193 // to indicate it. This can be used to make sure we get an updated … … 197 195 animatedStyle->setIsRunningAcceleratedAnimation(); 198 196 #endif 199 }200 197 } 201 198 }
Note: See TracChangeset
for help on using the changeset viewer.