#include "config.h"
#include "core/animation/AnimationNodeTiming.h"
+#include "bindings/core/v8/UnionTypesCore.h"
#include "core/animation/Animation.h"
#include "core/animation/AnimationNode.h"
#include "platform/animation/TimingFunction.h"
// and bindings/tests/results/V8TestInterface.cpp.
// FIXME: It might be possible to have 'duration' defined as an attribute in the idl.
// If possible, fix will be in a follow-up patch.
-void AnimationNodeTiming::getDuration(String propertyName, Nullable<double>& element0, String& element1)
+// http://crbug.com/240176
+void AnimationNodeTiming::getDuration(String propertyName, DoubleOrString& returnValue)
{
if (propertyName != "duration")
return;
if (std::isnan(m_parent->specifiedTiming().iterationDuration)) {
- element1 = "auto";
+ returnValue.setString("auto");
return;
}
- element0.set(m_parent->specifiedTiming().iterationDuration * 1000);
+ returnValue.setDouble(m_parent->specifiedTiming().iterationDuration * 1000);
return;
}