OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "config.h" |
| 6 #include "core/animation/CSSValueAnimationType.h" |
| 7 |
| 8 #include "core/css/resolver/StyleBuilder.h" |
| 9 |
| 10 namespace blink { |
| 11 |
| 12 AnimationValue* CSSValueAnimationType::maybeConvertSingle(const CSSPropertySpeci
ficKeyframe& keyframe, const StyleResolverState*, ConversionCheckers&) const |
| 13 { |
| 14 return AnimationValue::create(*this, InterpolableList::create(0), DefaultNon
InterpolableValue::create(keyframe.value())); |
| 15 } |
| 16 |
| 17 void CSSValueAnimationType::apply(const InterpolableValue&, const NonInterpolabl
eValue* nonInterpolableValue, StyleResolverState& state) const |
| 18 { |
| 19 StyleBuilder::applyProperty(m_property, state, toDefaultNonInterpolableValue
(nonInterpolableValue)->cssValue()); |
| 20 } |
| 21 |
| 22 DEFINE_NON_INTERPOLABLE_VALUE_TYPE(DefaultNonInterpolableValue); |
| 23 |
| 24 } // namespace blink |
OLD | NEW |