msxml3: Remove forward to removeChild() method for nodes.
This commit is contained in:
parent
12d4683f05
commit
1178f7b46e
|
@ -326,10 +326,11 @@ static HRESULT WINAPI domattr_replaceChild(
|
||||||
|
|
||||||
static HRESULT WINAPI domattr_removeChild(
|
static HRESULT WINAPI domattr_removeChild(
|
||||||
IXMLDOMAttribute *iface,
|
IXMLDOMAttribute *iface,
|
||||||
IXMLDOMNode* domNode, IXMLDOMNode** oldNode)
|
IXMLDOMNode *child, IXMLDOMNode **oldChild)
|
||||||
{
|
{
|
||||||
domattr *This = impl_from_IXMLDOMAttribute( iface );
|
domattr *This = impl_from_IXMLDOMAttribute( iface );
|
||||||
return IXMLDOMNode_removeChild( &This->node.IXMLDOMNode_iface, domNode, oldNode );
|
TRACE("(%p)->(%p %p)\n", This, child, oldChild);
|
||||||
|
return node_remove_child(&This->node, child, oldChild);
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI domattr_appendChild(
|
static HRESULT WINAPI domattr_appendChild(
|
||||||
|
|
|
@ -337,10 +337,11 @@ static HRESULT WINAPI domcdata_replaceChild(
|
||||||
|
|
||||||
static HRESULT WINAPI domcdata_removeChild(
|
static HRESULT WINAPI domcdata_removeChild(
|
||||||
IXMLDOMCDATASection *iface,
|
IXMLDOMCDATASection *iface,
|
||||||
IXMLDOMNode* domNode, IXMLDOMNode** oldNode)
|
IXMLDOMNode *child, IXMLDOMNode **oldChild)
|
||||||
{
|
{
|
||||||
domcdata *This = impl_from_IXMLDOMCDATASection( iface );
|
domcdata *This = impl_from_IXMLDOMCDATASection( iface );
|
||||||
return IXMLDOMNode_removeChild( &This->node.IXMLDOMNode_iface, domNode, oldNode );
|
TRACE("(%p)->(%p %p)\n", This, child, oldChild);
|
||||||
|
return node_remove_child(&This->node, child, oldChild);
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI domcdata_appendChild(
|
static HRESULT WINAPI domcdata_appendChild(
|
||||||
|
|
|
@ -330,10 +330,11 @@ static HRESULT WINAPI domcomment_replaceChild(
|
||||||
|
|
||||||
static HRESULT WINAPI domcomment_removeChild(
|
static HRESULT WINAPI domcomment_removeChild(
|
||||||
IXMLDOMComment *iface,
|
IXMLDOMComment *iface,
|
||||||
IXMLDOMNode* domNode, IXMLDOMNode** oldNode)
|
IXMLDOMNode *child, IXMLDOMNode **oldChild)
|
||||||
{
|
{
|
||||||
domcomment *This = impl_from_IXMLDOMComment( iface );
|
domcomment *This = impl_from_IXMLDOMComment( iface );
|
||||||
return IXMLDOMNode_removeChild( &This->node.IXMLDOMNode_iface, domNode, oldNode );
|
TRACE("(%p)->(%p %p)\n", This, child, oldChild);
|
||||||
|
return node_remove_child(&This->node, child, oldChild);
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI domcomment_appendChild(
|
static HRESULT WINAPI domcomment_appendChild(
|
||||||
|
|
|
@ -334,10 +334,11 @@ static HRESULT WINAPI domfrag_replaceChild(
|
||||||
|
|
||||||
static HRESULT WINAPI domfrag_removeChild(
|
static HRESULT WINAPI domfrag_removeChild(
|
||||||
IXMLDOMDocumentFragment *iface,
|
IXMLDOMDocumentFragment *iface,
|
||||||
IXMLDOMNode* domNode, IXMLDOMNode** oldNode)
|
IXMLDOMNode *child, IXMLDOMNode **oldChild)
|
||||||
{
|
{
|
||||||
domfrag *This = impl_from_IXMLDOMDocumentFragment( iface );
|
domfrag *This = impl_from_IXMLDOMDocumentFragment( iface );
|
||||||
return IXMLDOMNode_removeChild( &This->node.IXMLDOMNode_iface, domNode, oldNode );
|
TRACE("(%p)->(%p %p)\n", This, child, oldChild);
|
||||||
|
return node_remove_child(&This->node, child, oldChild);
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI domfrag_appendChild(
|
static HRESULT WINAPI domfrag_appendChild(
|
||||||
|
|
|
@ -1217,11 +1217,12 @@ static HRESULT WINAPI domdoc_replaceChild(
|
||||||
|
|
||||||
static HRESULT WINAPI domdoc_removeChild(
|
static HRESULT WINAPI domdoc_removeChild(
|
||||||
IXMLDOMDocument3 *iface,
|
IXMLDOMDocument3 *iface,
|
||||||
IXMLDOMNode* childNode,
|
IXMLDOMNode *child,
|
||||||
IXMLDOMNode** oldChild)
|
IXMLDOMNode **oldChild)
|
||||||
{
|
{
|
||||||
domdoc *This = impl_from_IXMLDOMDocument3( iface );
|
domdoc *This = impl_from_IXMLDOMDocument3( iface );
|
||||||
return IXMLDOMNode_removeChild( &This->node.IXMLDOMNode_iface, childNode, oldChild );
|
TRACE("(%p)->(%p %p)\n", This, child, oldChild);
|
||||||
|
return node_remove_child(&This->node, child, oldChild);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -345,10 +345,11 @@ static HRESULT WINAPI domelem_replaceChild(
|
||||||
|
|
||||||
static HRESULT WINAPI domelem_removeChild(
|
static HRESULT WINAPI domelem_removeChild(
|
||||||
IXMLDOMElement *iface,
|
IXMLDOMElement *iface,
|
||||||
IXMLDOMNode* domNode, IXMLDOMNode** oldNode)
|
IXMLDOMNode *child, IXMLDOMNode **oldChild)
|
||||||
{
|
{
|
||||||
domelem *This = impl_from_IXMLDOMElement( iface );
|
domelem *This = impl_from_IXMLDOMElement( iface );
|
||||||
return IXMLDOMNode_removeChild( &This->node.IXMLDOMNode_iface, domNode, oldNode );
|
TRACE("(%p)->(%p %p)\n", This, child, oldChild);
|
||||||
|
return node_remove_child(&This->node, child, oldChild);
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI domelem_appendChild(
|
static HRESULT WINAPI domelem_appendChild(
|
||||||
|
|
|
@ -328,10 +328,11 @@ static HRESULT WINAPI entityref_replaceChild(
|
||||||
|
|
||||||
static HRESULT WINAPI entityref_removeChild(
|
static HRESULT WINAPI entityref_removeChild(
|
||||||
IXMLDOMEntityReference *iface,
|
IXMLDOMEntityReference *iface,
|
||||||
IXMLDOMNode* domNode, IXMLDOMNode** oldNode)
|
IXMLDOMNode *child, IXMLDOMNode **oldChild)
|
||||||
{
|
{
|
||||||
entityref *This = impl_from_IXMLDOMEntityReference( iface );
|
entityref *This = impl_from_IXMLDOMEntityReference( iface );
|
||||||
return IXMLDOMNode_removeChild( &This->node.IXMLDOMNode_iface, domNode, oldNode );
|
TRACE("(%p)->(%p %p)\n", This, child, oldChild);
|
||||||
|
return node_remove_child(&This->node, child, oldChild);
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI entityref_appendChild(
|
static HRESULT WINAPI entityref_appendChild(
|
||||||
|
|
|
@ -271,6 +271,7 @@ extern HRESULT node_clone(xmlnode*,VARIANT_BOOL,IXMLDOMNode**);
|
||||||
extern HRESULT node_get_prefix(xmlnode*,BSTR*);
|
extern HRESULT node_get_prefix(xmlnode*,BSTR*);
|
||||||
extern HRESULT node_get_base_name(xmlnode*,BSTR*);
|
extern HRESULT node_get_base_name(xmlnode*,BSTR*);
|
||||||
extern HRESULT node_get_namespaceURI(xmlnode*,BSTR*);
|
extern HRESULT node_get_namespaceURI(xmlnode*,BSTR*);
|
||||||
|
extern HRESULT node_remove_child(xmlnode*,IXMLDOMNode*,IXMLDOMNode**);
|
||||||
|
|
||||||
extern HRESULT DOMDocument_create_from_xmldoc(xmlDocPtr xmldoc, IXMLDOMDocument3 **document);
|
extern HRESULT DOMDocument_create_from_xmldoc(xmlDocPtr xmldoc, IXMLDOMDocument3 **document);
|
||||||
extern HRESULT SchemaCache_validate_tree(IXMLDOMSchemaCollection2* iface, xmlNodePtr tree);
|
extern HRESULT SchemaCache_validate_tree(IXMLDOMSchemaCollection2* iface, xmlNodePtr tree);
|
||||||
|
|
|
@ -401,22 +401,16 @@ HRESULT node_replace_child(xmlnode *This, IXMLDOMNode *newChild, IXMLDOMNode *ol
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI xmlnode_removeChild(
|
HRESULT node_remove_child(xmlnode *This, IXMLDOMNode* child, IXMLDOMNode** oldChild)
|
||||||
IXMLDOMNode *iface,
|
|
||||||
IXMLDOMNode* childNode,
|
|
||||||
IXMLDOMNode** oldChild)
|
|
||||||
{
|
{
|
||||||
xmlnode *This = impl_from_IXMLDOMNode( iface );
|
|
||||||
xmlnode *child_node;
|
xmlnode *child_node;
|
||||||
|
|
||||||
TRACE("(%p)->(%p %p)\n", This, childNode, oldChild);
|
if(!child) return E_INVALIDARG;
|
||||||
|
|
||||||
if(!childNode) return E_INVALIDARG;
|
|
||||||
|
|
||||||
if(oldChild)
|
if(oldChild)
|
||||||
*oldChild = NULL;
|
*oldChild = NULL;
|
||||||
|
|
||||||
child_node = get_node_obj(childNode);
|
child_node = get_node_obj(child);
|
||||||
if(!child_node) {
|
if(!child_node) {
|
||||||
FIXME("childNode is not our node implementation\n");
|
FIXME("childNode is not our node implementation\n");
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
@ -424,7 +418,7 @@ static HRESULT WINAPI xmlnode_removeChild(
|
||||||
|
|
||||||
if(child_node->node->parent != This->node)
|
if(child_node->node->parent != This->node)
|
||||||
{
|
{
|
||||||
WARN("childNode %p is not a child of %p\n", childNode, iface);
|
WARN("childNode %p is not a child of %p\n", child, This);
|
||||||
return E_INVALIDARG;
|
return E_INVALIDARG;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -432,8 +426,8 @@ static HRESULT WINAPI xmlnode_removeChild(
|
||||||
|
|
||||||
if(oldChild)
|
if(oldChild)
|
||||||
{
|
{
|
||||||
IXMLDOMNode_AddRef(childNode);
|
IXMLDOMNode_AddRef(child);
|
||||||
*oldChild = childNode;
|
*oldChild = child;
|
||||||
}
|
}
|
||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
|
@ -1152,7 +1146,7 @@ static const struct IXMLDOMNodeVtbl xmlnode_vtbl =
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
xmlnode_removeChild,
|
NULL,
|
||||||
xmlnode_appendChild,
|
xmlnode_appendChild,
|
||||||
xmlnode_hasChildNodes,
|
xmlnode_hasChildNodes,
|
||||||
xmlnode_get_ownerDocument,
|
xmlnode_get_ownerDocument,
|
||||||
|
@ -1494,7 +1488,7 @@ static HRESULT WINAPI unknode_removeChild(
|
||||||
IXMLDOMNode* domNode, IXMLDOMNode** oldNode)
|
IXMLDOMNode* domNode, IXMLDOMNode** oldNode)
|
||||||
{
|
{
|
||||||
unknode *This = unknode_from_IXMLDOMNode( iface );
|
unknode *This = unknode_from_IXMLDOMNode( iface );
|
||||||
return IXMLDOMNode_removeChild( &This->node.IXMLDOMNode_iface, domNode, oldNode );
|
return node_remove_child(&This->node, domNode, oldNode);
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI unknode_appendChild(
|
static HRESULT WINAPI unknode_appendChild(
|
||||||
|
|
|
@ -344,10 +344,11 @@ static HRESULT WINAPI dom_pi_replaceChild(
|
||||||
|
|
||||||
static HRESULT WINAPI dom_pi_removeChild(
|
static HRESULT WINAPI dom_pi_removeChild(
|
||||||
IXMLDOMProcessingInstruction *iface,
|
IXMLDOMProcessingInstruction *iface,
|
||||||
IXMLDOMNode* domNode, IXMLDOMNode** oldNode)
|
IXMLDOMNode *child, IXMLDOMNode **oldChild)
|
||||||
{
|
{
|
||||||
dom_pi *This = impl_from_IXMLDOMProcessingInstruction( iface );
|
dom_pi *This = impl_from_IXMLDOMProcessingInstruction( iface );
|
||||||
return IXMLDOMNode_removeChild( &This->node.IXMLDOMNode_iface, domNode, oldNode );
|
TRACE("(%p)->(%p %p)\n", This, child, oldChild);
|
||||||
|
return node_remove_child(&This->node, child, oldChild);
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI dom_pi_appendChild(
|
static HRESULT WINAPI dom_pi_appendChild(
|
||||||
|
|
|
@ -343,10 +343,11 @@ static HRESULT WINAPI domtext_replaceChild(
|
||||||
|
|
||||||
static HRESULT WINAPI domtext_removeChild(
|
static HRESULT WINAPI domtext_removeChild(
|
||||||
IXMLDOMText *iface,
|
IXMLDOMText *iface,
|
||||||
IXMLDOMNode* domNode, IXMLDOMNode** oldNode)
|
IXMLDOMNode *child, IXMLDOMNode **oldChild)
|
||||||
{
|
{
|
||||||
domtext *This = impl_from_IXMLDOMText( iface );
|
domtext *This = impl_from_IXMLDOMText( iface );
|
||||||
return IXMLDOMNode_removeChild( &This->node.IXMLDOMNode_iface, domNode, oldNode );
|
TRACE("(%p)->(%p %p)\n", This, child, oldChild);
|
||||||
|
return node_remove_child(&This->node, child, oldChild);
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI domtext_appendChild(
|
static HRESULT WINAPI domtext_appendChild(
|
||||||
|
|
Loading…
Reference in New Issue