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
3ab9eaf6
Commit
3ab9eaf6
authored
Jun 28, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 28, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Reimplement get_node_obj using vtbl comparison.
parent
4e10fcc9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
23 deletions
+9
-23
htmlnode.c
dlls/mshtml/htmlnode.c
+9
-23
No files found.
dlls/mshtml/htmlnode.c
View file @
3ab9eaf6
...
...
@@ -883,6 +883,15 @@ static const IHTMLDOMNodeVtbl HTMLDOMNodeVtbl = {
HTMLDOMNode_get_nextSibling
};
static
HTMLDOMNode
*
get_node_obj
(
HTMLDocumentNode
*
This
,
IUnknown
*
iface
)
{
IHTMLDOMNode
*
node
;
HRESULT
hres
;
hres
=
IUnknown_QueryInterface
(
iface
,
&
IID_IHTMLDOMNode
,
(
void
**
)
&
node
);
return
hres
==
S_OK
&&
node
->
lpVtbl
==
&
HTMLDOMNodeVtbl
?
impl_from_IHTMLDOMNode
(
node
)
:
NULL
;
}
static
inline
HTMLDOMNode
*
impl_from_IHTMLDOMNode2
(
IHTMLDOMNode2
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
HTMLDOMNode
,
IHTMLDOMNode2_iface
);
...
...
@@ -1117,29 +1126,6 @@ HRESULT get_node(HTMLDocumentNode *This, nsIDOMNode *nsnode, BOOL create, HTMLDO
return
create_node
(
This
,
nsnode
,
ret
);
}
/*
* FIXME
* We should use better way for getting node object (like private interface)
* or avoid it at all.
*/
static
HTMLDOMNode
*
get_node_obj
(
HTMLDocumentNode
*
This
,
IUnknown
*
iface
)
{
HTMLDOMNode
*
iter
=
This
->
nodes
;
IHTMLDOMNode
*
node
;
IUnknown_QueryInterface
(
iface
,
&
IID_IHTMLDOMNode
,
(
void
**
)
&
node
);
while
(
iter
)
{
if
(
&
iter
->
IHTMLDOMNode_iface
==
node
)
return
iter
;
iter
=
iter
->
next
;
}
FIXME
(
"Not found %p
\n
"
,
iface
);
IHTMLDOMNode_Release
(
node
);
return
NULL
;
}
void
release_nodes
(
HTMLDocumentNode
*
This
)
{
HTMLDOMNode
*
iter
,
*
next
;
...
...
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