⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 276147 in webkit


Ignore:
Timestamp:
Apr 16, 2021, 11:17:21 AM (5 years ago)
Author:
Chris Dumez
Message:

Unreviewed GTK / WinCairo build fix after Antoine's r276141.

Just add the BlendingContext constructor this time because there are too many build failures.

  • animation/CSSPropertyAnimation.cpp:

(WebCore::CSSPropertyBlendingContext::CSSPropertyBlendingContext):
(WebCore::CSSPropertyBlendingContext::client): Deleted.

  • platform/animation/AnimationUtilities.h:

(WebCore::BlendingContext::BlendingContext):

  • platform/graphics/nicosia/NicosiaAnimation.cpp:

(Nicosia::blendFunc):
(Nicosia::applyTransformAnimation):

Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r276143 r276147  
     12021-04-16  Chris Dumez  <cdumez@apple.com>
     2
     3        Unreviewed GTK / WinCairo build fix after Antoine's r276141.
     4
     5        Just add the BlendingContext constructor this time because there are too many build failures.
     6
     7        * animation/CSSPropertyAnimation.cpp:
     8        (WebCore::CSSPropertyBlendingContext::CSSPropertyBlendingContext):
     9        (WebCore::CSSPropertyBlendingContext::client): Deleted.
     10        * platform/animation/AnimationUtilities.h:
     11        (WebCore::BlendingContext::BlendingContext):
     12        * platform/graphics/nicosia/NicosiaAnimation.cpp:
     13        (Nicosia::blendFunc):
     14        (Nicosia::applyTransformAnimation):
     15
    1162021-04-16  Chris Dumez  <cdumez@apple.com>
    217
  • trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp

    r276142 r276147  
    7676
    7777    CSSPropertyBlendingContext(double progress, bool isDiscrete, const CSSPropertyBlendingClient* client)
    78         : BlendingContext { progress, isDiscrete }
     78        : BlendingContext(progress, isDiscrete)
    7979        , client(client)
    8080    {
  • trunk/Source/WebCore/platform/animation/AnimationUtilities.h

    r276141 r276147  
    3434    double progress { 0 };
    3535    bool isDiscrete { false };
     36
     37    BlendingContext(double progress = 0, bool isDiscrete = false)
     38        : progress(progress)
     39        , isDiscrete(isDiscrete)
     40    {
     41    }
    3642};
    3743
  • trunk/Source/WebCore/platform/graphics/nicosia/NicosiaAnimation.cpp

    r276143 r276147  
    2929static RefPtr<FilterOperation> blendFunc(FilterOperation* fromOp, FilterOperation& toOp, double progress, const FloatSize&, bool blendToPassthrough = false)
    3030{
    31     return toOp.blend(fromOp, { progress }, blendToPassthrough);
     31    return toOp.blend(fromOp, progress, blendToPassthrough);
    3232}
    3333
     
    139139        TransformOperations blended(from);
    140140        for (auto& operation : blended.operations())
    141             operation->blend(nullptr, { progress }, true)->apply(matrix, boxSize);
     141            operation->blend(nullptr, progress, true)->apply(matrix, boxSize);
    142142        return matrix;
    143143    }
     
    147147        TransformOperations blended(to);
    148148        for (auto& operation : blended.operations())
    149             operation->blend(nullptr, { 1 - progress }, true)->apply(matrix, boxSize);
     149            operation->blend(nullptr, 1 - progress, true)->apply(matrix, boxSize);
    150150        return matrix;
    151151    }
     
    154154    TransformOperations blended(to);
    155155    for (size_t i = 0; i < blended.operations().size(); ++i)
    156         blended.operations()[i]->blend(from.at(i), { progress }, !from.at(i))->apply(matrix, boxSize);
     156        blended.operations()[i]->blend(from.at(i), progress, !from.at(i))->apply(matrix, boxSize);
    157157    return matrix;
    158158}
Note: See TracChangeset for help on using the changeset viewer.