GradientFactoryMethod gradientMethod;
SvgNode *node = nullptr;
- const char *buf = content;
- unsigned buflen = length;
-
-
- while (auto next = simpleXmlParseCSSAttribute(buf, buflen, &tag, &name, &attrs, &attrsLength)) {
+ while (auto next = simpleXmlParseCSSAttribute(content, length, &tag, &name, &attrs, &attrsLength)) {
if ((method = _findGroupFactory(tag))) {
//TODO - node->id ??? add additional var for svgnode?
if ((node = method(loader, loader->cssStyle, attrs, attrsLength, simpleXmlParseW3CAttribute))) node->id = _copyId(name);
TVGLOG("SVG", "Unsupported elements used [Elements: %s]", tag);
}
- buflen -= next - buf;
- buf = next;
-
+ length -= next - content;
+ content = next;
free(tag);
free(name);