| 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/XLinkNames.h" | 8 #include "core/XLinkNames.h" |
| 9 #include "core/animation/CSSColorInterpolationType.h" | 9 #include "core/animation/CSSColorInterpolationType.h" |
| 10 #include "core/animation/CSSFontWeightInterpolationType.h" | 10 #include "core/animation/CSSFontWeightInterpolationType.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 { | 61 { |
| 62 } | 62 } |
| 63 | 63 |
| 64 void StringKeyframe::setCSSPropertyValue(CSSPropertyID property, const String& v
alue, Element* element, StyleSheetContents* styleSheetContents) | 64 void StringKeyframe::setCSSPropertyValue(CSSPropertyID property, const String& v
alue, Element* element, StyleSheetContents* styleSheetContents) |
| 65 { | 65 { |
| 66 ASSERT(property != CSSPropertyInvalid); | 66 ASSERT(property != CSSPropertyInvalid); |
| 67 if (CSSAnimations::isAnimatableProperty(property)) | 67 if (CSSAnimations::isAnimatableProperty(property)) |
| 68 m_cssPropertyMap->setProperty(property, value, false, styleSheetContents
); | 68 m_cssPropertyMap->setProperty(property, value, false, styleSheetContents
); |
| 69 } | 69 } |
| 70 | 70 |
| 71 void StringKeyframe::setCSSPropertyValue(CSSPropertyID property, PassRefPtrWillB
eRawPtr<CSSValue> value) | 71 void StringKeyframe::setCSSPropertyValue(CSSPropertyID property, RawPtr<CSSValue
> value) |
| 72 { | 72 { |
| 73 ASSERT(property != CSSPropertyInvalid); | 73 ASSERT(property != CSSPropertyInvalid); |
| 74 ASSERT(CSSAnimations::isAnimatableProperty(property)); | 74 ASSERT(CSSAnimations::isAnimatableProperty(property)); |
| 75 m_cssPropertyMap->setProperty(property, value, false); | 75 m_cssPropertyMap->setProperty(property, value, false); |
| 76 } | 76 } |
| 77 | 77 |
| 78 void StringKeyframe::setPresentationAttributeValue(CSSPropertyID property, const
String& value, Element* element, StyleSheetContents* styleSheetContents) | 78 void StringKeyframe::setPresentationAttributeValue(CSSPropertyID property, const
String& value, Element* element, StyleSheetContents* styleSheetContents) |
| 79 { | 79 { |
| 80 ASSERT(property != CSSPropertyInvalid); | 80 ASSERT(property != CSSPropertyInvalid); |
| 81 if (CSSAnimations::isAnimatableProperty(property)) | 81 if (CSSAnimations::isAnimatableProperty(property)) |
| (...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 619 } | 619 } |
| 620 | 620 |
| 621 PassRefPtr<Interpolation> SVGPropertySpecificKeyframe::maybeCreateInterpolation(
PropertyHandle propertyHandle, Keyframe::PropertySpecificKeyframe& end, Element*
, const ComputedStyle*) const | 621 PassRefPtr<Interpolation> SVGPropertySpecificKeyframe::maybeCreateInterpolation(
PropertyHandle propertyHandle, Keyframe::PropertySpecificKeyframe& end, Element*
, const ComputedStyle*) const |
| 622 { | 622 { |
| 623 const InterpolationTypes* applicableTypes = applicableTypesForProperty(prope
rtyHandle); | 623 const InterpolationTypes* applicableTypes = applicableTypesForProperty(prope
rtyHandle); |
| 624 ASSERT(applicableTypes); | 624 ASSERT(applicableTypes); |
| 625 return InvalidatableInterpolation::create(propertyHandle, *applicableTypes,
*this, end); | 625 return InvalidatableInterpolation::create(propertyHandle, *applicableTypes,
*this, end); |
| 626 } | 626 } |
| 627 | 627 |
| 628 } // namespace blink | 628 } // namespace blink |
| OLD | NEW |