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

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: Created 5 years, 8 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
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/ColorStyleInterpolation.h" 8 #include "core/animation/ColorStyleInterpolation.h"
9 #include "core/animation/CompositorAnimations.h" 9 #include "core/animation/CompositorAnimations.h"
10 #include "core/animation/ConstantStyleInterpolation.h" 10 #include "core/animation/ConstantStyleInterpolation.h"
11 #include "core/animation/DeferredLegacyStyleInterpolation.h" 11 #include "core/animation/DeferredLegacyStyleInterpolation.h"
12 #include "core/animation/DoubleStyleInterpolation.h" 12 #include "core/animation/DoubleStyleInterpolation.h"
13 #include "core/animation/FilterStyleInterpolation.h"
13 #include "core/animation/ImageSliceStyleInterpolation.h" 14 #include "core/animation/ImageSliceStyleInterpolation.h"
14 #include "core/animation/ImageStyleInterpolation.h" 15 #include "core/animation/ImageStyleInterpolation.h"
15 #include "core/animation/LegacyStyleInterpolation.h" 16 #include "core/animation/LegacyStyleInterpolation.h"
16 #include "core/animation/LengthBoxStyleInterpolation.h" 17 #include "core/animation/LengthBoxStyleInterpolation.h"
17 #include "core/animation/LengthPairStyleInterpolation.h" 18 #include "core/animation/LengthPairStyleInterpolation.h"
18 #include "core/animation/LengthStyleInterpolation.h" 19 #include "core/animation/LengthStyleInterpolation.h"
19 #include "core/animation/ListStyleInterpolation.h" 20 #include "core/animation/ListStyleInterpolation.h"
20 #include "core/animation/SVGStrokeDasharrayStyleInterpolation.h" 21 #include "core/animation/SVGStrokeDasharrayStyleInterpolation.h"
21 #include "core/animation/ShadowStyleInterpolation.h" 22 #include "core/animation/ShadowStyleInterpolation.h"
22 #include "core/animation/VisibilityStyleInterpolation.h" 23 #include "core/animation/VisibilityStyleInterpolation.h"
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 } 350 }
350 351
351 case CSSPropertyStrokeDasharray: { 352 case CSSPropertyStrokeDasharray: {
352 RefPtrWillBeRawPtr<Interpolation> interpolation = SVGStrokeDasharrayStyl eInterpolation::maybeCreate(*fromCSSValue, *toCSSValue, property); 353 RefPtrWillBeRawPtr<Interpolation> interpolation = SVGStrokeDasharrayStyl eInterpolation::maybeCreate(*fromCSSValue, *toCSSValue, property);
353 if (interpolation) 354 if (interpolation)
354 return interpolation.release(); 355 return interpolation.release();
355 356
356 break; 357 break;
357 } 358 }
358 359
360 case CSSPropertyWebkitFilter: {
361 RefPtrWillBeRawPtr<Interpolation> interpolation = FilterStyleInterpolati on::maybeCreate(*fromCSSValue, *toCSSValue, property);
362 if (interpolation)
363 return interpolation.release();
364
365 // FIXME: Support drop shadow interpolation.
366 fallBackToLegacy = true;
367 break;
368 }
369
359 default: 370 default:
360 // Fall back to LegacyStyleInterpolation. 371 // Fall back to LegacyStyleInterpolation.
361 fallBackToLegacy = true; 372 fallBackToLegacy = true;
362 break; 373 break;
363 } 374 }
364 375
365 if (fromCSSValue == toCSSValue) 376 if (fromCSSValue == toCSSValue)
366 return ConstantStyleInterpolation::create(fromCSSValue, property); 377 return ConstantStyleInterpolation::create(fromCSSValue, property);
367 378
368 if (forceDefaultInterpolation) 379 if (forceDefaultInterpolation)
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 } 417 }
407 418
408 DEFINE_TRACE(StringKeyframe::PropertySpecificKeyframe) 419 DEFINE_TRACE(StringKeyframe::PropertySpecificKeyframe)
409 { 420 {
410 visitor->trace(m_value); 421 visitor->trace(m_value);
411 visitor->trace(m_animatableValueCache); 422 visitor->trace(m_animatableValueCache);
412 Keyframe::PropertySpecificKeyframe::trace(visitor); 423 Keyframe::PropertySpecificKeyframe::trace(visitor);
413 } 424 }
414 425
415 } 426 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698