Index: Source/core/animation/Animation.cpp |
diff --git a/Source/core/animation/Animation.cpp b/Source/core/animation/Animation.cpp |
index f43bbb2644007abfc66f591b765189c21e3dd156..8b1bef214bb5a72c5ab83999e58ebeee5be34904 100644 |
--- a/Source/core/animation/Animation.cpp |
+++ b/Source/core/animation/Animation.cpp |
@@ -39,6 +39,7 @@ |
#include "core/animation/KeyframeEffectModel.h" |
#include "core/animation/Player.h" |
#include "core/dom/Element.h" |
+#include "core/frame/UseCounter.h" |
#include "core/rendering/RenderLayer.h" |
namespace WebCore { |
@@ -66,16 +67,19 @@ PassRefPtr<Animation> Animation::create(Element* element, PassRefPtrWillBeRawPtr |
PassRefPtr<Animation> Animation::create(Element* element, const Vector<Dictionary>& keyframeDictionaryVector, const Dictionary& timingInputDictionary) |
{ |
ASSERT(RuntimeEnabledFeatures::webAnimationsAPIEnabled()); |
+ UseCounter::count(element->document(), UseCounter::NewAnimationKeyframeListEffectObjectTiming); |
return create(element, EffectInput::convert(element, keyframeDictionaryVector), TimingInput::convert(timingInputDictionary)); |
} |
PassRefPtr<Animation> Animation::create(Element* element, const Vector<Dictionary>& keyframeDictionaryVector, double duration) |
{ |
ASSERT(RuntimeEnabledFeatures::webAnimationsAPIEnabled()); |
+ UseCounter::count(element->document(), UseCounter::NewAnimationKeyframeListEffectDoubleTiming); |
return create(element, EffectInput::convert(element, keyframeDictionaryVector), TimingInput::convert(duration)); |
} |
PassRefPtr<Animation> Animation::create(Element* element, const Vector<Dictionary>& keyframeDictionaryVector) |
{ |
ASSERT(RuntimeEnabledFeatures::webAnimationsAPIEnabled()); |
+ UseCounter::count(element->document(), UseCounter::NewAnimationKeyframeListEffectNoTiming); |
return create(element, EffectInput::convert(element, keyframeDictionaryVector), Timing()); |
} |