Changeset 88247 in webkit
- Timestamp:
- Jun 7, 2011 9:58:22 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r88243 r88247 1 2011-06-07 Young Han Lee <joybro@company100.net> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 [Texmap][Qt] Accelerated animation is not paused properly. 6 https://bugs.webkit.org/show_bug.cgi?id=61446 7 8 The transform matrix of an accelerated animation shouldn't be synced with the matrix of the GraphicsLayer when the animation is paused. 9 10 * animations/play-state-paused-expected.png: Added. 11 * animations/play-state-paused-expected.txt: Added. 12 * animations/play-state-paused.html: Added. 13 1 14 2011-06-07 Sheriff Bot <webkit.review.bot@gmail.com> 2 15 -
trunk/Source/WebCore/ChangeLog
r88245 r88247 1 2011-06-07 Young Han Lee <joybro@company100.net> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 [Texmap][Qt] Accelerated animation is not paused properly. 6 https://bugs.webkit.org/show_bug.cgi?id=61446 7 8 The transform matrix of an accelerated animation shouldn't be synced with the matrix of the GraphicsLayer when the animation is paused. 9 10 Test: animations/play-state-paused.html 11 12 * platform/graphics/texmap/TextureMapperNode.cpp: 13 (WebCore::TextureMapperNode::syncCompositingStateSelf): 14 (WebCore::TextureMapperNode::hasOpacityAnimation): 15 (WebCore::TextureMapperNode::hasTransformAnimation): 16 * platform/graphics/texmap/TextureMapperNode.h: 17 1 18 2011-06-07 Lucas De Marchi <lucas.demarchi@profusion.mobi> 2 19 -
trunk/Source/WebCore/platform/graphics/texmap/TextureMapperNode.cpp
r86276 r88247 654 654 m_currentContent.needsDisplayRect.unite(pendingContent.needsDisplayRect); 655 655 656 if (!has RunningOpacityAnimation())656 if (!hasOpacityAnimation()) 657 657 m_opacity = m_state.opacity; 658 if (!has RunningTransformAnimation())658 if (!hasTransformAnimation()) 659 659 m_transforms.base = m_state.transform; 660 660 } … … 816 816 } 817 817 818 bool TextureMapperNode::has RunningOpacityAnimation() const818 bool TextureMapperNode::hasOpacityAnimation() const 819 819 { 820 820 for (size_t i = 0; i < m_animations.size(); ++i) { 821 821 const TextureMapperAnimation& animation = *m_animations[i].get(); 822 if ( !animation.paused &&animation.keyframes.property() == AnimatedPropertyOpacity)822 if (animation.keyframes.property() == AnimatedPropertyOpacity) 823 823 return true; 824 824 } … … 826 826 } 827 827 828 bool TextureMapperNode::has RunningTransformAnimation() const828 bool TextureMapperNode::hasTransformAnimation() const 829 829 { 830 830 for (size_t i = 0; i < m_animations.size(); ++i) { 831 831 const TextureMapperAnimation& animation = *m_animations[i].get(); 832 if ( !animation.paused &&animation.keyframes.property() == AnimatedPropertyWebkitTransform)832 if (animation.keyframes.property() == AnimatedPropertyWebkitTransform) 833 833 return true; 834 834 } -
trunk/Source/WebCore/platform/graphics/texmap/TextureMapperNode.h
r86276 r88247 178 178 void applyOpacityAnimation(float fromOpacity, float toOpacity, double); 179 179 void applyTransformAnimation(const TextureMapperAnimation&, const TransformOperations* start, const TransformOperations* end, double); 180 bool has RunningOpacityAnimation() const;181 bool has RunningTransformAnimation() const;180 bool hasOpacityAnimation() const; 181 bool hasTransformAnimation() const; 182 182 183 183 struct TransformData {
Note: See TracChangeset
for help on using the changeset viewer.