Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
936d4cf9
Commit
936d4cf9
authored
Oct 31, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 01, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Get rid of ::cloneNode() forward.
parent
eef194a7
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
40 additions
and
37 deletions
+40
-37
attribute.c
dlls/msxml3/attribute.c
+3
-2
cdata.c
dlls/msxml3/cdata.c
+3
-2
comment.c
dlls/msxml3/comment.c
+3
-2
docfrag.c
dlls/msxml3/docfrag.c
+3
-2
domdoc.c
dlls/msxml3/domdoc.c
+3
-2
element.c
dlls/msxml3/element.c
+3
-2
entityref.c
dlls/msxml3/entityref.c
+3
-2
msxml_private.h
dlls/msxml3/msxml_private.h
+1
-0
node.c
dlls/msxml3/node.c
+12
-19
pi.c
dlls/msxml3/pi.c
+3
-2
text.c
dlls/msxml3/text.c
+3
-2
No files found.
dlls/msxml3/attribute.c
View file @
936d4cf9
...
...
@@ -358,10 +358,11 @@ static HRESULT WINAPI domattr_get_ownerDocument(
static
HRESULT
WINAPI
domattr_cloneNode
(
IXMLDOMAttribute
*
iface
,
VARIANT_BOOL
pbool
,
IXMLDOMNode
**
outNode
)
VARIANT_BOOL
deep
,
IXMLDOMNode
**
outNode
)
{
domattr
*
This
=
impl_from_IXMLDOMAttribute
(
iface
);
return
IXMLDOMNode_cloneNode
(
IXMLDOMNode_from_impl
(
&
This
->
node
),
pbool
,
outNode
);
TRACE
(
"(%p)->(%d %p)
\n
"
,
This
,
deep
,
outNode
);
return
node_clone
(
&
This
->
node
,
deep
,
outNode
);
}
static
HRESULT
WINAPI
domattr_get_nodeTypeString
(
...
...
dlls/msxml3/cdata.c
View file @
936d4cf9
...
...
@@ -369,10 +369,11 @@ static HRESULT WINAPI domcdata_get_ownerDocument(
static
HRESULT
WINAPI
domcdata_cloneNode
(
IXMLDOMCDATASection
*
iface
,
VARIANT_BOOL
pbool
,
IXMLDOMNode
**
outNode
)
VARIANT_BOOL
deep
,
IXMLDOMNode
**
outNode
)
{
domcdata
*
This
=
impl_from_IXMLDOMCDATASection
(
iface
);
return
IXMLDOMNode_cloneNode
(
IXMLDOMNode_from_impl
(
&
This
->
node
),
pbool
,
outNode
);
TRACE
(
"(%p)->(%d %p)
\n
"
,
This
,
deep
,
outNode
);
return
node_clone
(
&
This
->
node
,
deep
,
outNode
);
}
static
HRESULT
WINAPI
domcdata_get_nodeTypeString
(
...
...
dlls/msxml3/comment.c
View file @
936d4cf9
...
...
@@ -362,10 +362,11 @@ static HRESULT WINAPI domcomment_get_ownerDocument(
static
HRESULT
WINAPI
domcomment_cloneNode
(
IXMLDOMComment
*
iface
,
VARIANT_BOOL
pbool
,
IXMLDOMNode
**
outNode
)
VARIANT_BOOL
deep
,
IXMLDOMNode
**
outNode
)
{
domcomment
*
This
=
impl_from_IXMLDOMComment
(
iface
);
return
IXMLDOMNode_cloneNode
(
IXMLDOMNode_from_impl
(
&
This
->
node
),
pbool
,
outNode
);
TRACE
(
"(%p)->(%d %p)
\n
"
,
This
,
deep
,
outNode
);
return
node_clone
(
&
This
->
node
,
deep
,
outNode
);
}
static
HRESULT
WINAPI
domcomment_get_nodeTypeString
(
...
...
dlls/msxml3/docfrag.c
View file @
936d4cf9
...
...
@@ -366,10 +366,11 @@ static HRESULT WINAPI domfrag_get_ownerDocument(
static
HRESULT
WINAPI
domfrag_cloneNode
(
IXMLDOMDocumentFragment
*
iface
,
VARIANT_BOOL
pbool
,
IXMLDOMNode
**
outNode
)
VARIANT_BOOL
deep
,
IXMLDOMNode
**
outNode
)
{
domfrag
*
This
=
impl_from_IXMLDOMDocumentFragment
(
iface
);
return
IXMLDOMNode_cloneNode
(
IXMLDOMNode_from_impl
(
&
This
->
node
),
pbool
,
outNode
);
TRACE
(
"(%p)->(%d %p)
\n
"
,
This
,
deep
,
outNode
);
return
node_clone
(
&
This
->
node
,
deep
,
outNode
);
}
static
HRESULT
WINAPI
domfrag_get_nodeTypeString
(
...
...
dlls/msxml3/domdoc.c
View file @
936d4cf9
...
...
@@ -1174,10 +1174,11 @@ static HRESULT WINAPI domdoc_get_ownerDocument(
static
HRESULT
WINAPI
domdoc_cloneNode
(
IXMLDOMDocument3
*
iface
,
VARIANT_BOOL
deep
,
IXMLDOMNode
**
cloneRoot
)
IXMLDOMNode
**
outNode
)
{
domdoc
*
This
=
impl_from_IXMLDOMDocument3
(
iface
);
return
IXMLDOMNode_cloneNode
(
IXMLDOMNode_from_impl
(
&
This
->
node
),
deep
,
cloneRoot
);
TRACE
(
"(%p)->(%d %p)
\n
"
,
This
,
deep
,
outNode
);
return
node_clone
(
&
This
->
node
,
deep
,
outNode
);
}
...
...
dlls/msxml3/element.c
View file @
936d4cf9
...
...
@@ -374,10 +374,11 @@ static HRESULT WINAPI domelem_get_ownerDocument(
static
HRESULT
WINAPI
domelem_cloneNode
(
IXMLDOMElement
*
iface
,
VARIANT_BOOL
pbool
,
IXMLDOMNode
**
outNode
)
VARIANT_BOOL
deep
,
IXMLDOMNode
**
outNode
)
{
domelem
*
This
=
impl_from_IXMLDOMElement
(
iface
);
return
IXMLDOMNode_cloneNode
(
IXMLDOMNode_from_impl
(
&
This
->
node
),
pbool
,
outNode
);
TRACE
(
"(%p)->(%d %p)
\n
"
,
This
,
deep
,
outNode
);
return
node_clone
(
&
This
->
node
,
deep
,
outNode
);
}
static
HRESULT
WINAPI
domelem_get_nodeTypeString
(
...
...
dlls/msxml3/entityref.c
View file @
936d4cf9
...
...
@@ -360,10 +360,11 @@ static HRESULT WINAPI entityref_get_ownerDocument(
static
HRESULT
WINAPI
entityref_cloneNode
(
IXMLDOMEntityReference
*
iface
,
VARIANT_BOOL
pbool
,
IXMLDOMNode
**
outNode
)
VARIANT_BOOL
deep
,
IXMLDOMNode
**
outNode
)
{
entityref
*
This
=
impl_from_IXMLDOMEntityReference
(
iface
);
return
IXMLDOMNode_cloneNode
(
IXMLDOMNode_from_impl
(
&
This
->
node
),
pbool
,
outNode
);
TRACE
(
"(%p)->(%d %p)
\n
"
,
This
,
deep
,
outNode
);
return
node_clone
(
&
This
->
node
,
deep
,
outNode
);
}
static
HRESULT
WINAPI
entityref_get_nodeTypeString
(
...
...
dlls/msxml3/msxml_private.h
View file @
936d4cf9
...
...
@@ -192,6 +192,7 @@ extern HRESULT node_insert_before(xmlnode*,IXMLDOMNode*,const VARIANT*,IXMLDOMNo
extern
HRESULT
node_replace_child
(
xmlnode
*
,
IXMLDOMNode
*
,
IXMLDOMNode
*
,
IXMLDOMNode
**
);
extern
HRESULT
node_put_text
(
xmlnode
*
,
BSTR
);
extern
HRESULT
node_get_xml
(
xmlnode
*
,
BOOL
,
BOOL
,
BSTR
*
);
extern
HRESULT
node_clone
(
xmlnode
*
,
VARIANT_BOOL
,
IXMLDOMNode
**
);
extern
HRESULT
DOMDocument_create_from_xmldoc
(
xmlDocPtr
xmldoc
,
IXMLDOMDocument3
**
document
);
...
...
dlls/msxml3/node.c
View file @
936d4cf9
...
...
@@ -449,34 +449,27 @@ static HRESULT WINAPI xmlnode_get_ownerDocument(
return
DOMDocument_create_from_xmldoc
(
This
->
node
->
doc
,
(
IXMLDOMDocument3
**
)
DOMDocument
);
}
static
HRESULT
WINAPI
xmlnode_cloneNode
(
IXMLDOMNode
*
iface
,
VARIANT_BOOL
deep
,
IXMLDOMNode
**
cloneRoot
)
HRESULT
node_clone
(
xmlnode
*
This
,
VARIANT_BOOL
deep
,
IXMLDOMNode
**
cloneNode
)
{
xmlnode
*
This
=
impl_from_IXMLDOMNode
(
iface
);
xmlNodePtr
pClone
=
NULL
;
IXMLDOMNode
*
pNode
=
NULL
;
IXMLDOMNode
*
node
;
xmlNodePtr
clone
;
TRACE
(
"(%p)->(%d %p)
\n
"
,
This
,
deep
,
cloneRoot
)
;
if
(
!
cloneNode
)
return
E_INVALIDARG
;
if
(
!
cloneRoot
)
return
E_INVALIDARG
;
pClone
=
xmlCopyNode
(
This
->
node
,
deep
?
1
:
2
);
if
(
pClone
)
clone
=
xmlCopyNode
(
This
->
node
,
deep
?
1
:
2
);
if
(
clone
)
{
pC
lone
->
doc
=
This
->
node
->
doc
;
xmldoc_add_orphan
(
pClone
->
doc
,
pC
lone
);
c
lone
->
doc
=
This
->
node
->
doc
;
xmldoc_add_orphan
(
clone
->
doc
,
c
lone
);
pNode
=
create_node
(
pC
lone
);
if
(
!
pN
ode
)
node
=
create_node
(
c
lone
);
if
(
!
n
ode
)
{
ERR
(
"Copy failed
\n
"
);
return
E_FAIL
;
}
*
clone
Root
=
pN
ode
;
*
clone
Node
=
n
ode
;
}
else
{
...
...
@@ -1255,7 +1248,7 @@ static const struct IXMLDOMNodeVtbl xmlnode_vtbl =
xmlnode_appendChild
,
xmlnode_hasChildNodes
,
xmlnode_get_ownerDocument
,
xmlnode_cloneNode
,
NULL
,
xmlnode_get_nodeTypeString
,
xmlnode_get_text
,
NULL
,
...
...
dlls/msxml3/pi.c
View file @
936d4cf9
...
...
@@ -376,10 +376,11 @@ static HRESULT WINAPI dom_pi_get_ownerDocument(
static
HRESULT
WINAPI
dom_pi_cloneNode
(
IXMLDOMProcessingInstruction
*
iface
,
VARIANT_BOOL
pbool
,
IXMLDOMNode
**
outNode
)
VARIANT_BOOL
deep
,
IXMLDOMNode
**
outNode
)
{
dom_pi
*
This
=
impl_from_IXMLDOMProcessingInstruction
(
iface
);
return
IXMLDOMNode_cloneNode
(
IXMLDOMNode_from_impl
(
&
This
->
node
),
pbool
,
outNode
);
TRACE
(
"(%p)->(%d %p)
\n
"
,
This
,
deep
,
outNode
);
return
node_clone
(
&
This
->
node
,
deep
,
outNode
);
}
static
HRESULT
WINAPI
dom_pi_get_nodeTypeString
(
...
...
dlls/msxml3/text.c
View file @
936d4cf9
...
...
@@ -375,10 +375,11 @@ static HRESULT WINAPI domtext_get_ownerDocument(
static
HRESULT
WINAPI
domtext_cloneNode
(
IXMLDOMText
*
iface
,
VARIANT_BOOL
pbool
,
IXMLDOMNode
**
outNode
)
VARIANT_BOOL
deep
,
IXMLDOMNode
**
outNode
)
{
domtext
*
This
=
impl_from_IXMLDOMText
(
iface
);
return
IXMLDOMNode_cloneNode
(
IXMLDOMNode_from_impl
(
&
This
->
node
),
pbool
,
outNode
);
TRACE
(
"(%p)->(%d %p)
\n
"
,
This
,
deep
,
outNode
);
return
node_clone
(
&
This
->
node
,
deep
,
outNode
);
}
static
HRESULT
WINAPI
domtext_get_nodeTypeString
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment