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

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

Issue 1708293002: Revert of Add additive animation support for CSS properties perspective-origin and object-position (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_backgroundPositionAnimation
Patch Set: Created 4 years, 10 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/StylePropertyShorthand.h" 7 #include "core/StylePropertyShorthand.h"
8 #include "core/animation/ConstantStyleInterpolation.h" 8 #include "core/animation/ConstantStyleInterpolation.h"
9 #include "core/animation/DeferredLegacyStyleInterpolation.h" 9 #include "core/animation/DeferredLegacyStyleInterpolation.h"
10 #include "core/animation/DoubleStyleInterpolation.h" 10 #include "core/animation/DoubleStyleInterpolation.h"
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 break; 176 break;
177 177
178 case CSSPropertyBorderBottomLeftRadius: 178 case CSSPropertyBorderBottomLeftRadius:
179 case CSSPropertyBorderBottomRightRadius: 179 case CSSPropertyBorderBottomRightRadius:
180 case CSSPropertyBorderTopLeftRadius: 180 case CSSPropertyBorderTopLeftRadius:
181 case CSSPropertyBorderTopRightRadius: 181 case CSSPropertyBorderTopRightRadius:
182 if (LengthPairStyleInterpolation::canCreateFrom(*fromCSSValue) && Length PairStyleInterpolation::canCreateFrom(*toCSSValue)) 182 if (LengthPairStyleInterpolation::canCreateFrom(*fromCSSValue) && Length PairStyleInterpolation::canCreateFrom(*toCSSValue))
183 return LengthPairStyleInterpolation::create(*fromCSSValue, *toCSSVal ue, property, RangeNonNegative); 183 return LengthPairStyleInterpolation::create(*fromCSSValue, *toCSSVal ue, property, RangeNonNegative);
184 break; 184 break;
185 185
186 case CSSPropertyPerspectiveOrigin:
186 case CSSPropertyTransformOrigin: { 187 case CSSPropertyTransformOrigin: {
187 RefPtr<Interpolation> interpolation = ListStyleInterpolation<LengthStyle Interpolation>::maybeCreateFromList(*fromCSSValue, *toCSSValue, property, range) ; 188 RefPtr<Interpolation> interpolation = ListStyleInterpolation<LengthStyle Interpolation>::maybeCreateFromList(*fromCSSValue, *toCSSValue, property, range) ;
188 if (interpolation) 189 if (interpolation)
189 return interpolation.release(); 190 return interpolation.release();
190 191
191 // FIXME: Handle keywords: top, right, left, center, bottom 192 // FIXME: Handle keywords: top, right, left, center, bottom
192 return createLegacyStyleInterpolation(property, end, element, baseStyle) ; 193 return createLegacyStyleInterpolation(property, end, element, baseStyle) ;
193 } 194 }
194 195
195 case CSSPropertyClip: { 196 case CSSPropertyClip: {
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 } 288 }
288 289
289 PassRefPtr<Interpolation> SVGPropertySpecificKeyframe::maybeCreateInterpolation( PropertyHandle propertyHandle, Keyframe::PropertySpecificKeyframe& end, Element* , const ComputedStyle*) const 290 PassRefPtr<Interpolation> SVGPropertySpecificKeyframe::maybeCreateInterpolation( PropertyHandle propertyHandle, Keyframe::PropertySpecificKeyframe& end, Element* , const ComputedStyle*) const
290 { 291 {
291 const InterpolationTypes* applicableTypes = PropertyInterpolationTypesMappin g::get(propertyHandle); 292 const InterpolationTypes* applicableTypes = PropertyInterpolationTypesMappin g::get(propertyHandle);
292 ASSERT(applicableTypes); 293 ASSERT(applicableTypes);
293 return InvalidatableInterpolation::create(propertyHandle, *applicableTypes, const_cast<SVGPropertySpecificKeyframe*>(this), &end); 294 return InvalidatableInterpolation::create(propertyHandle, *applicableTypes, const_cast<SVGPropertySpecificKeyframe*>(this), &end);
294 } 295 }
295 296
296 } // namespace blink 297 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698