Index: Source/core/animation/EffectInput.cpp |
diff --git a/Source/core/animation/EffectInput.cpp b/Source/core/animation/EffectInput.cpp |
index 2ad754fa3a8222016f32f183e1220b6610fd6347..466052c1346a2b9adb748ab422339eb0f68af214 100644 |
--- a/Source/core/animation/EffectInput.cpp |
+++ b/Source/core/animation/EffectInput.cpp |
@@ -43,20 +43,10 @@ |
namespace WebCore { |
-// FIXME: Remove this once we've removed the dependency on Element. |
-static bool checkDocumentAndRenderer(Element* element) |
+PassRefPtrWillBeRawPtr<AnimationEffect> EffectInput::convert(Element* element, const Vector<Dictionary>& keyframeDictionaryVector, ExceptionState& exceptionState) |
{ |
- if (!element || !element->inActiveDocument()) |
- return false; |
- element->document().updateRenderTreeIfNeeded(); |
- return element->renderer(); |
-} |
- |
-PassRefPtrWillBeRawPtr<AnimationEffect> EffectInput::convert(Element* element, const Vector<Dictionary>& keyframeDictionaryVector, ExceptionState& exceptionState, bool unsafe) |
-{ |
- // FIXME: This test will not be neccessary once resolution of keyframe values occurs at |
- // animation application time. |
- if (!unsafe && !checkDocumentAndRenderer(element)) |
+ // FIXME: Remove the dependency on element. |
+ if (!element) |
return nullptr; |
StyleSheetContents* styleSheetContents = element->document().elementSheet().contents(); |