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
c73b1356
Commit
c73b1356
authored
Jun 25, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 25, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Store event object in HTMLInnerWindow instead of HTMLOuterWindow.
parent
bb02767f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
htmlevent.c
dlls/mshtml/htmlevent.c
+6
-4
htmlwindow.c
dlls/mshtml/htmlwindow.c
+1
-1
mshtml_private.h
dlls/mshtml/mshtml_private.h
+2
-2
No files found.
dlls/mshtml/htmlevent.c
View file @
c73b1356
...
...
@@ -989,6 +989,7 @@ void fire_event(HTMLDocumentNode *doc, eventid_t eid, BOOL set_event, nsIDOMNode
IHTMLEventObj
*
prev_event
;
nsIDOMNode
*
parent
,
*
nsnode
;
BOOL
prevent_default
=
FALSE
;
HTMLInnerWindow
*
window
;
HTMLDOMNode
*
node
;
PRUint16
node_type
;
nsresult
nsres
;
...
...
@@ -996,7 +997,8 @@ void fire_event(HTMLDocumentNode *doc, eventid_t eid, BOOL set_event, nsIDOMNode
TRACE
(
"(%p) %s
\n
"
,
doc
,
debugstr_w
(
event_info
[
eid
].
name
));
prev_event
=
doc
->
basedoc
.
window
->
event
;
window
=
doc
->
basedoc
.
window
->
base
.
inner_window
;
prev_event
=
window
->
event
;
if
(
set_event
)
{
hres
=
get_node
(
doc
,
target
,
TRUE
,
&
node
);
if
(
FAILED
(
hres
))
...
...
@@ -1004,9 +1006,9 @@ void fire_event(HTMLDocumentNode *doc, eventid_t eid, BOOL set_event, nsIDOMNode
event_obj
=
create_event
(
node
,
eid
,
nsevent
);
node_release
(
node
);
doc
->
basedoc
.
window
->
event
=
&
event_obj
->
IHTMLEventObj_iface
;
window
->
event
=
&
event_obj
->
IHTMLEventObj_iface
;
}
else
{
doc
->
basedoc
.
window
->
event
=
NULL
;
window
->
event
=
NULL
;
}
nsIDOMNode_GetNodeType
(
target
,
&
node_type
);
...
...
@@ -1070,7 +1072,7 @@ void fire_event(HTMLDocumentNode *doc, eventid_t eid, BOOL set_event, nsIDOMNode
if
(
event_obj
&&
event_obj
->
prevent_default
)
prevent_default
=
TRUE
;
doc
->
basedoc
.
window
->
event
=
prev_event
;
window
->
event
=
prev_event
;
if
(
event_obj
)
IHTMLEventObj_Release
(
&
event_obj
->
IHTMLEventObj_iface
);
...
...
dlls/mshtml/htmlwindow.c
View file @
c73b1356
...
...
@@ -1027,7 +1027,7 @@ static HRESULT WINAPI HTMLWindow2_get_document(IHTMLWindow2 *iface, IHTMLDocumen
static
HRESULT
WINAPI
HTMLWindow2_get_event
(
IHTMLWindow2
*
iface
,
IHTMLEventObj
**
p
)
{
HTMLWindow
*
This
=
impl_from_IHTMLWindow2
(
iface
);
HTML
OuterWindow
*
window
=
This
->
out
er_window
;
HTML
InnerWindow
*
window
=
This
->
inn
er_window
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
...
...
dlls/mshtml/mshtml_private.h
View file @
c73b1356
...
...
@@ -331,8 +331,6 @@ struct HTMLOuterWindow {
IUri
*
uri
;
BSTR
url
;
IHTMLEventObj
*
event
;
SCRIPTMODE
scriptmode
;
IInternetSecurityManager
*
secmgr
;
...
...
@@ -355,6 +353,8 @@ struct HTMLInnerWindow {
struct
list
script_hosts
;
IHTMLEventObj
*
event
;
HTMLOptionElementFactory
*
option_factory
;
global_prop_t
*
global_props
;
...
...
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