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
30d20475
Commit
30d20475
authored
Apr 30, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
May 01, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IDispatchEx support to HTMLDOMChildrenCollection.
parent
6da1c730
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
0 deletions
+20
-0
dispex.c
dlls/mshtml/dispex.c
+2
-0
htmlnode.c
dlls/mshtml/htmlnode.c
+16
-0
mshtml_private.h
dlls/mshtml/mshtml_private.h
+2
-0
No files found.
dlls/mshtml/dispex.c
View file @
30d20475
...
...
@@ -51,6 +51,7 @@ static struct list dispex_data_list = LIST_INIT(dispex_data_list);
static
REFIID
tid_ids
[]
=
{
&
IID_NULL
,
&
DIID_DispDOMChildrenCollection
,
&
DIID_DispHTMLDocument
,
&
DIID_DispHTMLDOMTextNode
,
&
DIID_DispHTMLElementCollection
,
...
...
@@ -62,6 +63,7 @@ static REFIID tid_ids[] = {
&
IID_IHTMLDocument3
,
&
IID_IHTMLDocument4
,
&
IID_IHTMLDocument5
,
&
IID_IHTMLDOMChildrenCollection
,
&
IID_IHTMLDOMNode
,
&
IID_IHTMLDOMNode2
,
&
IID_IHTMLDOMTextNode
,
...
...
dlls/mshtml/htmlnode.c
View file @
30d20475
...
...
@@ -32,6 +32,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
mshtml
);
typedef
struct
{
DispatchEx
dispex
;
const
IHTMLDOMChildrenCollectionVtbl
*
lpIHTMLDOMChildrenCollectionVtbl
;
LONG
ref
;
...
...
@@ -58,6 +59,9 @@ static HRESULT WINAPI HTMLDOMChildrenCollection_QueryInterface(IHTMLDOMChildrenC
}
else
if
(
IsEqualGUID
(
&
IID_IDispatch
,
riid
))
{
TRACE
(
"(%p)->(IID_IDispatch %p)
\n
"
,
This
,
ppv
);
*
ppv
=
HTMLCHILDCOL
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IDispatchEx
,
riid
))
{
TRACE
(
"(%p)->(IID_IDispatchEx %p)
\n
"
,
This
,
ppv
);
*
ppv
=
DISPATCHEX
(
&
This
->
dispex
);
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLDOMChildrenCollection
,
riid
))
{
TRACE
(
"(%p)->(IID_IHTMLDOMChildrenCollection %p)
\n
"
,
This
,
ppv
);
*
ppv
=
HTMLCHILDCOL
(
This
);
...
...
@@ -189,6 +193,16 @@ static const IHTMLDOMChildrenCollectionVtbl HTMLDOMChildrenCollectionVtbl = {
HTMLDOMChildrenCollection_item
};
static
dispex_static_data_t
HTMLDOMChildrenCollection_dispex
=
{
NULL
,
DispDOMChildrenCollection_tid
,
NULL
,
{
IHTMLDOMChildrenCollection_tid
,
0
}
};
static
IHTMLDOMChildrenCollection
*
create_child_collection
(
HTMLDocument
*
doc
,
nsIDOMNodeList
*
nslist
)
{
HTMLDOMChildrenCollection
*
ret
;
...
...
@@ -201,6 +215,8 @@ static IHTMLDOMChildrenCollection *create_child_collection(HTMLDocument *doc, ns
ret
->
nslist
=
nslist
;
ret
->
doc
=
doc
;
init_dispex
(
&
ret
->
dispex
,
(
IUnknown
*
)
HTMLCHILDCOL
(
ret
),
&
HTMLDOMChildrenCollection_dispex
);
return
HTMLCHILDCOL
(
ret
);
}
...
...
dlls/mshtml/mshtml_private.h
View file @
30d20475
...
...
@@ -61,6 +61,7 @@ typedef struct event_target_t event_target_t;
/* NOTE: make sure to keep in sync with dispex.c */
typedef
enum
{
NULL_tid
,
DispDOMChildrenCollection_tid
,
DispHTMLDocument_tid
,
DispHTMLDOMTextNode_tid
,
DispHTMLElementCollection_tid
,
...
...
@@ -72,6 +73,7 @@ typedef enum {
IHTMLDocument3_tid
,
IHTMLDocument4_tid
,
IHTMLDocument5_tid
,
IHTMLDOMChildrenCollection_tid
,
IHTMLDOMNode_tid
,
IHTMLDOMNode2_tid
,
IHTMLDOMTextNode_tid
,
...
...
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