SVGParsingError SVGPath::setValueAsString(const String& string) { OwnPtr<SVGPathByteStream> byteStream = SVGPathByteStream::create(); SVGParsingError parseStatus = buildByteStreamFromString(string, *byteStream); m_pathValue = CSSPathValue::create(byteStream.release()); return parseStatus; }
SVGParsingError SVGPath::setValueAsString(const String& string) { SVGParsingError parseStatus = NoError; RefPtr<SVGPathByteStream> byteStream = SVGPathByteStream::create(); if (!buildByteStreamFromString(string, *byteStream)) parseStatus = ParsingAttributeFailedError; m_pathValue = CSSPathValue::create(byteStream.release()); return parseStatus; }
RawPtr<SVGPropertyBase> SVGPath::cloneForAnimation(const String& value) const { OwnPtr<SVGPathByteStream> byteStream = SVGPathByteStream::create(); buildByteStreamFromString(value, *byteStream); return SVGPath::create(CSSPathValue::create(byteStream.release())); }