| 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..dc0c28d1df4fbb979ef603a6a07777dec8b92211
|
| --- /dev/null
|
| +++ b/Source/core/animation/DefaultAnimationType.cpp
|
| @@ -0,0 +1,32 @@
|
| +// 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 {
|
| +
|
| +bool DefaultAnimationType::maybeConvertSingle(
|
| + const CSSPropertySpecificKeyframe& keyframe,
|
| + const StyleResolverState*,
|
| + RefPtrWillBeRawPtr<InterpolationInvalidators>& resultInvalidators,
|
| + OwnPtrWillBeRawPtr<InterpolableValue>& resultInterpolableValue,
|
| + RefPtrWillBeRawPtr<NonInterpolableValue>& resultNonInterpolableValue) const
|
| +{
|
| + resultInvalidators = nullptr;
|
| + resultInterpolableValue = InterpolableList::create(0);
|
| + resultNonInterpolableValue = DefaultNonInterpolableValue::create(keyframe.value());
|
| + return true;
|
| +}
|
| +
|
| +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
|
|
|