Changeset 276147 in webkit
- Timestamp:
- Apr 16, 2021, 11:17:21 AM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
-
ChangeLog (modified) (1 diff)
-
animation/CSSPropertyAnimation.cpp (modified) (1 diff)
-
platform/animation/AnimationUtilities.h (modified) (1 diff)
-
platform/graphics/nicosia/NicosiaAnimation.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r276143 r276147 1 2021-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 1 16 2021-04-16 Chris Dumez <cdumez@apple.com> 2 17 -
trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp
r276142 r276147 76 76 77 77 CSSPropertyBlendingContext(double progress, bool isDiscrete, const CSSPropertyBlendingClient* client) 78 : BlendingContext { progress, isDiscrete }78 : BlendingContext(progress, isDiscrete) 79 79 , client(client) 80 80 { -
trunk/Source/WebCore/platform/animation/AnimationUtilities.h
r276141 r276147 34 34 double progress { 0 }; 35 35 bool isDiscrete { false }; 36 37 BlendingContext(double progress = 0, bool isDiscrete = false) 38 : progress(progress) 39 , isDiscrete(isDiscrete) 40 { 41 } 36 42 }; 37 43 -
trunk/Source/WebCore/platform/graphics/nicosia/NicosiaAnimation.cpp
r276143 r276147 29 29 static RefPtr<FilterOperation> blendFunc(FilterOperation* fromOp, FilterOperation& toOp, double progress, const FloatSize&, bool blendToPassthrough = false) 30 30 { 31 return toOp.blend(fromOp, { progress }, blendToPassthrough);31 return toOp.blend(fromOp, progress, blendToPassthrough); 32 32 } 33 33 … … 139 139 TransformOperations blended(from); 140 140 for (auto& operation : blended.operations()) 141 operation->blend(nullptr, { progress }, true)->apply(matrix, boxSize);141 operation->blend(nullptr, progress, true)->apply(matrix, boxSize); 142 142 return matrix; 143 143 } … … 147 147 TransformOperations blended(to); 148 148 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); 150 150 return matrix; 151 151 } … … 154 154 TransformOperations blended(to); 155 155 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); 157 157 return matrix; 158 158 }
Note:
See TracChangeset
for help on using the changeset viewer.