Changeset 181521 in webkit


Ignore:
Timestamp:
Mar 15, 2015 10:31:28 PM (9 years ago)
Author:
Simon Fraser
Message:

Add the same is<RenderBox> test to KeyframeAnimation::computeExtentOfTransformAnimation()
that ImplicitAnimation::computeExtentOfTransformAnimation() has, and change the latter
to the more canonical is<RenderBox>() form.

Fixes an assertion in animations/animation-on-inline-crash.html

  • page/animation/ImplicitAnimation.cpp:

(WebCore::ImplicitAnimation::computeExtentOfTransformAnimation):

  • page/animation/KeyframeAnimation.cpp:

(WebCore::KeyframeAnimation::computeExtentOfTransformAnimation):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r181520 r181521  
     12015-03-15  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Add the same is<RenderBox> test to KeyframeAnimation::computeExtentOfTransformAnimation()
     4        that ImplicitAnimation::computeExtentOfTransformAnimation() has, and change the latter
     5        to the more canonical is<RenderBox>() form.
     6       
     7        Fixes an assertion in animations/animation-on-inline-crash.html
     8
     9        * page/animation/ImplicitAnimation.cpp:
     10        (WebCore::ImplicitAnimation::computeExtentOfTransformAnimation):
     11        * page/animation/KeyframeAnimation.cpp:
     12        (WebCore::KeyframeAnimation::computeExtentOfTransformAnimation):
     13
    1142015-03-15  Simon Fraser  <simon.fraser@apple.com>
    215
  • trunk/Source/WebCore/page/animation/ImplicitAnimation.cpp

    r181515 r181521  
    105105    ASSERT(hasStyle());
    106106
    107     if (!m_object->isBox())
    108         return false;
     107    if (!is<RenderBox>(m_object))
     108        return true; // Non-boxes don't get transformed;
    109109
    110110    ASSERT(m_animatingProperty == CSSPropertyWebkitTransform);
  • trunk/Source/WebCore/page/animation/KeyframeAnimation.cpp

    r181515 r181521  
    204204    ASSERT(m_keyframes.containsProperty(CSSPropertyWebkitTransform));
    205205
     206    if (!is<RenderBox>(m_object))
     207        return true; // Non-boxes don't get transformed;
     208
    206209    RenderBox& box = downcast<RenderBox>(*m_object);
    207210    FloatRect rendererBox = snapRectToDevicePixels(box.borderBoxRect(), box.document().deviceScaleFactor());
Note: See TracChangeset for help on using the changeset viewer.