Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Side by Side Diff: Source/core/animation/StringKeyframe.cpp

Issue 1069313002: Animation: FilterStyleInterpolation for animating filter (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: ASSERT isValueList || CSSValueNone Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/animation/ListStyleInterpolation.h ('k') | Source/core/core.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "core/animation/StringKeyframe.h" 6 #include "core/animation/StringKeyframe.h"
7 7
8 #include "core/animation/AngleSVGInterpolation.h" 8 #include "core/animation/AngleSVGInterpolation.h"
9 #include "core/animation/ColorStyleInterpolation.h" 9 #include "core/animation/ColorStyleInterpolation.h"
10 #include "core/animation/CompositorAnimations.h" 10 #include "core/animation/CompositorAnimations.h"
11 #include "core/animation/ConstantStyleInterpolation.h" 11 #include "core/animation/ConstantStyleInterpolation.h"
12 #include "core/animation/DefaultSVGInterpolation.h" 12 #include "core/animation/DefaultSVGInterpolation.h"
13 #include "core/animation/DeferredLegacyStyleInterpolation.h" 13 #include "core/animation/DeferredLegacyStyleInterpolation.h"
14 #include "core/animation/DoubleStyleInterpolation.h" 14 #include "core/animation/DoubleStyleInterpolation.h"
15 #include "core/animation/FilterStyleInterpolation.h"
15 #include "core/animation/ImageSliceStyleInterpolation.h" 16 #include "core/animation/ImageSliceStyleInterpolation.h"
16 #include "core/animation/ImageStyleInterpolation.h" 17 #include "core/animation/ImageStyleInterpolation.h"
17 #include "core/animation/IntegerOptionalIntegerSVGInterpolation.h" 18 #include "core/animation/IntegerOptionalIntegerSVGInterpolation.h"
18 #include "core/animation/IntegerSVGInterpolation.h" 19 #include "core/animation/IntegerSVGInterpolation.h"
19 #include "core/animation/LegacyStyleInterpolation.h" 20 #include "core/animation/LegacyStyleInterpolation.h"
20 #include "core/animation/LengthBoxStyleInterpolation.h" 21 #include "core/animation/LengthBoxStyleInterpolation.h"
21 #include "core/animation/LengthPairStyleInterpolation.h" 22 #include "core/animation/LengthPairStyleInterpolation.h"
22 #include "core/animation/LengthSVGInterpolation.h" 23 #include "core/animation/LengthSVGInterpolation.h"
23 #include "core/animation/LengthStyleInterpolation.h" 24 #include "core/animation/LengthStyleInterpolation.h"
24 #include "core/animation/ListSVGInterpolation.h" 25 #include "core/animation/ListSVGInterpolation.h"
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 } 385 }
385 386
386 case CSSPropertyStrokeDasharray: { 387 case CSSPropertyStrokeDasharray: {
387 RefPtrWillBeRawPtr<Interpolation> interpolation = SVGStrokeDasharrayStyl eInterpolation::maybeCreate(*fromCSSValue, *toCSSValue, property); 388 RefPtrWillBeRawPtr<Interpolation> interpolation = SVGStrokeDasharrayStyl eInterpolation::maybeCreate(*fromCSSValue, *toCSSValue, property);
388 if (interpolation) 389 if (interpolation)
389 return interpolation.release(); 390 return interpolation.release();
390 391
391 break; 392 break;
392 } 393 }
393 394
395 case CSSPropertyWebkitFilter: {
396 RefPtrWillBeRawPtr<Interpolation> interpolation = FilterStyleInterpolati on::maybeCreateList(*fromCSSValue, *toCSSValue, property);
397 if (interpolation)
398 return interpolation.release();
399
400 // FIXME: Support drop shadow interpolation.
401 fallBackToLegacy = true;
402 break;
403 }
404
394 default: 405 default:
395 // Fall back to LegacyStyleInterpolation. 406 // Fall back to LegacyStyleInterpolation.
396 fallBackToLegacy = true; 407 fallBackToLegacy = true;
397 break; 408 break;
398 } 409 }
399 410
400 if (fromCSSValue == toCSSValue) 411 if (fromCSSValue == toCSSValue)
401 return ConstantStyleInterpolation::create(fromCSSValue, property); 412 return ConstantStyleInterpolation::create(fromCSSValue, property);
402 413
403 if (forceDefaultInterpolation) 414 if (forceDefaultInterpolation)
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 RefPtrWillBeRawPtr<SVGPropertyBase> fromValue = attribute->currentValueBase( )->cloneForAnimation(m_value); 550 RefPtrWillBeRawPtr<SVGPropertyBase> fromValue = attribute->currentValueBase( )->cloneForAnimation(m_value);
540 RefPtrWillBeRawPtr<SVGPropertyBase> toValue = attribute->currentValueBase()- >cloneForAnimation(toSVGPropertySpecificKeyframe(end).value()); 551 RefPtrWillBeRawPtr<SVGPropertyBase> toValue = attribute->currentValueBase()- >cloneForAnimation(toSVGPropertySpecificKeyframe(end).value());
541 552
542 if (!fromValue || !toValue) 553 if (!fromValue || !toValue)
543 return nullptr; 554 return nullptr;
544 555
545 return createSVGInterpolation(fromValue.get(), toValue.get(), attribute.get( )); 556 return createSVGInterpolation(fromValue.get(), toValue.get(), attribute.get( ));
546 } 557 }
547 558
548 } // namespace blink 559 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/animation/ListStyleInterpolation.h ('k') | Source/core/core.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698