Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
55175042
Commit
55175042
authored
Sep 10, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 13, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Don't use xmlnode's IXMLDOMNode iface in get_[previous|next]Sibling implementations.
parent
5e5cd71f
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
95 additions
and
55 deletions
+95
-55
attribute.c
dlls/msxml3/attribute.c
+8
-2
cdata.c
dlls/msxml3/cdata.c
+8
-2
comment.c
dlls/msxml3/comment.c
+8
-2
docfrag.c
dlls/msxml3/docfrag.c
+8
-2
domdoc.c
dlls/msxml3/domdoc.c
+8
-2
element.c
dlls/msxml3/element.c
+8
-2
entityref.c
dlls/msxml3/entityref.c
+8
-2
msxml_private.h
dlls/msxml3/msxml_private.h
+2
-0
node.c
dlls/msxml3/node.c
+21
-37
pi.c
dlls/msxml3/pi.c
+8
-2
text.c
dlls/msxml3/text.c
+8
-2
No files found.
dlls/msxml3/attribute.c
View file @
55175042
...
...
@@ -271,7 +271,10 @@ static HRESULT WINAPI domattr_get_previousSibling(
IXMLDOMNode
**
domNode
)
{
domattr
*
This
=
impl_from_IXMLDOMAttribute
(
iface
);
return
IXMLDOMNode_get_previousSibling
(
IXMLDOMNode_from_impl
(
&
This
->
node
),
domNode
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
domNode
);
return
return_null_node
(
domNode
);
}
static
HRESULT
WINAPI
domattr_get_nextSibling
(
...
...
@@ -279,7 +282,10 @@ static HRESULT WINAPI domattr_get_nextSibling(
IXMLDOMNode
**
domNode
)
{
domattr
*
This
=
impl_from_IXMLDOMAttribute
(
iface
);
return
IXMLDOMNode_get_nextSibling
(
IXMLDOMNode_from_impl
(
&
This
->
node
),
domNode
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
domNode
);
return
return_null_node
(
domNode
);
}
static
HRESULT
WINAPI
domattr_get_attributes
(
...
...
dlls/msxml3/cdata.c
View file @
55175042
...
...
@@ -282,7 +282,10 @@ static HRESULT WINAPI domcdata_get_previousSibling(
IXMLDOMNode
**
domNode
)
{
domcdata
*
This
=
impl_from_IXMLDOMCDATASection
(
iface
);
return
IXMLDOMNode_get_previousSibling
(
IXMLDOMNode_from_impl
(
&
This
->
node
),
domNode
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
domNode
);
return
node_get_previous_sibling
(
&
This
->
node
,
domNode
);
}
static
HRESULT
WINAPI
domcdata_get_nextSibling
(
...
...
@@ -290,7 +293,10 @@ static HRESULT WINAPI domcdata_get_nextSibling(
IXMLDOMNode
**
domNode
)
{
domcdata
*
This
=
impl_from_IXMLDOMCDATASection
(
iface
);
return
IXMLDOMNode_get_nextSibling
(
IXMLDOMNode_from_impl
(
&
This
->
node
),
domNode
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
domNode
);
return
node_get_next_sibling
(
&
This
->
node
,
domNode
);
}
static
HRESULT
WINAPI
domcdata_get_attributes
(
...
...
dlls/msxml3/comment.c
View file @
55175042
...
...
@@ -275,7 +275,10 @@ static HRESULT WINAPI domcomment_get_previousSibling(
IXMLDOMNode
**
domNode
)
{
domcomment
*
This
=
impl_from_IXMLDOMComment
(
iface
);
return
IXMLDOMNode_get_previousSibling
(
IXMLDOMNode_from_impl
(
&
This
->
node
),
domNode
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
domNode
);
return
node_get_previous_sibling
(
&
This
->
node
,
domNode
);
}
static
HRESULT
WINAPI
domcomment_get_nextSibling
(
...
...
@@ -283,7 +286,10 @@ static HRESULT WINAPI domcomment_get_nextSibling(
IXMLDOMNode
**
domNode
)
{
domcomment
*
This
=
impl_from_IXMLDOMComment
(
iface
);
return
IXMLDOMNode_get_nextSibling
(
IXMLDOMNode_from_impl
(
&
This
->
node
),
domNode
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
domNode
);
return
node_get_next_sibling
(
&
This
->
node
,
domNode
);
}
static
HRESULT
WINAPI
domcomment_get_attributes
(
...
...
dlls/msxml3/docfrag.c
View file @
55175042
...
...
@@ -277,7 +277,10 @@ static HRESULT WINAPI domfrag_get_previousSibling(
IXMLDOMNode
**
domNode
)
{
domfrag
*
This
=
impl_from_IXMLDOMDocumentFragment
(
iface
);
return
IXMLDOMNode_get_previousSibling
(
IXMLDOMNode_from_impl
(
&
This
->
node
),
domNode
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
domNode
);
return
return_null_node
(
domNode
);
}
static
HRESULT
WINAPI
domfrag_get_nextSibling
(
...
...
@@ -285,7 +288,10 @@ static HRESULT WINAPI domfrag_get_nextSibling(
IXMLDOMNode
**
domNode
)
{
domfrag
*
This
=
impl_from_IXMLDOMDocumentFragment
(
iface
);
return
IXMLDOMNode_get_nextSibling
(
IXMLDOMNode_from_impl
(
&
This
->
node
),
domNode
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
domNode
);
return
return_null_node
(
domNode
);
}
static
HRESULT
WINAPI
domfrag_get_attributes
(
...
...
dlls/msxml3/domdoc.c
View file @
55175042
...
...
@@ -788,7 +788,10 @@ static HRESULT WINAPI domdoc_get_previousSibling(
IXMLDOMNode
**
previousSibling
)
{
domdoc
*
This
=
impl_from_IXMLDOMDocument3
(
iface
);
return
IXMLDOMNode_get_previousSibling
(
IXMLDOMNode_from_impl
(
&
This
->
node
),
previousSibling
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
previousSibling
);
return
return_null_node
(
previousSibling
);
}
...
...
@@ -797,7 +800,10 @@ static HRESULT WINAPI domdoc_get_nextSibling(
IXMLDOMNode
**
nextSibling
)
{
domdoc
*
This
=
impl_from_IXMLDOMDocument3
(
iface
);
return
IXMLDOMNode_get_nextSibling
(
IXMLDOMNode_from_impl
(
&
This
->
node
),
nextSibling
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
nextSibling
);
return
return_null_node
(
nextSibling
);
}
...
...
dlls/msxml3/element.c
View file @
55175042
...
...
@@ -286,7 +286,10 @@ static HRESULT WINAPI domelem_get_previousSibling(
IXMLDOMNode
**
domNode
)
{
domelem
*
This
=
impl_from_IXMLDOMElement
(
iface
);
return
IXMLDOMNode_get_previousSibling
(
IXMLDOMNode_from_impl
(
&
This
->
node
),
domNode
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
domNode
);
return
node_get_previous_sibling
(
&
This
->
node
,
domNode
);
}
static
HRESULT
WINAPI
domelem_get_nextSibling
(
...
...
@@ -294,7 +297,10 @@ static HRESULT WINAPI domelem_get_nextSibling(
IXMLDOMNode
**
domNode
)
{
domelem
*
This
=
impl_from_IXMLDOMElement
(
iface
);
return
IXMLDOMNode_get_nextSibling
(
IXMLDOMNode_from_impl
(
&
This
->
node
),
domNode
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
domNode
);
return
node_get_next_sibling
(
&
This
->
node
,
domNode
);
}
static
HRESULT
WINAPI
domelem_get_attributes
(
...
...
dlls/msxml3/entityref.c
View file @
55175042
...
...
@@ -273,7 +273,10 @@ static HRESULT WINAPI entityref_get_previousSibling(
IXMLDOMNode
**
domNode
)
{
entityref
*
This
=
impl_from_IXMLDOMEntityReference
(
iface
);
return
IXMLDOMNode_get_previousSibling
(
IXMLDOMNode_from_impl
(
&
This
->
node
),
domNode
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
domNode
);
return
node_get_previous_sibling
(
&
This
->
node
,
domNode
);
}
static
HRESULT
WINAPI
entityref_get_nextSibling
(
...
...
@@ -281,7 +284,10 @@ static HRESULT WINAPI entityref_get_nextSibling(
IXMLDOMNode
**
domNode
)
{
entityref
*
This
=
impl_from_IXMLDOMEntityReference
(
iface
);
return
IXMLDOMNode_get_nextSibling
(
IXMLDOMNode_from_impl
(
&
This
->
node
),
domNode
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
domNode
);
return
node_get_next_sibling
(
&
This
->
node
,
domNode
);
}
static
HRESULT
WINAPI
entityref_get_attributes
(
...
...
dlls/msxml3/msxml_private.h
View file @
55175042
...
...
@@ -166,6 +166,8 @@ extern HRESULT node_get_parent(xmlnode*,IXMLDOMNode**);
extern
HRESULT
node_get_child_nodes
(
xmlnode
*
,
IXMLDOMNodeList
**
);
extern
HRESULT
node_get_first_child
(
xmlnode
*
,
IXMLDOMNode
**
);
extern
HRESULT
node_get_last_child
(
xmlnode
*
,
IXMLDOMNode
**
);
extern
HRESULT
node_get_previous_sibling
(
xmlnode
*
,
IXMLDOMNode
**
);
extern
HRESULT
node_get_next_sibling
(
xmlnode
*
,
IXMLDOMNode
**
);
extern
HRESULT
DOMDocument_create_from_xmldoc
(
xmlDocPtr
xmldoc
,
IXMLDOMDocument3
**
document
);
...
...
dlls/msxml3/node.c
View file @
55175042
...
...
@@ -339,52 +339,30 @@ static HRESULT WINAPI xmlnode_get_lastChild(
return
E_NOTIMPL
;
}
HRESULT
node_get_previous_sibling
(
xmlnode
*
This
,
IXMLDOMNode
**
ret
)
{
return
get_node
(
This
,
"previous"
,
This
->
node
->
prev
,
ret
);
}
static
HRESULT
WINAPI
xmlnode_get_previousSibling
(
IXMLDOMNode
*
iface
,
IXMLDOMNode
**
previousSibling
)
{
xmlnode
*
This
=
impl_from_IXMLDOMNode
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
previousSibling
);
if
(
!
previousSibling
)
return
E_INVALIDARG
;
ERR
(
"Should not be called
\n
"
);
return
E_NOTIMPL
;
}
switch
(
This
->
node
->
type
)
{
/* Attribute, Document and Document Fragment Nodes do not support previousSibling */
case
XML_DOCUMENT_NODE
:
case
XML_DOCUMENT_FRAG_NODE
:
case
XML_ATTRIBUTE_NODE
:
*
previousSibling
=
NULL
;
return
S_FALSE
;
default:
return
get_node
(
This
,
"previous"
,
This
->
node
->
prev
,
previousSibling
);
}
HRESULT
node_get_next_sibling
(
xmlnode
*
This
,
IXMLDOMNode
**
ret
)
{
return
get_node
(
This
,
"next"
,
This
->
node
->
next
,
ret
);
}
static
HRESULT
WINAPI
xmlnode_get_nextSibling
(
IXMLDOMNode
*
iface
,
IXMLDOMNode
**
nextSibling
)
{
xmlnode
*
This
=
impl_from_IXMLDOMNode
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
nextSibling
);
if
(
!
nextSibling
)
return
E_INVALIDARG
;
switch
(
This
->
node
->
type
)
{
/* Attribute, Document and Document Fragment Nodes do not support nextSibling */
case
XML_DOCUMENT_NODE
:
case
XML_DOCUMENT_FRAG_NODE
:
case
XML_ATTRIBUTE_NODE
:
*
nextSibling
=
NULL
;
return
S_FALSE
;
default:
return
get_node
(
This
,
"next"
,
This
->
node
->
next
,
nextSibling
);
}
ERR
(
"Should not be called
\n
"
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
xmlnode_get_attributes
(
...
...
@@ -1852,7 +1830,10 @@ static HRESULT WINAPI unknode_get_previousSibling(
IXMLDOMNode
**
domNode
)
{
unknode
*
This
=
impl_from_unkIXMLDOMNode
(
iface
);
return
IXMLDOMNode_get_previousSibling
(
IXMLDOMNode_from_impl
(
&
This
->
node
),
domNode
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
domNode
);
return
node_get_previous_sibling
(
&
This
->
node
,
domNode
);
}
static
HRESULT
WINAPI
unknode_get_nextSibling
(
...
...
@@ -1860,7 +1841,10 @@ static HRESULT WINAPI unknode_get_nextSibling(
IXMLDOMNode
**
domNode
)
{
unknode
*
This
=
impl_from_unkIXMLDOMNode
(
iface
);
return
IXMLDOMNode_get_nextSibling
(
IXMLDOMNode_from_impl
(
&
This
->
node
),
domNode
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
domNode
);
return
node_get_next_sibling
(
&
This
->
node
,
domNode
);
}
static
HRESULT
WINAPI
unknode_get_attributes
(
...
...
dlls/msxml3/pi.c
View file @
55175042
...
...
@@ -288,7 +288,10 @@ static HRESULT WINAPI dom_pi_get_previousSibling(
IXMLDOMNode
**
domNode
)
{
dom_pi
*
This
=
impl_from_IXMLDOMProcessingInstruction
(
iface
);
return
IXMLDOMNode_get_previousSibling
(
IXMLDOMNode_from_impl
(
&
This
->
node
),
domNode
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
domNode
);
return
node_get_previous_sibling
(
&
This
->
node
,
domNode
);
}
static
HRESULT
WINAPI
dom_pi_get_nextSibling
(
...
...
@@ -296,7 +299,10 @@ static HRESULT WINAPI dom_pi_get_nextSibling(
IXMLDOMNode
**
domNode
)
{
dom_pi
*
This
=
impl_from_IXMLDOMProcessingInstruction
(
iface
);
return
IXMLDOMNode_get_nextSibling
(
IXMLDOMNode_from_impl
(
&
This
->
node
),
domNode
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
domNode
);
return
node_get_next_sibling
(
&
This
->
node
,
domNode
);
}
static
HRESULT
WINAPI
dom_pi_get_attributes
(
...
...
dlls/msxml3/text.c
View file @
55175042
...
...
@@ -288,7 +288,10 @@ static HRESULT WINAPI domtext_get_previousSibling(
IXMLDOMNode
**
domNode
)
{
domtext
*
This
=
impl_from_IXMLDOMText
(
iface
);
return
IXMLDOMNode_get_previousSibling
(
IXMLDOMNode_from_impl
(
&
This
->
node
),
domNode
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
domNode
);
return
node_get_previous_sibling
(
&
This
->
node
,
domNode
);
}
static
HRESULT
WINAPI
domtext_get_nextSibling
(
...
...
@@ -296,7 +299,10 @@ static HRESULT WINAPI domtext_get_nextSibling(
IXMLDOMNode
**
domNode
)
{
domtext
*
This
=
impl_from_IXMLDOMText
(
iface
);
return
IXMLDOMNode_get_nextSibling
(
IXMLDOMNode_from_impl
(
&
This
->
node
),
domNode
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
domNode
);
return
node_get_next_sibling
(
&
This
->
node
,
domNode
);
}
static
HRESULT
WINAPI
domtext_get_attributes
(
...
...
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