Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / svg / SVGStringList.cpp
index 7cb411e..5058925 100644 (file)
 #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())
 {
 }
 
@@ -92,7 +92,7 @@ void SVGStringList::parseInternal(const CharType*& ptr, const CharType* end)
 
     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;
@@ -101,13 +101,6 @@ void SVGStringList::parseInternal(const CharType*& ptr, const CharType* end)
     }
 }
 
-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.
@@ -125,13 +118,6 @@ void SVGStringList::setValueAsString(const String& data, ExceptionState&)
     }
 }
 
-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;
@@ -161,19 +147,19 @@ bool SVGStringList::checkIndexBound(size_t index, ExceptionState& exceptionState
     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();