Index: Source/core/animation/EffectInput.cpp |
diff --git a/Source/core/animation/EffectInput.cpp b/Source/core/animation/EffectInput.cpp |
index 4375e7fc0fab98ce54032ab3a2001ebe268c0955..3bf7a06a9d56c7b7ba24f6e3545ed0da1ecafa8b 100644 |
--- a/Source/core/animation/EffectInput.cpp |
+++ b/Source/core/animation/EffectInput.cpp |
@@ -32,6 +32,7 @@ |
#include "core/animation/EffectInput.h" |
#include "bindings/core/v8/Dictionary.h" |
+#include "bindings/core/v8/UnionTypesCore.h" |
#include "core/animation/AnimationInputHelpers.h" |
#include "core/animation/KeyframeEffectModel.h" |
#include "core/animation/StringKeyframe.h" |
@@ -120,4 +121,13 @@ PassRefPtrWillBeRawPtr<AnimationEffect> EffectInput::convert(Element* element, c |
return keyframeEffectModel; |
} |
+PassRefPtrWillBeRawPtr<AnimationEffect> EffectInput::convert(Element* element, const AnimationEffectOrDictionarySequence& effectInput, ExceptionState& exceptionState) |
+{ |
+ if (effectInput.isAnimationEffect()) |
+ return effectInput.getAsAnimationEffect(); |
+ if (effectInput.isDictionarySequence()) |
+ return convert(element, effectInput.getAsDictionarySequence(), exceptionState); |
+ return nullptr; |
+} |
+ |
} // namespace blink |