Changeset 233429 in webkit


Ignore:
Timestamp:
Jul 2, 2018 1:45:29 PM (6 years ago)
Author:
graouts@webkit.org
Message:

[Web Animations] Crash in KeyframeEffectReadOnly::applyPendingAcceleratedActions()
https://bugs.webkit.org/show_bug.cgi?id=187139

Reviewed by Dean Jackson.

Ensure we have a resolved time value before trying to use it.

  • animation/KeyframeEffectReadOnly.cpp:

(WebCore::KeyframeEffectReadOnly::applyPendingAcceleratedActions):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r233425 r233429  
     12018-07-02  Antoine Quint  <graouts@apple.com>
     2
     3        [Web Animations] Crash in KeyframeEffectReadOnly::applyPendingAcceleratedActions()
     4        https://bugs.webkit.org/show_bug.cgi?id=187139
     5
     6        Reviewed by Dean Jackson.
     7
     8        Ensure we have a resolved time value before trying to use it.
     9
     10        * animation/KeyframeEffectReadOnly.cpp:
     11        (WebCore::KeyframeEffectReadOnly::applyPendingAcceleratedActions):
     12
    1132018-07-02  Youenn Fablet  <youenn@apple.com>
    214
  • trunk/Source/WebCore/animation/KeyframeEffectReadOnly.cpp

    r233170 r233429  
    12441244    auto* compositedRenderer = downcast<RenderBoxModelObject>(renderer);
    12451245
    1246     auto timeOffset = animation()->currentTime().value().seconds();
     1246    auto currentTime = animation()->currentTime();
     1247    if (!currentTime)
     1248        return;
     1249
     1250    auto timeOffset = currentTime->seconds();
    12471251    if (timing()->delay() < 0_s)
    12481252        timeOffset = -timing()->delay().seconds();
Note: See TracChangeset for help on using the changeset viewer.