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
a1d837c3
Commit
a1d837c3
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: Moved getting event target data pointer to DispatchEx vtbl.
parent
f908f03c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
6 deletions
+19
-6
htmlbody.c
dlls/mshtml/htmlbody.c
+3
-3
htmlelem.c
dlls/mshtml/htmlelem.c
+10
-1
htmlevent.h
dlls/mshtml/htmlevent.h
+3
-1
mshtml_private.h
dlls/mshtml/mshtml_private.h
+3
-1
No files found.
dlls/mshtml/htmlbody.c
View file @
a1d837c3
...
...
@@ -824,13 +824,13 @@ static void HTMLBodyElement_unlink(HTMLDOMNode *iface)
}
}
static
event_target_t
**
HTMLBodyElement_get_event_target
(
HTMLDOMNode
*
iface
)
static
event_target_t
**
HTMLBodyElement_get_event_target
_ptr
(
HTMLDOMNode
*
iface
)
{
HTMLBodyElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
return
This
->
textcont
.
element
.
node
.
doc
?
&
This
->
textcont
.
element
.
node
.
doc
->
body_event_target
:
&
This
->
textcont
.
element
.
node
.
event_target
;
:
&
This
->
textcont
.
element
.
node
.
event_target
.
ptr
;
}
static
BOOL
HTMLBodyElement_is_text_edit
(
HTMLDOMNode
*
iface
)
...
...
@@ -852,7 +852,7 @@ static const NodeImplVtbl HTMLBodyElementImplVtbl = {
HTMLElement_clone
,
HTMLElement_handle_event
,
HTMLElement_get_attr_col
,
HTMLBodyElement_get_event_target
,
HTMLBodyElement_get_event_target
_ptr
,
NULL
,
NULL
,
NULL
,
...
...
dlls/mshtml/htmlelem.c
View file @
a1d837c3
...
...
@@ -3988,6 +3988,14 @@ static HRESULT HTMLElement_populate_props(DispatchEx *dispex)
return
S_OK
;
}
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
)
:
&
This
->
node
.
event_target
.
ptr
;
}
static
const
tid_t
HTMLElement_iface_tids
[]
=
{
HTMLELEMENT_TIDS
,
0
...
...
@@ -3997,7 +4005,8 @@ static dispex_static_data_vtbl_t HTMLElement_dispex_vtbl = {
NULL
,
HTMLElement_get_dispid
,
HTMLElement_invoke
,
HTMLElement_populate_props
HTMLElement_populate_props
,
HTMLElement_get_event_target_ptr
};
static
dispex_static_data_t
HTMLElement_dispex
=
{
...
...
dlls/mshtml/htmlevent.h
View file @
a1d837c3
...
...
@@ -73,7 +73,9 @@ void detach_nsevent(HTMLDocumentNode*,const WCHAR*) DECLSPEC_HIDDEN;
static
inline
event_target_t
**
get_node_event_target
(
HTMLDOMNode
*
node
)
{
return
node
->
vtbl
->
get_event_target
?
node
->
vtbl
->
get_event_target
(
node
)
:
&
node
->
event_target
.
ptr
;
return
node
->
event_target
.
dispex
.
data
->
vtbl
->
get_event_target_ptr
?
node
->
event_target
.
dispex
.
data
->
vtbl
->
get_event_target_ptr
(
&
node
->
event_target
.
dispex
)
:
&
node
->
event_target
.
ptr
;
}
static
inline
HRESULT
set_node_event
(
HTMLDOMNode
*
node
,
eventid_t
eid
,
VARIANT
*
var
)
...
...
dlls/mshtml/mshtml_private.h
View file @
a1d837c3
...
...
@@ -230,6 +230,8 @@ typedef struct {
HRESULT
(
*
get_dispid
)(
DispatchEx
*
,
BSTR
,
DWORD
,
DISPID
*
);
HRESULT
(
*
invoke
)(
DispatchEx
*
,
DISPID
,
LCID
,
WORD
,
DISPPARAMS
*
,
VARIANT
*
,
EXCEPINFO
*
,
IServiceProvider
*
);
HRESULT
(
*
populate_props
)(
DispatchEx
*
);
/* We abuse this vtbl for EventTarget functions to avoid separated vtbl. */
event_target_t
**
(
*
get_event_target_ptr
)(
DispatchEx
*
);
}
dispex_static_data_vtbl_t
;
typedef
struct
{
...
...
@@ -642,7 +644,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
)(
HTMLDOMNode
*
);
event_target_t
**
(
*
get_event_target
_ptr
)(
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