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
98957451
Commit
98957451
authored
Apr 24, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IDispatchEx support to HTMLElementCollection object.
parent
74c571a4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
0 deletions
+21
-0
dispex.c
dlls/mshtml/dispex.c
+2
-0
htmlelem.c
dlls/mshtml/htmlelem.c
+15
-0
mshtml_private.h
dlls/mshtml/mshtml_private.h
+2
-0
dom.c
dlls/mshtml/tests/dom.c
+2
-0
No files found.
dlls/mshtml/dispex.c
View file @
98957451
...
...
@@ -53,6 +53,7 @@ static REFIID tid_ids[] = {
&
IID_NULL
,
&
DIID_DispHTMLDocument
,
&
DIID_DispHTMLDOMTextNode
,
&
DIID_DispHTMLElementCollection
,
&
DIID_DispHTMLUnknownElement
,
&
DIID_DispHTMLWindow2
,
&
IID_IHTMLDocument2
,
...
...
@@ -64,6 +65,7 @@ static REFIID tid_ids[] = {
&
IID_IHTMLDOMTextNode
,
&
IID_IHTMLElement
,
&
IID_IHTMLElement2
,
&
IID_IHTMLElementCollection
,
&
IID_IHTMLWindow2
,
&
IID_IHTMLWindow3
,
&
IID_IOmNavigator
...
...
dlls/mshtml/htmlelem.c
View file @
98957451
...
...
@@ -1363,6 +1363,7 @@ HTMLElement *HTMLElement_Create(nsIDOMNode *nsnode)
}
typedef
struct
{
DispatchEx
dispex
;
const
IHTMLElementCollectionVtbl
*
lpHTMLElementCollectionVtbl
;
IUnknown
*
ref_unk
;
...
...
@@ -1389,6 +1390,9 @@ static HRESULT WINAPI HTMLElementCollection_QueryInterface(IHTMLElementCollectio
}
else
if
(
IsEqualGUID
(
&
IID_IDispatch
,
riid
))
{
TRACE
(
"(%p)->(IID_IDispatch %p)
\n
"
,
This
,
ppv
);
*
ppv
=
HTMLELEMCOL
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IDispatchEx
,
riid
))
{
TRACE
(
"(%p)->(IID_IDispatchEx %p)
\n
"
,
This
,
ppv
);
*
ppv
=
DISPATCHEX
(
&
This
->
dispex
);
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLElementCollection
,
riid
))
{
TRACE
(
"(%p)->(IID_IHTMLElementCollection %p)
\n
"
,
This
,
ppv
);
*
ppv
=
HTMLELEMCOL
(
This
);
...
...
@@ -1664,6 +1668,15 @@ static const IHTMLElementCollectionVtbl HTMLElementCollectionVtbl = {
HTMLElementCollection_tags
};
static
dispex_static_data_t
HTMLElementCollection_dispex
=
{
DispHTMLElementCollection_tid
,
NULL
,
{
IHTMLElementCollection_tid
,
0
}
};
IHTMLElementCollection
*
create_all_collection
(
HTMLDOMNode
*
node
)
{
elem_vector
buf
=
{
NULL
,
0
,
8
};
...
...
@@ -1687,6 +1700,8 @@ static IHTMLElementCollection *HTMLElementCollection_Create(IUnknown *ref_unk,
ret
->
elems
=
elems
;
ret
->
len
=
len
;
init_dispex
(
&
ret
->
dispex
,
(
IUnknown
*
)
HTMLELEMCOL
(
ret
),
&
HTMLElementCollection_dispex
);
IUnknown_AddRef
(
ref_unk
);
ret
->
ref_unk
=
ref_unk
;
...
...
dlls/mshtml/mshtml_private.h
View file @
98957451
...
...
@@ -63,6 +63,7 @@ typedef enum {
NULL_tid
,
DispHTMLDocument_tid
,
DispHTMLDOMTextNode_tid
,
DispHTMLElementCollection_tid
,
DispHTMLUnknownElement_tid
,
DispHTMLWindow2_tid
,
IHTMLDocument2_tid
,
...
...
@@ -74,6 +75,7 @@ typedef enum {
IHTMLDOMTextNode_tid
,
IHTMLElement_tid
,
IHTMLElement2_tid
,
IHTMLElementCollection_tid
,
IHTMLWindow2_tid
,
IHTMLWindow3_tid
,
IOmNavigator_tid
,
...
...
dlls/mshtml/tests/dom.c
View file @
98957451
...
...
@@ -709,6 +709,8 @@ static void _test_elem_collection(unsigned line, IHTMLElementCollection *col,
IDispatch
*
disp
;
HRESULT
hres
;
test_disp
((
IUnknown
*
)
col
,
&
DIID_DispHTMLElementCollection
);
hres
=
IHTMLElementCollection_get_length
(
col
,
&
len
);
ok_
(
__FILE__
,
line
)
(
hres
==
S_OK
,
"get_length failed: %08x
\n
"
,
hres
);
ok_
(
__FILE__
,
line
)
(
len
==
exlen
,
"len=%ld, expected %ld
\n
"
,
len
,
exlen
);
...
...
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