| Index: Source/core/css/resolver/StyleResolver.cpp
|
| diff --git a/Source/core/css/resolver/StyleResolver.cpp b/Source/core/css/resolver/StyleResolver.cpp
|
| index 879b2d86b50438fb68c5f4107590aa8640eee24b..9f0ce15814a894d62292c4c3d75662190a8481db 100644
|
| --- a/Source/core/css/resolver/StyleResolver.cpp
|
| +++ b/Source/core/css/resolver/StyleResolver.cpp
|
| @@ -787,22 +787,13 @@ PassRefPtr<RenderStyle> StyleResolver::styleForKeyframe(Element* element, const
|
|
|
| // This function is used by the WebAnimations JavaScript API method animate().
|
| // FIXME: Remove this when animate() switches away from resolution-dependent parsing.
|
| -PassRefPtrWillBeRawPtr<AnimatableValueKeyframeEffectModel> StyleResolver::createKeyframeEffectModel(Element& element, const WillBeHeapVector<RefPtrWillBeMember<MutableStylePropertySet> >& propertySetVector, AnimatableValueKeyframeVector& keyframes)
|
| +PassRefPtrWillBeRawPtr<AnimatableValue> StyleResolver::createAnimatableValueSnapshot(Element& element, RenderStyle& style, CSSPropertyID property, CSSValue* value)
|
| {
|
| - ASSERT(propertySetVector.size() == keyframes.size());
|
| -
|
| StyleResolverState state(element.document(), &element);
|
| - state.setStyle(RenderStyle::create());
|
| + state.setStyle(&style);
|
| state.fontBuilder().initForStyleResolve(state.document(), state.style(), state.useSVGZoomRules());
|
| -
|
| - for (unsigned i = 0; i < propertySetVector.size(); ++i) {
|
| - for (unsigned j = 0; j < propertySetVector[i]->propertyCount(); ++j) {
|
| - CSSPropertyID id = propertySetVector[i]->propertyAt(j).id();
|
| - StyleBuilder::applyProperty(id, state, propertySetVector[i]->getPropertyCSSValue(id).get());
|
| - keyframes[i]->setPropertyValue(id, CSSAnimatableValueFactory::create(id, *state.style()).get());
|
| - }
|
| - }
|
| - return AnimatableValueKeyframeEffectModel::create(keyframes);
|
| + StyleBuilder::applyProperty(property, state, value);
|
| + return CSSAnimatableValueFactory::create(property, style);
|
| }
|
|
|
| PassRefPtr<PseudoElement> StyleResolver::createPseudoElementIfNeeded(Element& parent, PseudoId pseudoId)
|
|
|