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
aeb1095b
Commit
aeb1095b
authored
Apr 21, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLWindow2::get_document implementation.
parent
7c63087a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
3 deletions
+32
-3
htmlwindow.c
dlls/mshtml/htmlwindow.c
+12
-2
dom.c
dlls/mshtml/tests/dom.c
+20
-1
No files found.
dlls/mshtml/htmlwindow.c
View file @
aeb1095b
...
...
@@ -467,8 +467,18 @@ static HRESULT WINAPI HTMLWindow2_get_onscroll(IHTMLWindow2 *iface, VARIANT *p)
static
HRESULT
WINAPI
HTMLWindow2_get_document
(
IHTMLWindow2
*
iface
,
IHTMLDocument2
**
p
)
{
HTMLWindow
*
This
=
HTMLWINDOW2_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
if
(
This
->
doc
)
{
/* FIXME: We should return a wrapper object here */
*
p
=
HTMLDOC
(
This
->
doc
);
IHTMLDocument2_AddRef
(
*
p
);
}
else
{
*
p
=
NULL
;
}
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLWindow2_get_event
(
IHTMLWindow2
*
iface
,
IHTMLEventObj
**
p
)
...
...
dlls/mshtml/tests/dom.c
View file @
aeb1095b
...
...
@@ -1081,7 +1081,6 @@ static void test_navigator(IHTMLDocument2 *doc)
hres
=
IHTMLDocument2_get_parentWindow
(
doc
,
&
window
);
ok
(
hres
==
S_OK
,
"parentWidnow failed: %08x
\n
"
,
hres
);
test_ifaces
((
IUnknown
*
)
window
,
window_iids
);
hres
=
IHTMLWindow2_get_navigator
(
window
,
&
navigator
);
ok
(
hres
==
S_OK
,
"get_navigator failed: %08x
\n
"
,
hres
);
...
...
@@ -1187,6 +1186,25 @@ static void test_default_body(IHTMLBodyElement *body)
ok
(
bstr
==
NULL
,
"bstr != NULL
\n
"
);
}
static
void
test_window
(
IHTMLDocument2
*
doc
)
{
IHTMLWindow2
*
window
;
IHTMLDocument2
*
doc2
=
NULL
;
HRESULT
hres
;
hres
=
IHTMLDocument2_get_parentWindow
(
doc
,
&
window
);
ok
(
hres
==
S_OK
,
"get_parentElement failed: %08x
\n
"
,
hres
);
test_ifaces
((
IUnknown
*
)
window
,
window_iids
);
test_disp
((
IUnknown
*
)
window
,
&
DIID_DispHTMLWindow2
);
hres
=
IHTMLWindow2_get_document
(
window
,
&
doc2
);
ok
(
hres
==
S_OK
,
"get_document failed: %08x
\n
"
,
hres
);
ok
(
doc2
!=
NULL
,
"doc2 == NULL
\n
"
);
IHTMLDocument_Release
(
doc2
);
IHTMLWindow2_Release
(
window
);
}
static
void
test_defaults
(
IHTMLDocument2
*
doc
)
{
IHTMLStyleSheetsCollection
*
stylesheetcol
;
...
...
@@ -1209,6 +1227,7 @@ static void test_defaults(IHTMLDocument2 *doc)
ok
(
hres
==
S_OK
,
"get_style failed: %08x
\n
"
,
hres
);
test_default_style
(
style
);
test_window
(
doc
);
test_compatmode
(
doc
);
test_location
(
doc
);
test_navigator
(
doc
);
...
...
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