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

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

Issue 1299323005: blink: Add backdrop-filter support (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: one more Created 5 years, 3 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/AngleSVGInterpolation.h" 8 #include "core/animation/AngleSVGInterpolation.h"
9 #include "core/animation/CSSValueInterpolationType.h" 9 #include "core/animation/CSSValueInterpolationType.h"
10 #include "core/animation/ColorStyleInterpolation.h" 10 #include "core/animation/ColorStyleInterpolation.h"
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 } 433 }
434 434
435 case CSSPropertyStrokeDasharray: { 435 case CSSPropertyStrokeDasharray: {
436 RefPtrWillBeRawPtr<Interpolation> interpolation = SVGStrokeDasharrayStyl eInterpolation::maybeCreate(*fromCSSValue, *toCSSValue, property); 436 RefPtrWillBeRawPtr<Interpolation> interpolation = SVGStrokeDasharrayStyl eInterpolation::maybeCreate(*fromCSSValue, *toCSSValue, property);
437 if (interpolation) 437 if (interpolation)
438 return interpolation.release(); 438 return interpolation.release();
439 439
440 break; 440 break;
441 } 441 }
442 442
443 case CSSPropertyWebkitFilter: { 443 case CSSPropertyWebkitFilter:
444 case CSSPropertyBackdropFilter: {
444 RefPtrWillBeRawPtr<Interpolation> interpolation = FilterStyleInterpolati on::maybeCreateList(*fromCSSValue, *toCSSValue, property); 445 RefPtrWillBeRawPtr<Interpolation> interpolation = FilterStyleInterpolati on::maybeCreateList(*fromCSSValue, *toCSSValue, property);
445 if (interpolation) 446 if (interpolation)
446 return interpolation.release(); 447 return interpolation.release();
447 448
448 // FIXME: Support drop shadow interpolation. 449 // FIXME: Support drop shadow interpolation.
449 return createLegacyStyleInterpolation(property, end, element, baseStyle) ; 450 return createLegacyStyleInterpolation(property, end, element, baseStyle) ;
450 break; 451 break;
451 } 452 }
452 453
453 case CSSPropertyTranslate: { 454 case CSSPropertyTranslate: {
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 RefPtrWillBeRawPtr<SVGPropertyBase> fromValue = attribute->currentValueBase( )->cloneForAnimation(m_value); 601 RefPtrWillBeRawPtr<SVGPropertyBase> fromValue = attribute->currentValueBase( )->cloneForAnimation(m_value);
601 RefPtrWillBeRawPtr<SVGPropertyBase> toValue = attribute->currentValueBase()- >cloneForAnimation(toSVGPropertySpecificKeyframe(end).value()); 602 RefPtrWillBeRawPtr<SVGPropertyBase> toValue = attribute->currentValueBase()- >cloneForAnimation(toSVGPropertySpecificKeyframe(end).value());
602 603
603 if (!fromValue || !toValue) 604 if (!fromValue || !toValue)
604 return nullptr; 605 return nullptr;
605 606
606 return createSVGInterpolation(fromValue.get(), toValue.get(), attribute.get( )); 607 return createSVGInterpolation(fromValue.get(), toValue.get(), attribute.get( ));
607 } 608 }
608 609
609 } // namespace blink 610 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698