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
e61e1968
Commit
e61e1968
authored
Mar 11, 2021
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 11, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Initialize DOMEventObj object with compat mode.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f4ad57d4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
htmldoc.c
dlls/mshtml/htmldoc.c
+1
-1
htmlevent.c
dlls/mshtml/htmlevent.c
+6
-6
htmlevent.h
dlls/mshtml/htmlevent.h
+1
-1
No files found.
dlls/mshtml/htmldoc.c
View file @
e61e1968
...
...
@@ -2681,7 +2681,7 @@ static HRESULT WINAPI HTMLDocument4_createEventObject(IHTMLDocument4 *iface,
return
E_NOTIMPL
;
}
return
create_event_obj
(
ppEventObj
);
return
create_event_obj
(
dispex_compat_mode
(
&
This
->
doc_node
->
node
.
event_target
.
dispex
),
ppEventObj
);
}
static
HRESULT
WINAPI
HTMLDocument4_fireEvent
(
IHTMLDocument4
*
iface
,
BSTR
bstrEventName
,
...
...
dlls/mshtml/htmlevent.c
View file @
e61e1968
...
...
@@ -756,7 +756,7 @@ static dispex_static_data_t HTMLEventObj_dispex = {
HTMLEventObj_iface_tids
};
static
HTMLEventObj
*
alloc_event_obj
(
DOMEvent
*
event
)
static
HTMLEventObj
*
alloc_event_obj
(
DOMEvent
*
event
,
compat_mode_t
compat_mode
)
{
HTMLEventObj
*
event_obj
;
...
...
@@ -770,15 +770,15 @@ static HTMLEventObj *alloc_event_obj(DOMEvent *event)
if
(
event
)
IDOMEvent_AddRef
(
&
event
->
IDOMEvent_iface
);
init_dispex
(
&
event_obj
->
dispex
,
(
IUnknown
*
)
&
event_obj
->
IHTMLEventObj_iface
,
&
HTMLEventObj_dispex
);
init_dispex
_with_compat_mode
(
&
event_obj
->
dispex
,
(
IUnknown
*
)
&
event_obj
->
IHTMLEventObj_iface
,
&
HTMLEventObj_dispex
,
compat_mode
);
return
event_obj
;
}
HRESULT
create_event_obj
(
IHTMLEventObj
**
ret
)
HRESULT
create_event_obj
(
compat_mode_t
compat_mode
,
IHTMLEventObj
**
ret
)
{
HTMLEventObj
*
event_obj
;
event_obj
=
alloc_event_obj
(
NULL
);
event_obj
=
alloc_event_obj
(
NULL
,
compat_mode
);
if
(
!
event_obj
)
return
E_OUTOFMEMORY
;
...
...
@@ -2682,7 +2682,7 @@ static HRESULT dispatch_event_object(EventTarget *event_target, DOMEvent *event,
}
while
(
iter
);
if
(
!
event
->
event_obj
&&
!
event
->
no_event_obj
)
{
event_obj_ref
=
alloc_event_obj
(
event
);
event_obj_ref
=
alloc_event_obj
(
event
,
dispex_compat_mode
(
&
event
->
dispex
)
);
if
(
event_obj_ref
)
event
->
event_obj
=
&
event_obj_ref
->
IHTMLEventObj_iface
;
}
...
...
@@ -2800,7 +2800,7 @@ HRESULT fire_event(HTMLDOMNode *node, const WCHAR *event_name, VARIANT *event_va
}
if
(
!
event_obj
)
{
event_obj
=
alloc_event_obj
(
NULL
);
event_obj
=
alloc_event_obj
(
NULL
,
dispex_compat_mode
(
&
node
->
event_target
.
dispex
)
);
if
(
!
event_obj
)
return
E_OUTOFMEMORY
;
}
...
...
dlls/mshtml/htmlevent.h
View file @
e61e1968
...
...
@@ -102,7 +102,7 @@ HRESULT fire_event(HTMLDOMNode*,const WCHAR*,VARIANT*,VARIANT_BOOL*) DECLSPEC_HI
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
;
HRESULT
create_event_obj
(
compat_mode_t
,
IHTMLEventObj
**
)
DECLSPEC_HIDDEN
;
void
bind_target_event
(
HTMLDocumentNode
*
,
EventTarget
*
,
const
WCHAR
*
,
IDispatch
*
)
DECLSPEC_HIDDEN
;
HRESULT
ensure_doc_nsevent_handler
(
HTMLDocumentNode
*
,
nsIDOMNode
*
,
eventid_t
)
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