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
724e54d5
Commit
724e54d5
authored
Jul 25, 2023
by
Yuxuan Shui
Committed by
Alexandre Julliard
Jul 31, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Add stubs for MutationObserver methods.
parent
02994bdd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
1 deletion
+47
-1
mshtml_private_iface.idl
dlls/mshtml/mshtml_private_iface.idl
+7
-0
mutation.c
dlls/mshtml/mutation.c
+31
-0
documentmode.js
dlls/mshtml/tests/documentmode.js
+9
-1
No files found.
dlls/mshtml/mshtml_private_iface.idl
View file @
724e54d5
...
@@ -21,6 +21,7 @@
...
@@ -21,6 +21,7 @@
#
include
<
mshtmdid
.
h>
#
include
<
mshtmdid
.
h>
import
"ocidl.idl"
;
import
"ocidl.idl"
;
import
"mshtml.idl"
;
[
[
version
(
1.0
),
version
(
1.0
),
...
@@ -85,6 +86,12 @@ interface IWineMSHTMLConsole : IDispatch
...
@@ -85,6 +86,12 @@ interface IWineMSHTMLConsole : IDispatch
]
]
interface
IWineMSHTMLMutationObserver
:
IDispatch
interface
IWineMSHTMLMutationObserver
:
IDispatch
{
{
[
id
(
1
)
]
HRESULT
disconnect
()
;
[
id
(
2
)
]
HRESULT
observe
(
[
in
]
IHTMLDOMNode
*
target
,
[
in
]
IDispatch
*
options
)
;
[
id
(
3
)
]
HRESULT
takeRecords
(
[
retval
,
out
]
IDispatch
**
records
)
;
}
}
[
[
...
...
dlls/mshtml/mutation.c
View file @
724e54d5
...
@@ -1172,6 +1172,34 @@ static HRESULT WINAPI MutationObserver_Invoke(IWineMSHTMLMutationObserver *iface
...
@@ -1172,6 +1172,34 @@ static HRESULT WINAPI MutationObserver_Invoke(IWineMSHTMLMutationObserver *iface
pDispParams
,
pVarResult
,
pExcepInfo
,
puArgErr
);
pDispParams
,
pVarResult
,
pExcepInfo
,
puArgErr
);
}
}
static
HRESULT
WINAPI
MutationObserver_disconnect
(
IWineMSHTMLMutationObserver
*
iface
)
{
struct
mutation_observer
*
This
=
impl_from_IWineMSHTMLMutationObserver
(
iface
);
FIXME
(
"(%p), stub
\n
"
,
This
);
return
S_OK
;
}
static
HRESULT
WINAPI
MutationObserver_observe
(
IWineMSHTMLMutationObserver
*
iface
,
IHTMLDOMNode
*
target
,
IDispatch
*
options
)
{
struct
mutation_observer
*
This
=
impl_from_IWineMSHTMLMutationObserver
(
iface
);
FIXME
(
"(%p)->(%p %p), stub
\n
"
,
This
,
target
,
options
);
return
S_OK
;
}
static
HRESULT
WINAPI
MutationObserver_takeRecords
(
IWineMSHTMLMutationObserver
*
iface
,
IDispatch
**
ret
)
{
struct
mutation_observer
*
This
=
impl_from_IWineMSHTMLMutationObserver
(
iface
);
FIXME
(
"(%p)->(%p), stub
\n
"
,
This
,
ret
);
return
E_NOTIMPL
;
}
static
const
IWineMSHTMLMutationObserverVtbl
WineMSHTMLMutationObserverVtbl
=
{
static
const
IWineMSHTMLMutationObserverVtbl
WineMSHTMLMutationObserverVtbl
=
{
MutationObserver_QueryInterface
,
MutationObserver_QueryInterface
,
MutationObserver_AddRef
,
MutationObserver_AddRef
,
...
@@ -1180,6 +1208,9 @@ static const IWineMSHTMLMutationObserverVtbl WineMSHTMLMutationObserverVtbl = {
...
@@ -1180,6 +1208,9 @@ static const IWineMSHTMLMutationObserverVtbl WineMSHTMLMutationObserverVtbl = {
MutationObserver_GetTypeInfo
,
MutationObserver_GetTypeInfo
,
MutationObserver_GetIDsOfNames
,
MutationObserver_GetIDsOfNames
,
MutationObserver_Invoke
,
MutationObserver_Invoke
,
MutationObserver_disconnect
,
MutationObserver_observe
,
MutationObserver_takeRecords
};
};
static
const
tid_t
mutation_observer_iface_tids
[]
=
{
static
const
tid_t
mutation_observer_iface_tids
[]
=
{
...
...
dlls/mshtml/tests/documentmode.js
View file @
724e54d5
...
@@ -2909,7 +2909,15 @@ sync_test("MutationObserver", function() {
...
@@ -2909,7 +2909,15 @@ sync_test("MutationObserver", function() {
}
catch
(
e
)
{
}
catch
(
e
)
{
ok
(
false
,
"MutationObserver with extra args threw exception "
+
e
.
number
);
ok
(
false
,
"MutationObserver with extra args threw exception "
+
e
.
number
);
}
}
})
var
mutation_observer
=
new
MutationObserver
(
function
()
{});
function
test_exposed
(
prop
)
{
ok
(
prop
in
mutation_observer
,
prop
+
" not found in MutationObserver."
);
}
test_exposed
(
"observe"
);
test_exposed
(
"disconnect"
);
test_exposed
(
"takeRecords"
);
});
async_test
(
"postMessage"
,
function
()
{
async_test
(
"postMessage"
,
function
()
{
var
v
=
document
.
documentMode
;
var
v
=
document
.
documentMode
;
...
...
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