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
beb0b78a
Commit
beb0b78a
authored
Feb 21, 2018
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 21, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IDOMMouseEvent::fromElement property implementation.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c0d248f2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
+22
-2
htmlevent.c
dlls/mshtml/htmlevent.c
+21
-2
events.js
dlls/mshtml/tests/events.js
+1
-0
No files found.
dlls/mshtml/htmlevent.c
View file @
beb0b78a
...
@@ -1580,8 +1580,27 @@ static HRESULT WINAPI DOMMouseEvent_get_buttons(IDOMMouseEvent *iface, USHORT *p
...
@@ -1580,8 +1580,27 @@ static HRESULT WINAPI DOMMouseEvent_get_buttons(IDOMMouseEvent *iface, USHORT *p
static
HRESULT
WINAPI
DOMMouseEvent_get_fromElement
(
IDOMMouseEvent
*
iface
,
IHTMLElement
**
p
)
static
HRESULT
WINAPI
DOMMouseEvent_get_fromElement
(
IDOMMouseEvent
*
iface
,
IHTMLElement
**
p
)
{
{
DOMEvent
*
This
=
impl_from_IDOMMouseEvent
(
iface
);
DOMEvent
*
This
=
impl_from_IDOMMouseEvent
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
IEventTarget
*
related_target
=
NULL
;
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
if
(
This
->
event_id
!=
EVENTID_LAST
)
{
HRESULT
hres
=
S_OK
;
if
(
event_info
[
This
->
event_id
].
flags
&
EVENT_MOUSE_FROM_RELATED
)
hres
=
IDOMMouseEvent_get_relatedTarget
(
&
This
->
IDOMMouseEvent_iface
,
&
related_target
);
else
if
(
event_info
[
This
->
event_id
].
flags
&
EVENT_MOUSE_TO_RELATED
)
hres
=
IDOMEvent_get_target
(
&
This
->
IDOMEvent_iface
,
&
related_target
);
if
(
FAILED
(
hres
))
return
hres
;
}
if
(
!
related_target
)
{
*
p
=
NULL
;
return
S_OK
;
}
IEventTarget_QueryInterface
(
related_target
,
&
IID_IHTMLElement
,
(
void
**
)
p
);
return
S_OK
;
}
}
static
HRESULT
WINAPI
DOMMouseEvent_get_toElement
(
IDOMMouseEvent
*
iface
,
IHTMLElement
**
p
)
static
HRESULT
WINAPI
DOMMouseEvent_get_toElement
(
IDOMMouseEvent
*
iface
,
IHTMLElement
**
p
)
...
...
dlls/mshtml/tests/events.js
View file @
beb0b78a
...
@@ -633,6 +633,7 @@ function test_mouse_event() {
...
@@ -633,6 +633,7 @@ function test_mouse_event() {
ok
(
e
.
which
===
1
,
"which = "
+
e
.
which
);
ok
(
e
.
which
===
1
,
"which = "
+
e
.
which
);
ok
(
e
.
relatedTarget
===
null
,
"relatedTarget = "
+
e
.
relatedTarget
);
ok
(
e
.
relatedTarget
===
null
,
"relatedTarget = "
+
e
.
relatedTarget
);
ok
(
e
.
toElement
===
null
,
"toElement = "
+
e
.
toElement
);
ok
(
e
.
toElement
===
null
,
"toElement = "
+
e
.
toElement
);
ok
(
e
.
fromElement
===
null
,
"fromElement = "
+
e
.
fromElement
);
e
.
initMouseEvent
(
"test"
,
true
,
true
,
window
,
1
,
2
,
3
,
4
,
5
,
false
,
false
,
false
,
false
,
1
,
document
);
e
.
initMouseEvent
(
"test"
,
true
,
true
,
window
,
1
,
2
,
3
,
4
,
5
,
false
,
false
,
false
,
false
,
1
,
document
);
ok
(
e
.
type
===
"test"
,
"type = "
+
e
.
type
);
ok
(
e
.
type
===
"test"
,
"type = "
+
e
.
type
);
...
...
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