bool appendSVGPathByteStreamFromSVGPathSeg(RefPtr<SVGPathSeg>&& pathSeg, SVGPathByteStream& result, PathParsingMode parsingMode) { // FIXME: https://bugs.webkit.org/show_bug.cgi?id=15412 - Implement normalized path segment lists! ASSERT(parsingMode == UnalteredParsing); SVGPathSegList appendedItemList(PathSegUnalteredRole); appendedItemList.append(WTFMove(pathSeg)); SVGPathByteStream appendedByteStream; SVGPathSegListSource source(appendedItemList); bool ok = SVGPathParser::parseToByteStream(source, result, parsingMode, false); if (ok) result.append(appendedByteStream); return ok; }