Lines Matching refs:src_node

2499 …_clone_container_helper(php_dom_libxml_ns_mapper *ns_mapper, xmlNodePtr src_node, xmlDocPtr dst_do…  in dom_clone_container_helper()  argument
2501 xmlNodePtr clone = xmlDocCopyNode(src_node, dst_doc, 0); in dom_clone_container_helper()
2504 clone->ns = src_node->ns; in dom_clone_container_helper()
2506 if (src_node->type == XML_ELEMENT_NODE) { in dom_clone_container_helper()
2509 if (src_node->nsDef != NULL) { in dom_clone_container_helper()
2510 xmlNsPtr current_ns = src_node->nsDef; in dom_clone_container_helper()
2522 for (xmlAttrPtr attr = src_node->properties; attr != NULL; attr = attr->next) { in dom_clone_container_helper()
2545 static xmlNodePtr dom_clone_helper(php_dom_libxml_ns_mapper *ns_mapper, xmlNodePtr src_node, xmlDoc… in dom_clone_helper() argument
2547 xmlNodePtr outer_clone = dom_clone_container_helper(ns_mapper, src_node, dst_doc); in dom_clone_helper()
2549 …cursive || (src_node->type != XML_ELEMENT_NODE && src_node->type != XML_DOCUMENT_FRAG_NODE && src_… in dom_clone_helper()
2554 if (src_node->type == XML_DOCUMENT_NODE || src_node->type == XML_HTML_DOCUMENT_NODE) { in dom_clone_helper()
2557 xmlDtdPtr original_subset = ((xmlDocPtr) src_node)->intSubset; in dom_clone_helper()
2559 dst_doc->intSubset = xmlCopyDtd(((xmlDocPtr) src_node)->intSubset); in dom_clone_helper()
2571 xmlNodePtr base = src_node; in dom_clone_helper()
2572 src_node = src_node->children; in dom_clone_helper()
2573 while (src_node != NULL) { in dom_clone_helper()
2574 ZEND_ASSERT(src_node != base); in dom_clone_helper()
2577 if (src_node->type == XML_ELEMENT_NODE) { in dom_clone_helper()
2578 cloned = dom_clone_container_helper(ns_mapper, src_node, dst_doc); in dom_clone_helper()
2579 } else if (src_node->type == XML_DTD_NODE) { in dom_clone_helper()
2583 cloned = xmlDocCopyNode(src_node, dst_doc, 1); in dom_clone_helper()
2597 if (src_node->type == XML_ELEMENT_NODE && src_node->children) { in dom_clone_helper()
2599 src_node = src_node->children; in dom_clone_helper()
2600 } else if (src_node->next) { in dom_clone_helper()
2601 src_node = src_node->next; in dom_clone_helper()
2605 src_node = src_node->parent; in dom_clone_helper()
2606 if (src_node == base) { in dom_clone_helper()
2610 } while (src_node->next == NULL); in dom_clone_helper()
2611 src_node = src_node->next; in dom_clone_helper()