Changeset 243151 in webkit
- Timestamp:
- Mar 19, 2019, 10:59:24 AM (8 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 8 edited
-
ChangeLog (modified) (1 diff)
-
animation/KeyframeEffect.cpp (modified) (1 diff)
-
page/animation/KeyframeAnimation.cpp (modified) (1 diff)
-
rendering/RenderElement.h (modified) (1 diff)
-
rendering/RenderLayerBacking.cpp (modified) (2 diffs)
-
rendering/RenderLayerBacking.h (modified) (1 diff)
-
rendering/RenderLayerModelObject.cpp (modified) (1 diff)
-
rendering/RenderLayerModelObject.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r243150 r243151 1 2019-03-19 Zalan Bujtas <zalan@apple.com> 2 3 RenderElement::startAnimation should take const Animation& 4 https://bugs.webkit.org/show_bug.cgi?id=195929 5 6 Reviewed by Daniel Bates. 7 8 * animation/KeyframeEffect.cpp: 9 (WebCore::KeyframeEffect::applyPendingAcceleratedActions): 10 * page/animation/KeyframeAnimation.cpp: 11 (WebCore::KeyframeAnimation::startAnimation): 12 (WebCore::KeyframeAnimation::endAnimation): 13 * rendering/RenderElement.h: 14 (WebCore::RenderElement::startAnimation): 15 (WebCore::RenderElement::animationFinished): 16 * rendering/RenderLayerBacking.cpp: 17 (WebCore::RenderLayerBacking::startAnimation): 18 * rendering/RenderLayerBacking.h: 19 * rendering/RenderLayerModelObject.cpp: 20 (WebCore::RenderLayerModelObject::startAnimation): 21 (WebCore::RenderLayerModelObject::animationFinished): 22 * rendering/RenderLayerModelObject.h: 23 1 24 2019-03-19 Devin Rousso <drousso@apple.com> 2 25 -
trunk/Source/WebCore/animation/KeyframeEffect.cpp
r239965 r243151 1320 1320 switch (action) { 1321 1321 case AcceleratedAction::Play: 1322 if (!compositedRenderer->startAnimation(timeOffset, backingAnimationForCompositedRenderer() .ptr(), m_blendingKeyframes)) {1322 if (!compositedRenderer->startAnimation(timeOffset, backingAnimationForCompositedRenderer(), m_blendingKeyframes)) { 1323 1323 m_shouldRunAccelerated = false; 1324 1324 m_lastRecordedAcceleratedAction = AcceleratedAction::Stop; -
trunk/Source/WebCore/page/animation/KeyframeAnimation.cpp
r243112 r243151 293 293 { 294 294 if (auto* renderer = this->renderer()) 295 return renderer->startAnimation(timeOffset, m_animation .ptr(), m_keyframes);295 return renderer->startAnimation(timeOffset, m_animation, m_keyframes); 296 296 return false; 297 297 } -
trunk/Source/WebCore/rendering/RenderElement.h
r243103 r243151 227 227 virtual void transitionFinished(CSSPropertyID) { } 228 228 229 virtual bool startAnimation(double /* timeOffset */, const Animation *, const KeyframeList&) { return false; }229 virtual bool startAnimation(double /* timeOffset */, const Animation&, const KeyframeList&) { return false; } 230 230 virtual void animationPaused(double /* timeOffset */, const String& /* name */) { } 231 231 virtual void animationSeeked(double /* timeOffset */, const String& /* name */) { } -
trunk/Source/WebCore/rendering/RenderLayerBacking.cpp
r243145 r243151 2794 2794 #endif 2795 2795 2796 bool RenderLayerBacking::startAnimation(double timeOffset, const Animation * anim, const KeyframeList& keyframes)2796 bool RenderLayerBacking::startAnimation(double timeOffset, const Animation& animation, const KeyframeList& keyframes) 2797 2797 { 2798 2798 bool hasOpacity = keyframes.containsProperty(CSSPropertyOpacity); … … 2847 2847 bool didAnimate = false; 2848 2848 2849 if (hasTransform && m_graphicsLayer->addAnimation(transformVector, snappedIntRect(renderBox()->borderBoxRect()).size(), anim, keyframes.animationName(), timeOffset))2849 if (hasTransform && m_graphicsLayer->addAnimation(transformVector, snappedIntRect(renderBox()->borderBoxRect()).size(), &animation, keyframes.animationName(), timeOffset)) 2850 2850 didAnimate = true; 2851 2851 2852 if (hasOpacity && m_graphicsLayer->addAnimation(opacityVector, IntSize (), anim, keyframes.animationName(), timeOffset))2852 if (hasOpacity && m_graphicsLayer->addAnimation(opacityVector, IntSize { }, &animation, keyframes.animationName(), timeOffset)) 2853 2853 didAnimate = true; 2854 2854 2855 if (hasFilter && m_graphicsLayer->addAnimation(filterVector, IntSize (), anim, keyframes.animationName(), timeOffset))2855 if (hasFilter && m_graphicsLayer->addAnimation(filterVector, IntSize { }, &animation, keyframes.animationName(), timeOffset)) 2856 2856 didAnimate = true; 2857 2857 2858 2858 #if ENABLE(FILTERS_LEVEL_2) 2859 if (hasBackdropFilter && m_graphicsLayer->addAnimation(backdropFilterVector, IntSize (), anim, keyframes.animationName(), timeOffset))2859 if (hasBackdropFilter && m_graphicsLayer->addAnimation(backdropFilterVector, IntSize { }, &animation, keyframes.animationName(), timeOffset)) 2860 2860 didAnimate = true; 2861 2861 #endif -
trunk/Source/WebCore/rendering/RenderLayerBacking.h
r243134 r243151 195 195 void transitionFinished(CSSPropertyID); 196 196 197 bool startAnimation(double timeOffset, const Animation * anim, const KeyframeList& keyframes);197 bool startAnimation(double timeOffset, const Animation&, const KeyframeList&); 198 198 void animationPaused(double timeOffset, const String& name); 199 199 void animationSeeked(double timeOffset, const String& name); -
trunk/Source/WebCore/rendering/RenderLayerModelObject.cpp
r243112 r243151 305 305 } 306 306 307 bool RenderLayerModelObject::startAnimation(double timeOffset, const Animation *animation, const KeyframeList& keyframes)307 bool RenderLayerModelObject::startAnimation(double timeOffset, const Animation& animation, const KeyframeList& keyframes) 308 308 { 309 309 if (!layer() || !layer()->backing()) -
trunk/Source/WebCore/rendering/RenderLayerModelObject.h
r243103 r243151 74 74 void transitionFinished(CSSPropertyID) override; 75 75 76 bool startAnimation(double timeOffset, const Animation *, const KeyframeList& keyframes) override;76 bool startAnimation(double timeOffset, const Animation&, const KeyframeList&) override; 77 77 void animationPaused(double timeOffset, const String& name) override; 78 78 void animationSeeked(double timeOffset, const String& name) override;
Note:
See TracChangeset
for help on using the changeset viewer.