#include "config.h"
#include "core/svg/SVGStringList.h"
+#include "bindings/core/v8/ExceptionMessages.h"
#include "core/svg/SVGElement.h"
#include "core/svg/SVGParserUtilities.h"
#include "wtf/text/StringBuilder.h"
-namespace WebCore {
+namespace blink {
SVGStringList::SVGStringList()
- : NewSVGPropertyBase(classType())
{
}
while (ptr < end) {
const CharType* start = ptr;
- while (ptr < end && *ptr != delimiter && !isSVGSpace(*ptr))
+ while (ptr < end && *ptr != delimiter && !isHTMLSpace<CharType>(*ptr))
ptr++;
if (ptr == start)
break;
}
}
-PassRefPtr<SVGStringList> SVGStringList::clone()
-{
- RefPtr<SVGStringList> svgStringList = create();
- svgStringList->m_values = m_values;
- return svgStringList.release();
-}
-
void SVGStringList::setValueAsString(const String& data, ExceptionState&)
{
// FIXME: Add more error checking and reporting.
}
}
-PassRefPtr<NewSVGPropertyBase> SVGStringList::cloneForAnimation(const String& string) const
-{
- RefPtr<SVGStringList> svgStringList = create();
- svgStringList->setValueAsString(string, IGNORE_EXCEPTION);
- return svgStringList.release();
-}
-
String SVGStringList::valueAsString() const
{
StringBuilder builder;
return true;
}
-void SVGStringList::add(PassRefPtr<NewSVGPropertyBase> other, SVGElement* contextElement)
+void SVGStringList::add(PassRefPtrWillBeRawPtr<SVGPropertyBase> other, SVGElement* contextElement)
{
// SVGStringList is never animated.
ASSERT_NOT_REACHED();
}
-void SVGStringList::calculateAnimatedValue(SVGAnimationElement*, float, unsigned, PassRefPtr<NewSVGPropertyBase>, PassRefPtr<NewSVGPropertyBase>, PassRefPtr<NewSVGPropertyBase>, SVGElement*)
+void SVGStringList::calculateAnimatedValue(SVGAnimationElement*, float, unsigned, PassRefPtr<SVGPropertyBase>, PassRefPtr<SVGPropertyBase>, PassRefPtr<SVGPropertyBase>, SVGElement*)
{
// SVGStringList is never animated.
ASSERT_NOT_REACHED();
}
-float SVGStringList::calculateDistance(PassRefPtr<NewSVGPropertyBase>, SVGElement*)
+float SVGStringList::calculateDistance(PassRefPtr<SVGPropertyBase>, SVGElement*)
{
// SVGStringList is never animated.
ASSERT_NOT_REACHED();