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

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

Issue 1592593002: Web Animations: Animate d presentation attribute using InterpolableValue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove assert Created 4 years, 11 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 "core/animation/StringKeyframe.h" 5 #include "core/animation/StringKeyframe.h"
6 6
7 #include "core/XLinkNames.h" 7 #include "core/XLinkNames.h"
8 #include "core/animation/CSSColorInterpolationType.h" 8 #include "core/animation/CSSColorInterpolationType.h"
9 #include "core/animation/CSSFontWeightInterpolationType.h" 9 #include "core/animation/CSSFontWeightInterpolationType.h"
10 #include "core/animation/CSSImageInterpolationType.h" 10 #include "core/animation/CSSImageInterpolationType.h"
11 #include "core/animation/CSSImageListInterpolationType.h" 11 #include "core/animation/CSSImageListInterpolationType.h"
12 #include "core/animation/CSSLengthInterpolationType.h" 12 #include "core/animation/CSSLengthInterpolationType.h"
13 #include "core/animation/CSSLengthListInterpolationType.h" 13 #include "core/animation/CSSLengthListInterpolationType.h"
14 #include "core/animation/CSSNumberInterpolationType.h" 14 #include "core/animation/CSSNumberInterpolationType.h"
15 #include "core/animation/CSSPaintInterpolationType.h" 15 #include "core/animation/CSSPaintInterpolationType.h"
16 #include "core/animation/CSSPathInterpolationType.h"
16 #include "core/animation/CSSShadowListInterpolationType.h" 17 #include "core/animation/CSSShadowListInterpolationType.h"
17 #include "core/animation/CSSValueInterpolationType.h" 18 #include "core/animation/CSSValueInterpolationType.h"
18 #include "core/animation/CSSVisibilityInterpolationType.h" 19 #include "core/animation/CSSVisibilityInterpolationType.h"
19 #include "core/animation/CompositorAnimations.h" 20 #include "core/animation/CompositorAnimations.h"
20 #include "core/animation/ConstantStyleInterpolation.h" 21 #include "core/animation/ConstantStyleInterpolation.h"
21 #include "core/animation/DefaultSVGInterpolation.h" 22 #include "core/animation/DefaultSVGInterpolation.h"
22 #include "core/animation/DeferredLegacyStyleInterpolation.h" 23 #include "core/animation/DeferredLegacyStyleInterpolation.h"
23 #include "core/animation/DoubleStyleInterpolation.h" 24 #include "core/animation/DoubleStyleInterpolation.h"
24 #include "core/animation/FilterStyleInterpolation.h" 25 #include "core/animation/FilterStyleInterpolation.h"
25 #include "core/animation/ImageSliceStyleInterpolation.h" 26 #include "core/animation/ImageSliceStyleInterpolation.h"
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 case CSSPropertyStopColor: 236 case CSSPropertyStopColor:
236 case CSSPropertyTextDecorationColor: 237 case CSSPropertyTextDecorationColor:
237 case CSSPropertyWebkitColumnRuleColor: 238 case CSSPropertyWebkitColumnRuleColor:
238 case CSSPropertyWebkitTextStrokeColor: 239 case CSSPropertyWebkitTextStrokeColor:
239 applicableTypes->append(adoptPtr(new CSSColorInterpolationType(cssPr operty))); 240 applicableTypes->append(adoptPtr(new CSSColorInterpolationType(cssPr operty)));
240 break; 241 break;
241 case CSSPropertyFill: 242 case CSSPropertyFill:
242 case CSSPropertyStroke: 243 case CSSPropertyStroke:
243 applicableTypes->append(adoptPtr(new CSSPaintInterpolationType(cssPr operty))); 244 applicableTypes->append(adoptPtr(new CSSPaintInterpolationType(cssPr operty)));
244 break; 245 break;
246 case CSSPropertyD:
247 applicableTypes->append(adoptPtr(new CSSPathInterpolationType(cssPro perty)));
248 break;
245 case CSSPropertyBoxShadow: 249 case CSSPropertyBoxShadow:
246 case CSSPropertyTextShadow: 250 case CSSPropertyTextShadow:
247 applicableTypes->append(adoptPtr(new CSSShadowListInterpolationType( cssProperty))); 251 applicableTypes->append(adoptPtr(new CSSShadowListInterpolationType( cssProperty)));
248 break; 252 break;
249 case CSSPropertyBorderImageSource: 253 case CSSPropertyBorderImageSource:
250 case CSSPropertyListStyleImage: 254 case CSSPropertyListStyleImage:
251 case CSSPropertyWebkitMaskBoxImageSource: 255 case CSSPropertyWebkitMaskBoxImageSource:
252 applicableTypes->append(adoptPtr(new CSSImageInterpolationType(cssPr operty))); 256 applicableTypes->append(adoptPtr(new CSSImageInterpolationType(cssPr operty)));
253 break; 257 break;
254 case CSSPropertyBackgroundImage: 258 case CSSPropertyBackgroundImage:
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 RefPtrWillBeRawPtr<SVGPropertyBase> fromValue = attribute->currentValueBase( )->cloneForAnimation(m_value); 650 RefPtrWillBeRawPtr<SVGPropertyBase> fromValue = attribute->currentValueBase( )->cloneForAnimation(m_value);
647 RefPtrWillBeRawPtr<SVGPropertyBase> toValue = attribute->currentValueBase()- >cloneForAnimation(toSVGPropertySpecificKeyframe(end).value()); 651 RefPtrWillBeRawPtr<SVGPropertyBase> toValue = attribute->currentValueBase()- >cloneForAnimation(toSVGPropertySpecificKeyframe(end).value());
648 652
649 if (!fromValue || !toValue) 653 if (!fromValue || !toValue)
650 return nullptr; 654 return nullptr;
651 655
652 return createSVGInterpolation(fromValue.get(), toValue.get(), attribute); 656 return createSVGInterpolation(fromValue.get(), toValue.get(), attribute);
653 } 657 }
654 658
655 } // namespace blink 659 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/animation/SVGPathInterpolationType.cpp ('k') | third_party/WebKit/Source/core/core.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698