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
6e46a9fd
Commit
6e46a9fd
authored
Nov 23, 2008
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Nov 26, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Implement IHTMLDocument2 get_applets.
parent
6f64338b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
6 deletions
+42
-6
htmldoc.c
dlls/mshtml/htmldoc.c
+27
-2
dom.c
dlls/mshtml/tests/dom.c
+15
-4
No files found.
dlls/mshtml/htmldoc.c
View file @
6e46a9fd
...
...
@@ -370,8 +370,33 @@ static HRESULT WINAPI HTMLDocument_get_images(IHTMLDocument2 *iface, IHTMLElemen
static
HRESULT
WINAPI
HTMLDocument_get_applets
(
IHTMLDocument2
*
iface
,
IHTMLElementCollection
**
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
nsIDOMHTMLCollection
*
nscoll
=
NULL
;
nsresult
nsres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
if
(
!
p
)
return
E_INVALIDARG
;
*
p
=
NULL
;
if
(
!
This
->
nsdoc
)
{
WARN
(
"NULL nsdoc
\n
"
);
return
E_UNEXPECTED
;
}
nsres
=
nsIDOMHTMLDocument_GetApplets
(
This
->
nsdoc
,
&
nscoll
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"GetApplets failed: %08x
\n
"
,
nsres
);
return
E_FAIL
;
}
if
(
nscoll
)
{
*
p
=
create_collection_from_htmlcol
(
This
,
(
IUnknown
*
)
HTMLDOC
(
This
),
nscoll
);
nsIDOMElement_Release
(
nscoll
);
}
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLDocument_get_links
(
IHTMLDocument2
*
iface
,
IHTMLElementCollection
**
p
)
...
...
dlls/mshtml/tests/dom.c
View file @
6e46a9fd
...
...
@@ -2774,7 +2774,7 @@ static void test_defaults(IHTMLDocument2 *doc)
IHTMLStyle
*
style
;
long
l
;
HRESULT
hres
;
IHTMLElementCollection
*
col
images
;
IHTMLElementCollection
*
col
lection
;
hres
=
IHTMLDocument2_get_body
(
doc
,
&
elem
);
ok
(
hres
==
S_OK
,
"get_body failed: %08x
\n
"
,
hres
);
...
...
@@ -2782,12 +2782,23 @@ static void test_defaults(IHTMLDocument2 *doc)
hres
=
IHTMLDocument2_get_images
(
doc
,
NULL
);
ok
(
hres
==
E_INVALIDARG
,
"hres %08x
\n
"
,
hres
);
hres
=
IHTMLDocument2_get_images
(
doc
,
&
col
images
);
hres
=
IHTMLDocument2_get_images
(
doc
,
&
col
lection
);
ok
(
hres
==
S_OK
,
"get_images failed: %08x
\n
"
,
hres
);
if
(
hres
==
S_OK
)
{
test_elem_collection
((
IUnknown
*
)
colimages
,
NULL
,
0
);
IHTMLElementCollection_Release
(
colimages
);
test_elem_collection
((
IUnknown
*
)
collection
,
NULL
,
0
);
IHTMLElementCollection_Release
(
collection
);
}
hres
=
IHTMLDocument2_get_applets
(
doc
,
NULL
);
ok
(
hres
==
E_INVALIDARG
,
"hres %08x
\n
"
,
hres
);
hres
=
IHTMLDocument2_get_applets
(
doc
,
&
collection
);
ok
(
hres
==
S_OK
,
"get_applets failed: %08x
\n
"
,
hres
);
if
(
hres
==
S_OK
)
{
test_elem_collection
((
IUnknown
*
)
collection
,
NULL
,
0
);
IHTMLElementCollection_Release
(
collection
);
}
hres
=
IHTMLElement_QueryInterface
(
elem
,
&
IID_IHTMLBodyElement
,
(
void
**
)
&
body
);
...
...
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