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
4686f3d7
Commit
4686f3d7
authored
May 15, 2015
by
Jacek Caban
Committed by
Alexandre Julliard
May 18, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Removed unneeded argument from ensure_nsevent_handler.
parent
81b136fe
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
13 deletions
+8
-13
htmldoc.c
dlls/mshtml/htmldoc.c
+1
-1
htmlevent.c
dlls/mshtml/htmlevent.c
+6
-11
htmlevent.h
dlls/mshtml/htmlevent.h
+1
-1
No files found.
dlls/mshtml/htmldoc.c
View file @
4686f3d7
...
...
@@ -3962,7 +3962,7 @@ static void HTMLDocument_on_advise(IUnknown *iface, cp_static_data_t *cp)
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
((
IHTMLDocument2
*
)
iface
);
if
(
This
->
window
)
update_
cp_events
(
This
->
window
->
base
.
inner_window
,
&
This
->
doc_node
->
node
.
event_target
,
cp
);
update_
doc_cp_events
(
This
->
doc_node
,
cp
);
}
static
inline
HTMLDocument
*
impl_from_ISupportErrorInfo
(
ISupportErrorInfo
*
iface
)
...
...
dlls/mshtml/htmlevent.c
View file @
4686f3d7
...
...
@@ -1336,7 +1336,7 @@ static BOOL alloc_handler_vector(event_target_t *event_target, eventid_t eid, in
return
TRUE
;
}
static
HRESULT
ensure_nsevent_handler
(
HTMLDocumentNode
*
doc
,
event
_target_t
*
event_target
,
event
id_t
eid
)
static
HRESULT
ensure_nsevent_handler
(
HTMLDocumentNode
*
doc
,
eventid_t
eid
)
{
nsIDOMNode
*
nsnode
=
NULL
;
...
...
@@ -1410,7 +1410,7 @@ static HRESULT set_event_handler_disp(EventTarget *event_target, HTMLDocumentNod
data
->
event_table
[
eid
]
->
handler_prop
=
disp
;
IDispatch_AddRef
(
disp
);
return
ensure_nsevent_handler
(
doc
,
data
,
eid
);
return
ensure_nsevent_handler
(
doc
,
eid
);
}
HRESULT
set_event_handler
(
EventTarget
*
event_target
,
HTMLDocumentNode
*
doc
,
eventid_t
eid
,
VARIANT
*
var
)
...
...
@@ -1509,7 +1509,7 @@ HRESULT attach_event(EventTarget *event_target, HTMLDocument *doc, BSTR name,
data
->
event_table
[
eid
]
->
handlers
[
i
]
=
disp
;
*
res
=
VARIANT_TRUE
;
return
ensure_nsevent_handler
(
doc
->
doc_node
,
data
,
eid
);
return
ensure_nsevent_handler
(
doc
->
doc_node
,
eid
);
}
HRESULT
detach_event
(
EventTarget
*
event_target
,
HTMLDocument
*
doc
,
BSTR
name
,
IDispatch
*
disp
)
...
...
@@ -1557,18 +1557,13 @@ void bind_target_event(HTMLDocumentNode *doc, EventTarget *event_target, const W
set_event_handler_disp
(
event_target
,
doc
,
eid
,
disp
);
}
void
update_
cp_events
(
HTMLInnerWindow
*
window
,
EventTarget
*
event_target
,
cp_static_data_t
*
cp
)
void
update_
doc_cp_events
(
HTMLDocumentNode
*
doc
,
cp_static_data_t
*
cp
)
{
event_target_t
*
data
;
int
i
;
data
=
get_event_target_data
(
event_target
,
FALSE
);
if
(
!
data
)
return
;
/* FIXME */
for
(
i
=
0
;
i
<
EVENTID_LAST
;
i
++
)
{
if
((
event_info
[
i
].
flags
&
EVENT_DEFAULTLISTENER
)
&&
is_cp_event
(
cp
,
event_info
[
i
].
dispid
))
ensure_nsevent_handler
(
window
->
doc
,
data
,
i
);
ensure_nsevent_handler
(
doc
,
i
);
}
}
...
...
@@ -1617,7 +1612,7 @@ HRESULT doc_init_events(HTMLDocumentNode *doc)
for
(
i
=
0
;
i
<
EVENTID_LAST
;
i
++
)
{
if
(
event_info
[
i
].
flags
&
EVENT_HASDEFAULTHANDLERS
)
{
hres
=
ensure_nsevent_handler
(
doc
,
NULL
,
i
);
hres
=
ensure_nsevent_handler
(
doc
,
i
);
if
(
FAILED
(
hres
))
return
hres
;
}
...
...
dlls/mshtml/htmlevent.h
View file @
4686f3d7
...
...
@@ -60,7 +60,7 @@ HRESULT attach_event(EventTarget*,HTMLDocument*,BSTR,IDispatch*,VARIANT_BOOL*) D
HRESULT
detach_event
(
EventTarget
*
,
HTMLDocument
*
,
BSTR
,
IDispatch
*
)
DECLSPEC_HIDDEN
;
HRESULT
dispatch_event
(
HTMLDOMNode
*
,
const
WCHAR
*
,
VARIANT
*
,
VARIANT_BOOL
*
)
DECLSPEC_HIDDEN
;
HRESULT
call_fire_event
(
HTMLDOMNode
*
,
eventid_t
)
DECLSPEC_HIDDEN
;
void
update_
cp_events
(
HTMLInnerWindow
*
,
EventTarget
*
,
cp_static_data_t
*
)
DECLSPEC_HIDDEN
;
void
update_
doc_cp_events
(
HTMLDocumentNode
*
,
cp_static_data_t
*
)
DECLSPEC_HIDDEN
;
HRESULT
doc_init_events
(
HTMLDocumentNode
*
)
DECLSPEC_HIDDEN
;
void
detach_events
(
HTMLDocumentNode
*
doc
)
DECLSPEC_HIDDEN
;
HRESULT
create_event_obj
(
IHTMLEventObj
**
)
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