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
74a75967
Commit
74a75967
authored
Feb 13, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use inner window's event target for body element.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8fba2bc6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
6 deletions
+5
-6
htmlbody.c
dlls/mshtml/htmlbody.c
+2
-2
htmldoc.c
dlls/mshtml/htmldoc.c
+0
-2
htmlwindow.c
dlls/mshtml/htmlwindow.c
+3
-1
mshtml_private.h
dlls/mshtml/mshtml_private.h
+0
-1
No files found.
dlls/mshtml/htmlbody.c
View file @
74a75967
...
...
@@ -829,8 +829,8 @@ static event_target_t **HTMLBodyElement_get_event_target_ptr(HTMLDOMNode *iface)
{
HTMLBodyElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
return
This
->
textcont
.
element
.
node
.
doc
?
&
This
->
textcont
.
element
.
node
.
doc
->
body_event_target
return
This
->
textcont
.
element
.
node
.
doc
&&
This
->
textcont
.
element
.
node
.
doc
->
window
?
&
This
->
textcont
.
element
.
node
.
doc
->
window
->
event_target
.
ptr
:
&
This
->
textcont
.
element
.
node
.
event_target
.
ptr
;
}
...
...
dlls/mshtml/htmldoc.c
View file @
74a75967
...
...
@@ -4644,8 +4644,6 @@ static void HTMLDocumentNode_destructor(HTMLDOMNode *iface)
heap_free
(
This
->
elem_vars
);
detach_events
(
This
);
if
(
This
->
body_event_target
)
release_event_target
(
This
->
body_event_target
);
if
(
This
->
catmgr
)
ICatInformation_Release
(
This
->
catmgr
);
...
...
dlls/mshtml/htmlwindow.c
View file @
74a75967
...
...
@@ -253,6 +253,8 @@ static void release_inner_window(HTMLInnerWindow *This)
htmldoc_release
(
&
This
->
doc
->
basedoc
);
}
if
(
This
->
event_target
.
ptr
)
release_event_target
(
This
->
event_target
.
ptr
);
release_dispex
(
&
This
->
event_target
.
dispex
);
for
(
i
=
0
;
i
<
This
->
global_prop_cnt
;
i
++
)
...
...
@@ -2943,7 +2945,7 @@ static HRESULT HTMLWindow_invoke(DispatchEx *dispex, DISPID id, LCID lcid, WORD
static
event_target_t
**
HTMLWindow_get_event_target_ptr
(
DispatchEx
*
dispex
)
{
HTMLInnerWindow
*
This
=
impl_from_DispatchEx
(
dispex
);
return
&
This
->
doc
->
body_event_target
;
return
&
This
->
event_target
.
ptr
;
}
static
void
HTMLWindow_bind_event
(
DispatchEx
*
dispex
,
int
eid
)
...
...
dlls/mshtml/mshtml_private.h
View file @
74a75967
...
...
@@ -801,7 +801,6 @@ struct HTMLDocumentNode {
nsIDOMHTMLDocument
*
nsdoc
;
BOOL
content_ready
;
event_target_t
*
body_event_target
;
IHTMLDOMImplementation
*
dom_implementation
;
...
...
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