Changeset 166309 in webkit


Ignore:
Timestamp:
Mar 26, 2014, 12:36:51 PM (11 years ago)
Author:
Simon Fraser
Message:

REGRESSION (r155977): matrix animations no longer animate
https://bugs.webkit.org/show_bug.cgi?id=130789
<rdar://problem/15650946>

Source/WebCore:

Reviewed by Dean Jackson.

r155977 erroneously removed two lines that set the end points for
matrix animations (used when transform lists don't match), so
put them back.

Also don't repaint when updateContentsScale()
is called and doesn't change the contents scale.

Test: compositing/animation/matrix-animation.html

  • platform/graphics/ca/GraphicsLayerCA.cpp:

(WebCore::GraphicsLayerCA::updateRootRelativeScale):
(WebCore::GraphicsLayerCA::setTransformAnimationEndpoints):
(WebCore::GraphicsLayerCA::updateContentsScale):

LayoutTests:

Reviewed by Dean Jackson.

Add test for fill-fowards animation with mismatched transform lists.

  • compositing/animation/matrix-animation-expected.html: Added.
  • compositing/animation/matrix-animation.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r166303 r166309  
     12014-03-26  Simon Fraser  <simon.fraser@apple.com>
     2
     3        REGRESSION (r155977): matrix animations no longer animate
     4        https://bugs.webkit.org/show_bug.cgi?id=130789
     5        <rdar://problem/15650946>
     6
     7        Reviewed by Dean Jackson.
     8       
     9        Add test for fill-fowards animation with mismatched transform lists.
     10
     11        * compositing/animation/matrix-animation-expected.html: Added.
     12        * compositing/animation/matrix-animation.html: Added.
     13
    1142014-03-26  Antti Koivisto  <antti@apple.com>
    215
  • trunk/Source/WebCore/ChangeLog

    r166308 r166309  
     12014-03-26  Simon Fraser  <simon.fraser@apple.com>
     2
     3        REGRESSION (r155977): matrix animations no longer animate
     4        https://bugs.webkit.org/show_bug.cgi?id=130789
     5        <rdar://problem/15650946>
     6
     7        Reviewed by Dean Jackson.
     8       
     9        r155977 erroneously removed two lines that set the end points for
     10        matrix animations (used when transform lists don't match), so
     11        put them back.
     12       
     13        Also don't repaint when updateContentsScale()
     14        is called and doesn't change the contents scale.
     15
     16        Test: compositing/animation/matrix-animation.html
     17
     18        * platform/graphics/ca/GraphicsLayerCA.cpp:
     19        (WebCore::GraphicsLayerCA::updateRootRelativeScale):
     20        (WebCore::GraphicsLayerCA::setTransformAnimationEndpoints):
     21        (WebCore::GraphicsLayerCA::updateContentsScale):
     22
    1232014-03-26  Simon Fraser  <simon.fraser@apple.com>
    224
  • trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp

    r166308 r166309  
    11661166        rootRelativeScaleFactor = maxScaleFromTransform(*transformFromRoot);
    11671167    }
    1168    
     1168
    11691169    if (rootRelativeScaleFactor != m_rootRelativeScaleFactor) {
    11701170        m_rootRelativeScaleFactor = rootRelativeScaleFactor;
     
    27042704        if (!fromTransform.isInvertible() || !toTransform.isInvertible())
    27052705            return false;
     2706
     2707        basicAnim->setFromValue(fromTransform);
     2708        basicAnim->setToValue(toTransform);
    27062709    } else {
    27072710        if (isTransformTypeNumber(transformOpType)) {
     
    29462949{
    29472950    float contentsScale = clampedContentsScaleForScale(m_rootRelativeScaleFactor * pageScaleFactor * deviceScaleFactor());
     2951    if (contentsScale == m_layer->contentsScale())
     2952        return;
     2953
    29482954    m_layer->setContentsScale(contentsScale);
    29492955    if (drawsContent())
Note: See TracChangeset for help on using the changeset viewer.