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
760f9de8
Commit
760f9de8
authored
May 14, 2015
by
Jacek Caban
Committed by
Alexandre Julliard
May 15, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Pass EventTarget to update_cp_events.
parent
21151f3e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
htmldoc.c
dlls/mshtml/htmldoc.c
+1
-1
htmlevent.c
dlls/mshtml/htmlevent.c
+5
-5
htmlevent.h
dlls/mshtml/htmlevent.h
+1
-1
No files found.
dlls/mshtml/htmldoc.c
View file @
760f9de8
...
...
@@ -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
.
ptr
,
cp
);
update_cp_events
(
This
->
window
->
base
.
inner_window
,
&
This
->
doc_node
->
node
.
event_target
,
cp
);
}
static
inline
HTMLDocument
*
impl_from_ISupportErrorInfo
(
ISupportErrorInfo
*
iface
)
...
...
dlls/mshtml/htmlevent.c
View file @
760f9de8
...
...
@@ -1563,18 +1563,18 @@ 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
,
event_target_t
**
event_target_ptr
,
cp_static_data_t
*
cp
)
void
update_cp_events
(
HTMLInnerWindow
*
window
,
EventTarget
*
event_target
,
cp_static_data_t
*
cp
)
{
event_target_t
*
event_target
;
event_target_t
*
data
;
int
i
;
event_target
=
get_event_target
(
event_target_ptr
);
if
(
!
event_target
)
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
,
event_target
,
i
);
ensure_nsevent_handler
(
window
->
doc
,
data
,
i
);
}
}
...
...
dlls/mshtml/htmlevent.h
View file @
760f9de8
...
...
@@ -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
*
,
event_target_t
*
*
,
cp_static_data_t
*
)
DECLSPEC_HIDDEN
;
void
update_cp_events
(
HTMLInnerWindow
*
,
EventTarget
*
,
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