Changeset 269527 in webkit


Ignore:
Timestamp:
Nov 6, 2020 11:37:33 AM (21 months ago)
Author:
graouts@webkit.org
Message:

Accelerated animations of individual transform properties should apply rotate before scale
https://bugs.webkit.org/show_bug.cgi?id=218659

Reviewed by Simon Fraser.

Not that applying scale before rotate makes any difference, but applying the operations in
the order specified in the CSS Transforms spec will make the code easier to understand between
this and RenderStyle::applyTransform().

No test since there is no change of behavior.

  • platform/graphics/ca/GraphicsLayerCA.cpp:

(WebCore::GraphicsLayerCA::updateAnimations):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r269525 r269527  
     12020-11-06  Antoine Quint  <graouts@webkit.org>
     2
     3        Accelerated animations of individual transform properties should apply rotate before scale
     4        https://bugs.webkit.org/show_bug.cgi?id=218659
     5
     6        Reviewed by Simon Fraser.
     7
     8        Not that applying scale before rotate makes any difference, but applying the operations in
     9        the order specified in the CSS Transforms spec will make the code easier to understand between
     10        this and RenderStyle::applyTransform().
     11
     12        No test since there is no change of behavior.
     13
     14        * platform/graphics/ca/GraphicsLayerCA.cpp:
     15        (WebCore::GraphicsLayerCA::updateAnimations):
     16
    1172020-11-06  Wenson Hsieh  <wenson_hsieh@apple.com>
    218
  • trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp

    r268932 r269527  
    30023002            addBaseValueTransformAnimation(AnimatedPropertyTranslate);
    30033003
     3004        if (rotateAnimation)
     3005            addAnimation(*rotateAnimation);
     3006        else
     3007            addBaseValueTransformAnimation(AnimatedPropertyRotate);
     3008
    30043009        if (scaleAnimation)
    30053010            addAnimation(*scaleAnimation);
    30063011        else
    30073012            addBaseValueTransformAnimation(AnimatedPropertyScale);
    3008 
    3009         if (rotateAnimation)
    3010             addAnimation(*rotateAnimation);
    3011         else
    3012             addBaseValueTransformAnimation(AnimatedPropertyRotate);
    30133013
    30143014        for (auto* animation : transformAnimations)
     
    30223022            addBaseValueTransformAnimation(AnimatedPropertyTransform);
    30233023
     3024        if (scaleAnimation)
     3025            addAnimation(*scaleAnimation);
     3026        else
     3027            addBaseValueTransformAnimation(AnimatedPropertyScale);
     3028
    30243029        if (rotateAnimation)
    30253030            addAnimation(*rotateAnimation);
    30263031        else
    30273032            addBaseValueTransformAnimation(AnimatedPropertyRotate);
    3028 
    3029         if (scaleAnimation)
    3030             addAnimation(*scaleAnimation);
    3031         else
    3032             addBaseValueTransformAnimation(AnimatedPropertyScale);
    30333033
    30343034        if (translateAnimation)
Note: See TracChangeset for help on using the changeset viewer.