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
067e982b
Commit
067e982b
authored
Mar 11, 2019
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Pass GeckoBrowser instead of HTMLDocumentObj to create_document_node.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
52188895
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
htmldoc.c
dlls/mshtml/htmldoc.c
+2
-1
htmlwindow.c
dlls/mshtml/htmlwindow.c
+2
-4
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-1
No files found.
dlls/mshtml/htmldoc.c
View file @
067e982b
...
...
@@ -5163,8 +5163,9 @@ static HTMLDocumentNode *alloc_doc_node(HTMLDocumentObj *doc_obj, HTMLInnerWindo
return
doc
;
}
HRESULT
create_doc
_from_nsdoc
(
nsIDOMHTMLDocument
*
nsdoc
,
HTMLDocumentObj
*
doc_obj
,
HTMLInnerWindow
*
window
,
HTMLDocumentNode
**
ret
)
HRESULT
create_doc
ument_node
(
nsIDOMHTMLDocument
*
nsdoc
,
GeckoBrowser
*
browser
,
HTMLInnerWindow
*
window
,
HTMLDocumentNode
**
ret
)
{
HTMLDocumentObj
*
doc_obj
=
browser
->
doc
;
HTMLDocumentNode
*
doc
;
doc
=
alloc_doc_node
(
doc_obj
,
window
);
...
...
dlls/mshtml/htmlwindow.c
View file @
067e982b
...
...
@@ -3627,10 +3627,8 @@ HRESULT update_window_doc(HTMLInnerWindow *window)
assert
(
!
window
->
doc
);
if
(
!
outer_window
)
{
ERR
(
"NULL outer window
\n
"
);
if
(
!
outer_window
)
return
E_UNEXPECTED
;
}
nsres
=
nsIDOMWindow_GetDocument
(
outer_window
->
nswindow
,
&
nsdoc
);
if
(
NS_FAILED
(
nsres
)
||
!
nsdoc
)
{
...
...
@@ -3645,7 +3643,7 @@ HRESULT update_window_doc(HTMLInnerWindow *window)
return
E_FAIL
;
}
hres
=
create_doc
_from_nsdoc
(
nshtmldoc
,
outer_window
->
doc_obj
,
window
,
&
window
->
doc
);
hres
=
create_doc
ument_node
(
nshtmldoc
,
outer_window
->
doc_obj
->
nscontainer
,
window
,
&
window
->
doc
);
nsIDOMHTMLDocument_Release
(
nshtmldoc
);
if
(
FAILED
(
hres
))
return
hres
;
...
...
dlls/mshtml/mshtml_private.h
View file @
067e982b
...
...
@@ -862,7 +862,7 @@ struct HTMLDocumentNode {
HRESULT
HTMLDocument_Create
(
IUnknown
*
,
REFIID
,
void
**
)
DECLSPEC_HIDDEN
;
HRESULT
MHTMLDocument_Create
(
IUnknown
*
,
REFIID
,
void
**
)
DECLSPEC_HIDDEN
;
HRESULT
HTMLLoadOptions_Create
(
IUnknown
*
,
REFIID
,
void
**
)
DECLSPEC_HIDDEN
;
HRESULT
create_doc
_from_nsdoc
(
nsIDOMHTMLDocument
*
,
HTMLDocumentObj
*
,
HTMLInnerWindow
*
,
HTMLDocumentNode
**
)
DECLSPEC_HIDDEN
;
HRESULT
create_doc
ument_node
(
nsIDOMHTMLDocument
*
,
GeckoBrowser
*
,
HTMLInnerWindow
*
,
HTMLDocumentNode
**
)
DECLSPEC_HIDDEN
;
HRESULT
HTMLOuterWindow_Create
(
HTMLDocumentObj
*
,
nsIDOMWindow
*
,
HTMLOuterWindow
*
,
HTMLOuterWindow
**
)
DECLSPEC_HIDDEN
;
HRESULT
update_window_doc
(
HTMLInnerWindow
*
)
DECLSPEC_HIDDEN
;
...
...
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