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
e1d54def
Commit
e1d54def
authored
Feb 13, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Return event target as EventTarget in NodeImplVtbl.get_event_target.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
74a75967
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
+10
-9
htmlbody.c
dlls/mshtml/htmlbody.c
+4
-4
htmlelem.c
dlls/mshtml/htmlelem.c
+2
-2
mshtml_private.h
dlls/mshtml/mshtml_private.h
+4
-3
No files found.
dlls/mshtml/htmlbody.c
View file @
e1d54def
...
...
@@ -825,13 +825,13 @@ static void HTMLBodyElement_unlink(HTMLDOMNode *iface)
}
}
static
event_target_t
**
HTMLBodyElement_get_event_target_ptr
(
HTMLDOMNode
*
iface
)
static
EventTarget
*
HTMLBodyElement_get_event_target
(
HTMLDOMNode
*
iface
)
{
HTMLBodyElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
return
This
->
textcont
.
element
.
node
.
doc
&&
This
->
textcont
.
element
.
node
.
doc
->
window
?
&
This
->
textcont
.
element
.
node
.
doc
->
window
->
event_target
.
ptr
:
&
This
->
textcont
.
element
.
node
.
event_target
.
ptr
;
?
&
This
->
textcont
.
element
.
node
.
doc
->
window
->
event_target
:
&
This
->
textcont
.
element
.
node
.
event_target
;
}
static
BOOL
HTMLBodyElement_is_text_edit
(
HTMLDOMNode
*
iface
)
...
...
@@ -863,7 +863,7 @@ static const NodeImplVtbl HTMLBodyElementImplVtbl = {
HTMLElement_clone
,
HTMLElement_handle_event
,
HTMLElement_get_attr_col
,
HTMLBodyElement_get_event_target
_ptr
,
HTMLBodyElement_get_event_target
,
NULL
,
NULL
,
NULL
,
...
...
dlls/mshtml/htmlelem.c
View file @
e1d54def
...
...
@@ -5077,8 +5077,8 @@ static HRESULT HTMLElement_populate_props(DispatchEx *dispex)
static
event_target_t
**
HTMLElement_get_event_target_ptr
(
DispatchEx
*
dispex
)
{
HTMLElement
*
This
=
impl_from_DispatchEx
(
dispex
);
return
This
->
node
.
vtbl
->
get_event_target
_ptr
?
This
->
node
.
vtbl
->
get_event_target_ptr
(
&
This
->
node
)
return
This
->
node
.
vtbl
->
get_event_target
?
&
This
->
node
.
vtbl
->
get_event_target
(
&
This
->
node
)
->
ptr
:
&
This
->
node
.
event_target
.
ptr
;
}
...
...
dlls/mshtml/mshtml_private.h
View file @
e1d54def
...
...
@@ -73,6 +73,7 @@ typedef struct HTMLDOMNode HTMLDOMNode;
typedef
struct
ConnectionPoint
ConnectionPoint
;
typedef
struct
BSCallback
BSCallback
;
typedef
struct
event_target_t
event_target_t
;
typedef
struct
EventTarget
EventTarget
;
#define TID_LIST \
XIID(NULL) \
...
...
@@ -363,10 +364,10 @@ typedef struct {
DISPID
id
;
}
global_prop_t
;
typedef
struc
t
{
struct
EventTarge
t
{
DispatchEx
dispex
;
event_target_t
*
ptr
;
}
EventTarget
;
};
typedef
struct
{
DispatchEx
dispex
;
...
...
@@ -695,7 +696,7 @@ typedef struct {
HRESULT
(
*
clone
)(
HTMLDOMNode
*
,
nsIDOMNode
*
,
HTMLDOMNode
**
);
HRESULT
(
*
handle_event
)(
HTMLDOMNode
*
,
DWORD
,
nsIDOMEvent
*
,
BOOL
*
);
HRESULT
(
*
get_attr_col
)(
HTMLDOMNode
*
,
HTMLAttributeCollection
**
);
event_target_t
**
(
*
get_event_target_ptr
)(
HTMLDOMNode
*
);
EventTarget
*
(
*
get_event_target
)(
HTMLDOMNode
*
);
HRESULT
(
*
fire_event
)(
HTMLDOMNode
*
,
DWORD
,
BOOL
*
);
HRESULT
(
*
put_disabled
)(
HTMLDOMNode
*
,
VARIANT_BOOL
);
HRESULT
(
*
get_disabled
)(
HTMLDOMNode
*
,
VARIANT_BOOL
*
);
...
...
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