Changeset 252352 in webkit


Ignore:
Timestamp:
Nov 11, 2019 5:58:52 PM (4 years ago)
Author:
pvollan@apple.com
Message:

Many legacy animation tests are timing out with VS2019
https://bugs.webkit.org/show_bug.cgi?id=204000

Reviewed by Brent Fulgham.

When compiling with VS2019, there is a compiler issue, where an Optional without a value is returned
when it should definitely have a value. Work around this issue by moving the local Optional value
when returning.

No new tests, covered by existing tests.

  • page/animation/ImplicitAnimation.cpp:

(WebCore::ImplicitAnimation::timeToNextService):

  • page/animation/KeyframeAnimation.cpp:

(WebCore::KeyframeAnimation::timeToNextService):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r252349 r252352  
     12019-11-11  Per Arne Vollan  <pvollan@apple.com>
     2
     3        Many legacy animation tests are timing out with VS2019
     4        https://bugs.webkit.org/show_bug.cgi?id=204000
     5
     6        Reviewed by Brent Fulgham.
     7
     8        When compiling with VS2019, there is a compiler issue, where an Optional without a value is returned
     9        when it should definitely have a value. Work around this issue by moving the local Optional value
     10        when returning.
     11
     12        No new tests, covered by existing tests.
     13
     14        * page/animation/ImplicitAnimation.cpp:
     15        (WebCore::ImplicitAnimation::timeToNextService):
     16        * page/animation/KeyframeAnimation.cpp:
     17        (WebCore::KeyframeAnimation::timeToNextService):
     18
    1192019-11-11  Youenn Fablet  <youenn@apple.com>
    220
  • trunk/Source/WebCore/page/animation/ImplicitAnimation.cpp

    r251220 r252352  
    361361    Optional<Seconds> t = AnimationBase::timeToNextService();
    362362    if (!t || t.value() != 0_s || preActive())
     363#if COMPILER(MSVC) && _MSC_VER >= 1920
     364        return WTFMove(t);
     365#else
    363366        return t;
     367#endif
    364368
    365369    // A return value of 0 means we need service. But if this is an accelerated animation we
  • trunk/Source/WebCore/page/animation/KeyframeAnimation.cpp

    r251220 r252352  
    516516    Optional<Seconds> t = AnimationBase::timeToNextService();
    517517    if (!t || t.value() != 0_s || preActive())
     518#if COMPILER(MSVC) && _MSC_VER >= 1920
     519        return WTFMove(t);
     520#else
    518521        return t;
     522#endif
    519523
    520524    // A return value of 0 means we need service. But if we only have accelerated animations we
Note: See TracChangeset for help on using the changeset viewer.