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
62e76f18
Commit
62e76f18
authored
Oct 20, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 20, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use fire_event_obj to dispatch XHR readystatechange event.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
aaa57646
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
htmlevent.c
dlls/mshtml/htmlevent.c
+2
-2
htmlevent.h
dlls/mshtml/htmlevent.h
+1
-1
xmlhttprequest.c
dlls/mshtml/xmlhttprequest.c
+1
-1
No files found.
dlls/mshtml/htmlevent.c
View file @
62e76f18
...
...
@@ -1252,7 +1252,7 @@ static BOOL is_cp_event(cp_static_data_t *data, DISPID dispid)
return
FALSE
;
}
void
call_event_handlers
(
EventTarget
*
event_target
,
DOMEvent
*
event
)
static
void
call_event_handlers
(
EventTarget
*
event_target
,
DOMEvent
*
event
)
{
const
eventid_t
eid
=
event
->
event_id
;
handler_vector_t
*
handler_vector
=
get_handler_vector
(
event_target
,
eid
,
FALSE
);
...
...
@@ -1370,7 +1370,7 @@ void call_event_handlers(EventTarget *event_target, DOMEvent *event)
}
}
static
void
fire_event_obj
(
EventTarget
*
event_target
,
DOMEvent
*
event
)
void
fire_event_obj
(
EventTarget
*
event_target
,
DOMEvent
*
event
)
{
EventTarget
*
target_chain_buf
[
8
],
**
target_chain
=
target_chain_buf
;
unsigned
chain_cnt
,
chain_buf_size
,
i
;
...
...
dlls/mshtml/htmlevent.h
View file @
62e76f18
...
...
@@ -87,7 +87,7 @@ HRESULT create_event_obj(IHTMLEventObj**) DECLSPEC_HIDDEN;
void
bind_target_event
(
HTMLDocumentNode
*
,
EventTarget
*
,
const
WCHAR
*
,
IDispatch
*
)
DECLSPEC_HIDDEN
;
HRESULT
ensure_doc_nsevent_handler
(
HTMLDocumentNode
*
,
eventid_t
)
DECLSPEC_HIDDEN
;
void
call_event_handlers
(
EventTarget
*
,
DOMEvent
*
)
;
void
fire_event_obj
(
EventTarget
*
,
DOMEvent
*
)
DECLSPEC_HIDDEN
;
HRESULT
create_document_event_str
(
HTMLDocumentNode
*
,
const
WCHAR
*
,
IDOMEvent
**
)
DECLSPEC_HIDDEN
;
HRESULT
create_event_from_nsevent
(
nsIDOMEvent
*
,
DOMEvent
**
)
DECLSPEC_HIDDEN
;
...
...
dlls/mshtml/xmlhttprequest.c
View file @
62e76f18
...
...
@@ -195,7 +195,7 @@ static nsresult NSAPI XMLHttpReqEventListener_HandleEvent(nsIDOMEventListener *i
hres
=
create_event_from_nsevent
(
nsevent
,
&
event
);
if
(
SUCCEEDED
(
hres
)
){
event
->
no_event_obj
=
TRUE
;
call_event_handlers
(
&
This
->
xhr
->
event_target
,
event
);
fire_event_obj
(
&
This
->
xhr
->
event_target
,
event
);
IDOMEvent_Release
(
&
event
->
IDOMEvent_iface
);
}
return
NS_OK
;
...
...
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