| Index: Source/core/animation/DefaultAnimationType.cpp
|
| diff --git a/Source/core/animation/DefaultAnimationType.cpp b/Source/core/animation/DefaultAnimationType.cpp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c01624fbd3300fa34cdfe54b1072d1e122ceb5b9
|
| --- /dev/null
|
| +++ b/Source/core/animation/DefaultAnimationType.cpp
|
| @@ -0,0 +1,27 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "config.h"
|
| +#include "core/animation/DefaultAnimationType.h"
|
| +
|
| +#include "core/css/resolver/StyleBuilder.h"
|
| +
|
| +namespace blink {
|
| +
|
| +PassOwnPtrWillBeRawPtr<AnimationConversionHalf> DefaultAnimationType::maybeConvertSingle(const CSSPropertySpecificKeyframe& keyframe, const StyleResolverState*) const
|
| +{
|
| + OwnPtrWillBeRawPtr<AnimationConversionHalf> result = AnimationConversionHalf::create();
|
| + result->interpolableValue = InterpolableList::create(0);
|
| + result->nonInterpolableValue = DefaultNonInterpolableValue::create(keyframe.value());
|
| + return result.release();
|
| +}
|
| +
|
| +void DefaultAnimationType::apply(const InterpolableValue&, const NonInterpolableValue* nonInterpolableValue, StyleResolverState& state) const
|
| +{
|
| + StyleBuilder::applyProperty(m_property, state, toDefaultNonInterpolableValue(nonInterpolableValue)->cssValue());
|
| +}
|
| +
|
| +DEFINE_NON_INTERPOLABLE_VALUE_TYPE(DefaultNonInterpolableValue);
|
| +
|
| +} // namespace blink
|
|
|