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
4cd257d5
Commit
4cd257d5
authored
Apr 05, 2021
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Expose IHTMLStyleElement2 to scripts.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
bb1ff337
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
2 deletions
+28
-2
htmlstyleelem.c
dlls/mshtml/htmlstyleelem.c
+19
-2
documentmode.js
dlls/mshtml/tests/documentmode.js
+9
-0
No files found.
dlls/mshtml/htmlstyleelem.c
View file @
4cd257d5
...
...
@@ -30,6 +30,7 @@
#include "wine/debug.h"
#include "mshtml_private.h"
#include "mshtmdid.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
mshtml
);
...
...
@@ -420,6 +421,23 @@ static void HTMLStyleElement_unlink(HTMLDOMNode *iface)
}
}
static
void
HTMLStyleElement_init_dispex_info
(
dispex_data_t
*
info
,
compat_mode_t
mode
)
{
static
const
dispex_hook_t
ie11_hooks
[]
=
{
{
DISPID_IHTMLSTYLEELEMENT_READYSTATE
,
NULL
},
{
DISPID_IHTMLSTYLEELEMENT_STYLESHEET
,
NULL
},
{
DISPID_UNKNOWN
}
};
HTMLElement_init_dispex_info
(
info
,
mode
);
dispex_info_add_interface
(
info
,
IHTMLStyleElement_tid
,
mode
>=
COMPAT_MODE_IE11
?
ie11_hooks
:
NULL
);
if
(
mode
>=
COMPAT_MODE_IE9
)
dispex_info_add_interface
(
info
,
IHTMLStyleElement2_tid
,
NULL
);
}
static
const
NodeImplVtbl
HTMLStyleElementImplVtbl
=
{
&
CLSID_HTMLStyleElement
,
HTMLStyleElement_QI
,
...
...
@@ -442,14 +460,13 @@ static const NodeImplVtbl HTMLStyleElementImplVtbl = {
static
const
tid_t
HTMLStyleElement_iface_tids
[]
=
{
HTMLELEMENT_TIDS
,
IHTMLStyleElement_tid
,
0
};
static
dispex_static_data_t
HTMLStyleElement_dispex
=
{
NULL
,
DispHTMLStyleElement_tid
,
HTMLStyleElement_iface_tids
,
HTMLElement_init_dispex_info
HTML
Style
Element_init_dispex_info
};
HRESULT
HTMLStyleElement_Create
(
HTMLDocumentNode
*
doc
,
nsIDOMElement
*
nselem
,
HTMLElement
**
elem
)
...
...
dlls/mshtml/tests/documentmode.js
View file @
4cd257d5
...
...
@@ -45,6 +45,15 @@ sync_test("elem_props", function() {
test_exposed
(
"dispatchEvent"
,
v
>=
9
);
test_exposed
(
"msSetPointerCapture"
,
v
>=
10
);
if
(
v
>=
9
)
test_exposed
(
"spellcheck"
,
v
>=
10
);
elem
=
document
.
createElement
(
"style"
);
test_exposed
(
"media"
,
true
);
test_exposed
(
"type"
,
true
);
test_exposed
(
"disabled"
,
true
);
test_exposed
(
"media"
,
true
);
test_exposed
(
"sheet"
,
v
>=
9
);
test_exposed
(
"readyState"
,
v
<
11
);
test_exposed
(
"styleSheet"
,
v
<
11
);
});
sync_test
(
"doc_props"
,
function
()
{
...
...
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