Lines Matching full:id

403     for (auto id = open; id < close; id++) {  in _idFromUrl()  local
404 if (*id == ' ' || *id == '\'') return nullptr; in _idFromUrl()
912 static void _postpone(Array<SvgNodeIdPair>& nodes, SvgNode *node, char* id) in _postpone() argument
914 nodes.push({node, id}); in _postpone()
1299 } else if (!strcmp(key, "id")) { in _attrParseGNode()
1300 if (node->id && value) free(node->id); in _attrParseGNode()
1301 node->id = _copyId(value); in _attrParseGNode()
1328 } else if (!strcmp(key, "id")) { in _attrParseClipPathNode()
1329 if (node->id && value) free(node->id); in _attrParseClipPathNode()
1330 node->id = _copyId(value); in _attrParseClipPathNode()
1352 } else if (!strcmp(key, "id")) { in _attrParseMaskNode()
1353 if (node->id && value) free(node->id); in _attrParseMaskNode()
1354 node->id = _copyId(value); in _attrParseMaskNode()
1373 if (!strcmp(key, "id")) { in _attrParseCssStyleNode()
1374 if (node->id && value) free(node->id); in _attrParseCssStyleNode()
1375 node->id = _copyId(value); in _attrParseCssStyleNode()
1588 } else if (!strcmp(key, "id")) { in _attrParsePathNode()
1589 if (node->id && value) free(node->id); in _attrParsePathNode()
1590 node->id = _copyId(value); in _attrParsePathNode()
1650 } else if (!strcmp(key, "id")) { in _attrParseCircleNode()
1651 if (node->id && value) free(node->id); in _attrParseCircleNode()
1652 node->id = _copyId(value); in _attrParseCircleNode()
1706 if (!strcmp(key, "id")) { in _attrParseEllipseNode()
1707 if (node->id && value) free(node->id); in _attrParseEllipseNode()
1708 node->id = _copyId(value); in _attrParseEllipseNode()
1766 } else if (!strcmp(key, "id")) { in _attrParsePolygonNode()
1767 if (node->id && value) free(node->id); in _attrParsePolygonNode()
1768 node->id = _copyId(value); in _attrParsePolygonNode()
1842 if (!strcmp(key, "id")) { in _attrParseRectNode()
1843 if (node->id && value) free(node->id); in _attrParseRectNode()
1844 node->id = _copyId(value); in _attrParseRectNode()
1907 if (!strcmp(key, "id")) { in _attrParseLineNode()
1908 if (node->id && value) free(node->id); in _attrParseLineNode()
1909 node->id = _copyId(value); in _attrParseLineNode()
1980 } else if (!strcmp(key, "id")) { in _attrParseImageNode()
1981 if (node->id && value) free(node->id); in _attrParseImageNode()
1982 node->id = _copyId(value); in _attrParseImageNode()
2026 static SvgNode* _findNodeById(SvgNode *node, const char* id) in _findNodeById() argument
2031 if (node->id && !strcmp(node->id, id)) return node; in _findNodeById()
2036 result = _findNodeById(*child, id); in _findNodeById()
2044 static SvgNode* _findParentById(SvgNode* node, char* id, SvgNode* doc) in _findParentById() argument
2048 if (parent->id && !strcmp(parent->id, id)) { in _findParentById()
2076 char* id; in _attrParseUseNode() local
2093 id = _idFromHref(value); in _attrParseUseNode()
2095 nodeFrom = _findNodeById(defs, id); in _attrParseUseNode()
2097 if (!_findParentById(node, id, loader->doc)) { in _attrParseUseNode()
2101 TVGLOG("SVG", "%s is ancestor element. This reference is invalid.", id); in _attrParseUseNode()
2103 free(id); in _attrParseUseNode()
2108 _postpone(loader->cloneNodes, node, id); in _attrParseUseNode()
2170 } else if (!strcmp(key, "id")) { in _attrParseTextNode()
2171 if (node->id && value) free(node->id); in _attrParseTextNode()
2172 node->id = _copyId(value); in _attrParseTextNode()
2497 if (!strcmp(key, "id")) { in _attrParseRadialGradientNode()
2498 if (grad->id && value) free(grad->id); in _attrParseRadialGradientNode()
2499 grad->id = _copyId(value); in _attrParseRadialGradientNode()
2765 if (!strcmp(key, "id")) { in _attrParseLinearGradientNode()
2766 if (grad->id && value) free(grad->id); in _attrParseLinearGradientNode()
2767 grad->id = _copyId(value); in _attrParseLinearGradientNode()
2933 grad->id = from->id ? _copyId(from->id) : nullptr; in _cloneGradient()
3252 auto nodeFrom = _findNodeById(defs, nodeIdPair.id); in _clonePostponedNodes()
3253 if (!nodeFrom) nodeFrom = _findNodeById(doc, nodeIdPair.id); in _clonePostponedNodes()
3254 if (!_findParentById(nodeIdPair.node, nodeIdPair.id, doc)) { in _clonePostponedNodes()
3260 TVGLOG("SVG", "%s is ancestor element. This reference is invalid.", nodeIdPair.id); in _clonePostponedNodes()
3262 free(nodeIdPair.id); in _clonePostponedNodes()
3347 // TODO: For now only the first style node is saved. After the css id selector in _svgLoaderParserXmlOpen()
3425 …ader, loader->cssStyle, attrs, attrsLength, simpleXmlParseW3CAttribute))) node->id = _copyId(name); in _svgLoaderParserXmlCssStyle()
3427 …ader, loader->cssStyle, attrs, attrsLength, simpleXmlParseW3CAttribute))) node->id = _copyId(name); in _svgLoaderParserXmlCssStyle()
3433 …ader, loader->cssStyle, attrs, attrsLength, simpleXmlParseW3CAttribute))) node->id = _copyId(name); in _svgLoaderParserXmlCssStyle()
3541 …eGradient* _gradientDup(SvgLoaderData* loader, Array<SvgStyleGradient*>* gradients, const char* id) in _gradientDup() argument
3548 if ((*gradList)->id && !strcmp((*gradList)->id, id)) { in _gradientDup()
3558 if ((*gradList)->id && !strcmp((*gradList)->id, result->ref)) { in _gradientDup()
3655 free(node->id); in _freeNode()