| 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/DeferredLegacyStyleInterpolation.h" | 8 #include "core/animation/DeferredLegacyStyleInterpolation.h" |
| 9 #include "core/animation/InvalidatableInterpolation.h" | 9 #include "core/animation/InvalidatableInterpolation.h" |
| 10 #include "core/animation/LegacyStyleInterpolation.h" | 10 #include "core/animation/LegacyStyleInterpolation.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 { | 26 { |
| 27 } | 27 } |
| 28 | 28 |
| 29 void StringKeyframe::setCSSPropertyValue(CSSPropertyID property, const String& v
alue, Element* element, StyleSheetContents* styleSheetContents) | 29 void StringKeyframe::setCSSPropertyValue(CSSPropertyID property, const String& v
alue, Element* element, StyleSheetContents* styleSheetContents) |
| 30 { | 30 { |
| 31 ASSERT(property != CSSPropertyInvalid); | 31 ASSERT(property != CSSPropertyInvalid); |
| 32 if (CSSAnimations::isAnimatableProperty(property)) | 32 if (CSSAnimations::isAnimatableProperty(property)) |
| 33 m_cssPropertyMap->setProperty(property, value, false, styleSheetContents
); | 33 m_cssPropertyMap->setProperty(property, value, false, styleSheetContents
); |
| 34 } | 34 } |
| 35 | 35 |
| 36 void StringKeyframe::setCSSPropertyValue(CSSPropertyID property, PassRefPtrWillB
eRawPtr<CSSValue> value) | 36 void StringKeyframe::setCSSPropertyValue(CSSPropertyID property, RawPtr<CSSValue
> value) |
| 37 { | 37 { |
| 38 ASSERT(property != CSSPropertyInvalid); | 38 ASSERT(property != CSSPropertyInvalid); |
| 39 ASSERT(CSSAnimations::isAnimatableProperty(property)); | 39 ASSERT(CSSAnimations::isAnimatableProperty(property)); |
| 40 m_cssPropertyMap->setProperty(property, value, false); | 40 m_cssPropertyMap->setProperty(property, value, false); |
| 41 } | 41 } |
| 42 | 42 |
| 43 void StringKeyframe::setPresentationAttributeValue(CSSPropertyID property, const
String& value, Element* element, StyleSheetContents* styleSheetContents) | 43 void StringKeyframe::setPresentationAttributeValue(CSSPropertyID property, const
String& value, Element* element, StyleSheetContents* styleSheetContents) |
| 44 { | 44 { |
| 45 ASSERT(property != CSSPropertyInvalid); | 45 ASSERT(property != CSSPropertyInvalid); |
| 46 if (CSSAnimations::isAnimatableProperty(property)) | 46 if (CSSAnimations::isAnimatableProperty(property)) |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 } | 162 } |
| 163 | 163 |
| 164 PassRefPtr<Interpolation> SVGPropertySpecificKeyframe::maybeCreateInterpolation(
PropertyHandle propertyHandle, Keyframe::PropertySpecificKeyframe& end, Element*
, const ComputedStyle*) const | 164 PassRefPtr<Interpolation> SVGPropertySpecificKeyframe::maybeCreateInterpolation(
PropertyHandle propertyHandle, Keyframe::PropertySpecificKeyframe& end, Element*
, const ComputedStyle*) const |
| 165 { | 165 { |
| 166 const InterpolationTypes* applicableTypes = PropertyInterpolationTypesMappin
g::get(propertyHandle); | 166 const InterpolationTypes* applicableTypes = PropertyInterpolationTypesMappin
g::get(propertyHandle); |
| 167 ASSERT(applicableTypes); | 167 ASSERT(applicableTypes); |
| 168 return InvalidatableInterpolation::create(propertyHandle, *applicableTypes,
const_cast<SVGPropertySpecificKeyframe*>(this), &end); | 168 return InvalidatableInterpolation::create(propertyHandle, *applicableTypes,
const_cast<SVGPropertySpecificKeyframe*>(this), &end); |
| 169 } | 169 } |
| 170 | 170 |
| 171 } // namespace blink | 171 } // namespace blink |
| OLD | NEW |