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
dc2e14d9
Commit
dc2e14d9
authored
Aug 19, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Aug 19, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement parentNode, firstChild, lastChild, previousSibling and
nextSibling methods.
parent
2e689c6c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
10 deletions
+26
-10
node.c
dlls/msxml3/node.c
+26
-10
No files found.
dlls/msxml3/node.c
View file @
dc2e14d9
...
...
@@ -258,12 +258,28 @@ static HRESULT WINAPI xmlnode_get_nodeType(
return
S_OK
;
}
static
HRESULT
get_node
(
xmlnode
*
This
,
const
char
*
name
,
xmlNodePtr
node
,
IXMLDOMNode
**
out
)
{
TRACE
(
"%p->%s %p
\n
"
,
This
,
name
,
node
);
if
(
!
out
)
return
E_INVALIDARG
;
*
out
=
create_node
(
node
);
if
(
!*
out
)
return
S_FALSE
;
return
S_OK
;
}
static
HRESULT
WINAPI
xmlnode_get_parentNode
(
IXMLDOMNode
*
iface
,
IXMLDOMNode
**
parent
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
xmlnode
*
This
=
impl_from_IXMLDOMNode
(
iface
);
return
get_node
(
This
,
"parent"
,
This
->
node
->
parent
,
parent
)
;
}
static
HRESULT
WINAPI
xmlnode_get_childNodes
(
...
...
@@ -288,32 +304,32 @@ static HRESULT WINAPI xmlnode_get_firstChild(
IXMLDOMNode
*
iface
,
IXMLDOMNode
**
firstChild
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
xmlnode
*
This
=
impl_from_IXMLDOMNode
(
iface
);
return
get_node
(
This
,
"firstChild"
,
This
->
node
->
children
,
firstChild
)
;
}
static
HRESULT
WINAPI
xmlnode_get_lastChild
(
IXMLDOMNode
*
iface
,
IXMLDOMNode
**
lastChild
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
xmlnode
*
This
=
impl_from_IXMLDOMNode
(
iface
);
return
get_node
(
This
,
"lastChild"
,
This
->
node
->
last
,
lastChild
)
;
}
static
HRESULT
WINAPI
xmlnode_get_previousSibling
(
IXMLDOMNode
*
iface
,
IXMLDOMNode
**
previousSibling
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
xmlnode
*
This
=
impl_from_IXMLDOMNode
(
iface
);
return
get_node
(
This
,
"previous"
,
This
->
node
->
prev
,
previousSibling
)
;
}
static
HRESULT
WINAPI
xmlnode_get_nextSibling
(
IXMLDOMNode
*
iface
,
IXMLDOMNode
**
nextSibling
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
xmlnode
*
This
=
impl_from_IXMLDOMNode
(
iface
);
return
get_node
(
This
,
"next"
,
This
->
node
->
next
,
nextSibling
)
;
}
static
HRESULT
WINAPI
xmlnode_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