Index: Source/core/animation/EffectInput.cpp |
diff --git a/Source/core/animation/EffectInput.cpp b/Source/core/animation/EffectInput.cpp |
index 2f87c28e668d7f864803948083a75f07a80e13f9..b8cbfb4863cfd61817b3b437a0ab11f606dac997 100644 |
--- a/Source/core/animation/EffectInput.cpp |
+++ b/Source/core/animation/EffectInput.cpp |
@@ -48,7 +48,7 @@ static bool checkDocumentAndRenderer(Element* element) |
return element->renderer(); |
} |
-PassRefPtrWillBeRawPtr<AnimationEffect> EffectInput::convert(Element* element, const Vector<Dictionary>& keyframeDictionaryVector, bool unsafe) |
+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. |
@@ -104,7 +104,11 @@ PassRefPtrWillBeRawPtr<AnimationEffect> EffectInput::convert(Element* element, c |
} |
// FIXME: Replace this with code that just parses, when that code is available. |
- return StyleResolver::createKeyframeEffectModel(*element, propertySetVector, keyframes); |
+ RefPtrWillBeRawPtr<KeyframeEffectModel> keyframeEffectModel = StyleResolver::createKeyframeEffectModel(*element, propertySetVector, keyframes); |
+ if (!keyframeEffectModel->isReplaceOnly()) |
+ exceptionState.throwDOMException(NotSupportedError, "Partial keyframes are not supported."); |
+ |
+ return keyframeEffectModel; |
} |
} // namespace WebCore |