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
d69f1f01
Commit
d69f1f01
authored
Sep 21, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 22, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Introduce EventTarget_Init.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1b09514c
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
10 deletions
+10
-10
htmlevent.c
dlls/mshtml/htmlevent.c
+3
-1
htmlevent.h
dlls/mshtml/htmlevent.h
+0
-1
htmlnode.c
dlls/mshtml/htmlnode.c
+1
-3
htmlwindow.c
dlls/mshtml/htmlwindow.c
+2
-2
mshtml_private.h
dlls/mshtml/mshtml_private.h
+2
-0
xmlhttprequest.c
dlls/mshtml/xmlhttprequest.c
+2
-3
No files found.
dlls/mshtml/htmlevent.c
View file @
d69f1f01
...
...
@@ -1643,8 +1643,10 @@ static int event_id_cmp(const void *key, const struct wine_rb_entry *entry)
return
(
INT_PTR
)
key
-
WINE_RB_ENTRY_VALUE
(
entry
,
handler_vector_t
,
entry
)
->
event_id
;
}
void
init_event_target
(
EventTarget
*
event_target
)
void
EventTarget_Init
(
EventTarget
*
event_target
,
IUnknown
*
outer
,
dispex_static_data_t
*
dispex_data
,
compat_mode_t
compat_mode
)
{
init_dispex_with_compat_mode
(
&
event_target
->
dispex
,
outer
,
dispex_data
,
compat_mode
);
wine_rb_init
(
&
event_target
->
handler_map
,
event_id_cmp
);
}
...
...
dlls/mshtml/htmlevent.h
View file @
d69f1f01
...
...
@@ -57,7 +57,6 @@ typedef enum {
eventid_t
str_to_eid
(
LPCWSTR
)
DECLSPEC_HIDDEN
;
void
check_event_attr
(
HTMLDocumentNode
*
,
nsIDOMHTMLElement
*
)
DECLSPEC_HIDDEN
;
void
init_event_target
(
EventTarget
*
)
DECLSPEC_HIDDEN
;
void
release_event_target
(
EventTarget
*
)
DECLSPEC_HIDDEN
;
void
fire_event
(
HTMLDocumentNode
*
,
eventid_t
,
BOOL
,
HTMLDOMNode
*
,
nsIDOMEvent
*
,
IDispatch
*
)
DECLSPEC_HIDDEN
;
HRESULT
set_event_handler
(
EventTarget
*
,
eventid_t
,
VARIANT
*
)
DECLSPEC_HIDDEN
;
...
...
dlls/mshtml/htmlnode.c
View file @
d69f1f01
...
...
@@ -1450,9 +1450,7 @@ void HTMLDOMNode_Init(HTMLDocumentNode *doc, HTMLDOMNode *node, nsIDOMNode *nsno
node
->
IHTMLDOMNode3_iface
.
lpVtbl
=
&
HTMLDOMNode3Vtbl
;
ccref_init
(
&
node
->
ccref
,
1
);
init_dispex_with_compat_mode
(
&
node
->
event_target
.
dispex
,
(
IUnknown
*
)
&
node
->
IHTMLDOMNode_iface
,
dispex_data
,
doc
->
document_mode
);
init_event_target
(
&
node
->
event_target
);
EventTarget_Init
(
&
node
->
event_target
,
(
IUnknown
*
)
&
node
->
IHTMLDOMNode_iface
,
dispex_data
,
doc
->
document_mode
);
if
(
&
doc
->
node
!=
node
)
htmldoc_addref
(
&
doc
->
basedoc
);
...
...
dlls/mshtml/htmlwindow.c
View file @
d69f1f01
...
...
@@ -3078,8 +3078,8 @@ static HRESULT create_inner_window(HTMLOuterWindow *outer_window, IMoniker *mon,
window
->
base
.
outer_window
=
outer_window
;
window
->
base
.
inner_window
=
window
;
init_event_target
(
&
window
->
event_target
);
init_dispex
(
&
window
->
event_target
.
dispex
,
(
IUnknown
*
)
&
window
->
base
.
IHTMLWindow2_iface
,
&
HTMLWindow_dispex
);
EventTarget_Init
(
&
window
->
event_target
,
(
IUnknown
*
)
&
window
->
base
.
IHTMLWindow2_iface
,
&
HTMLWindow_dispex
,
COMPAT_MODE_NONE
);
window
->
task_magic
=
get_task_target_magic
();
...
...
dlls/mshtml/mshtml_private.h
View file @
d69f1f01
...
...
@@ -1040,6 +1040,8 @@ void HTMLElement_Init(HTMLElement*,HTMLDocumentNode*,nsIDOMHTMLElement*,dispex_s
void
HTMLTextContainer_Init
(
HTMLTextContainer
*
,
HTMLDocumentNode
*
,
nsIDOMHTMLElement
*
,
dispex_static_data_t
*
)
DECLSPEC_HIDDEN
;
void
HTMLFrameBase_Init
(
HTMLFrameBase
*
,
HTMLDocumentNode
*
,
nsIDOMHTMLElement
*
,
dispex_static_data_t
*
)
DECLSPEC_HIDDEN
;
void
EventTarget_Init
(
EventTarget
*
,
IUnknown
*
,
dispex_static_data_t
*
,
compat_mode_t
)
DECLSPEC_HIDDEN
;
HRESULT
HTMLDOMNode_QI
(
HTMLDOMNode
*
,
REFIID
,
void
**
)
DECLSPEC_HIDDEN
;
void
HTMLDOMNode_destructor
(
HTMLDOMNode
*
)
DECLSPEC_HIDDEN
;
void
HTMLDOMNode_init_dispex_info
(
dispex_data_t
*
,
compat_mode_t
)
DECLSPEC_HIDDEN
;
...
...
dlls/mshtml/xmlhttprequest.c
View file @
d69f1f01
...
...
@@ -901,9 +901,8 @@ static HRESULT WINAPI HTMLXMLHttpRequestFactory_create(IHTMLXMLHttpRequestFactor
ret
->
IHTMLXMLHttpRequest_iface
.
lpVtbl
=
&
HTMLXMLHttpRequestVtbl
;
ret
->
IProvideClassInfo2_iface
.
lpVtbl
=
&
ProvideClassInfo2Vtbl
;
init_event_target
(
&
ret
->
event_target
);
init_dispex
(
&
ret
->
event_target
.
dispex
,
(
IUnknown
*
)
&
ret
->
IHTMLXMLHttpRequest_iface
,
&
HTMLXMLHttpRequest_dispex
);
EventTarget_Init
(
&
ret
->
event_target
,
(
IUnknown
*
)
&
ret
->
IHTMLXMLHttpRequest_iface
,
&
HTMLXMLHttpRequest_dispex
,
COMPAT_MODE_NONE
);
ret
->
ref
=
1
;
*
p
=
&
ret
->
IHTMLXMLHttpRequest_iface
;
...
...
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