| Index: Source/core/animation/EffectInput.cpp
|
| diff --git a/Source/core/animation/EffectInput.cpp b/Source/core/animation/EffectInput.cpp
|
| index ed925e3a4164f7b7eed8e091ecc235b5b6478cb8..afb7a59d68913067ead254c672b0aabc4cff0b6a 100644
|
| --- a/Source/core/animation/EffectInput.cpp
|
| +++ b/Source/core/animation/EffectInput.cpp
|
| @@ -191,10 +191,14 @@ const QualifiedName* supportedSVGAttribute(const String& property, SVGElement* s
|
|
|
| PassRefPtrWillBeRawPtr<EffectModel> EffectInput::convert(Element* element, const Vector<Dictionary>& keyframeDictionaryVector, ExceptionState& exceptionState)
|
| {
|
| - // FIXME: Remove the dependency on element.
|
| if (!element)
|
| return nullptr;
|
|
|
| + // TODO(alancutter): Remove this once composited animations no longer depend on AnimatableValues.
|
| + if (!element->inActiveDocument())
|
| + return nullptr;
|
| + element->document().updateLayoutTreeForNodeIfNeeded(element);
|
| +
|
| StyleSheetContents* styleSheetContents = element->document().elementSheet().contents();
|
| StringKeyframeVector keyframes;
|
| double lastOffset = 0;
|
|
|