OLD | NEW |
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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 } | 195 } |
196 | 196 |
197 case CSSPropertyBorderBottomLeftRadius: | 197 case CSSPropertyBorderBottomLeftRadius: |
198 case CSSPropertyBorderBottomRightRadius: | 198 case CSSPropertyBorderBottomRightRadius: |
199 case CSSPropertyBorderTopLeftRadius: | 199 case CSSPropertyBorderTopLeftRadius: |
200 case CSSPropertyBorderTopRightRadius: | 200 case CSSPropertyBorderTopRightRadius: |
201 if (LengthPairStyleInterpolation::canCreateFrom(*fromCSSValue) && Length
PairStyleInterpolation::canCreateFrom(*toCSSValue)) | 201 if (LengthPairStyleInterpolation::canCreateFrom(*fromCSSValue) && Length
PairStyleInterpolation::canCreateFrom(*toCSSValue)) |
202 return LengthPairStyleInterpolation::create(*fromCSSValue, *toCSSVal
ue, property, RangeNonNegative); | 202 return LengthPairStyleInterpolation::create(*fromCSSValue, *toCSSVal
ue, property, RangeNonNegative); |
203 break; | 203 break; |
204 | 204 |
205 case CSSPropertyPerspectiveOrigin: | |
206 case CSSPropertyTransformOrigin: { | 205 case CSSPropertyTransformOrigin: { |
207 RefPtr<Interpolation> interpolation = ListStyleInterpolation<LengthStyle
Interpolation>::maybeCreateFromList(*fromCSSValue, *toCSSValue, property, range)
; | 206 RefPtr<Interpolation> interpolation = ListStyleInterpolation<LengthStyle
Interpolation>::maybeCreateFromList(*fromCSSValue, *toCSSValue, property, range)
; |
208 if (interpolation) | 207 if (interpolation) |
209 return interpolation.release(); | 208 return interpolation.release(); |
210 | 209 |
211 // FIXME: Handle keywords: top, right, left, center, bottom | 210 // FIXME: Handle keywords: top, right, left, center, bottom |
212 return createLegacyStyleInterpolation(property, end, element, baseStyle)
; | 211 return createLegacyStyleInterpolation(property, end, element, baseStyle)
; |
213 } | 212 } |
214 | 213 |
215 case CSSPropertyClip: { | 214 case CSSPropertyClip: { |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 } | 319 } |
321 | 320 |
322 PassRefPtr<Interpolation> SVGPropertySpecificKeyframe::maybeCreateInterpolation(
PropertyHandle propertyHandle, Keyframe::PropertySpecificKeyframe& end, Element*
, const ComputedStyle*) const | 321 PassRefPtr<Interpolation> SVGPropertySpecificKeyframe::maybeCreateInterpolation(
PropertyHandle propertyHandle, Keyframe::PropertySpecificKeyframe& end, Element*
, const ComputedStyle*) const |
323 { | 322 { |
324 const InterpolationTypes* applicableTypes = PropertyInterpolationTypesMappin
g::get(propertyHandle); | 323 const InterpolationTypes* applicableTypes = PropertyInterpolationTypesMappin
g::get(propertyHandle); |
325 ASSERT(applicableTypes); | 324 ASSERT(applicableTypes); |
326 return InvalidatableInterpolation::create(propertyHandle, *applicableTypes,
*this, end); | 325 return InvalidatableInterpolation::create(propertyHandle, *applicableTypes,
*this, end); |
327 } | 326 } |
328 | 327 |
329 } // namespace blink | 328 } // namespace blink |
OLD | NEW |