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
d4be45fc
Commit
d4be45fc
authored
Jul 19, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 19, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Expose IHTMLDOMNode3 interface to scripts.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
03b80411
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
4 deletions
+18
-4
htmlelem.c
dlls/mshtml/htmlelem.c
+2
-0
htmlnode.c
dlls/mshtml/htmlnode.c
+8
-1
htmltextnode.c
dlls/mshtml/htmltextnode.c
+4
-3
mshtml_private.h
dlls/mshtml/mshtml_private.h
+2
-0
documentmode.js
dlls/mshtml/tests/documentmode.js
+2
-0
No files found.
dlls/mshtml/htmlelem.c
View file @
d4be45fc
...
...
@@ -5176,6 +5176,8 @@ void HTMLElement_init_dispex_info(dispex_data_t *info, compat_mode_t mode)
{
static
const
DISPID
elem2_ie11_blacklist
[]
=
{
DISPID_IHTMLELEMENT2_DOSCROLL
,
DISPID_UNKNOWN
};
HTMLDOMNode_init_dispex_info
(
info
,
mode
);
dispex_info_add_interface
(
info
,
IHTMLElement2_tid
,
mode
>=
COMPAT_MODE_IE11
?
elem2_ie11_blacklist
:
NULL
);
if
(
mode
>=
COMPAT_MODE_IE8
)
...
...
dlls/mshtml/htmlnode.c
View file @
d4be45fc
...
...
@@ -436,7 +436,8 @@ static const tid_t HTMLDOMChildrenCollection_iface_tids[] = {
static
dispex_static_data_t
HTMLDOMChildrenCollection_dispex
=
{
&
HTMLDOMChildrenCollection_dispex_vtbl
,
DispDOMChildrenCollection_tid
,
HTMLDOMChildrenCollection_iface_tids
HTMLDOMChildrenCollection_iface_tids
,
HTMLDOMNode_init_dispex_info
};
IHTMLDOMChildrenCollection
*
create_child_collection
(
HTMLDocumentNode
*
doc
,
nsIDOMNodeList
*
nslist
)
...
...
@@ -1401,6 +1402,12 @@ static HRESULT HTMLDOMNode_clone(HTMLDOMNode *This, nsIDOMNode *nsnode, HTMLDOMN
return
create_node
(
This
->
doc
,
nsnode
,
ret
);
}
void
HTMLDOMNode_init_dispex_info
(
dispex_data_t
*
info
,
compat_mode_t
mode
)
{
if
(
mode
>=
COMPAT_MODE_IE9
)
dispex_info_add_interface
(
info
,
IHTMLDOMNode3_tid
,
NULL
);
}
static
const
cpc_entry_t
HTMLDOMNode_cpc
[]
=
{{
NULL
}};
static
const
NodeImplVtbl
HTMLDOMNodeImplVtbl
=
{
...
...
dlls/mshtml/htmltextnode.c
View file @
d4be45fc
...
...
@@ -361,7 +361,8 @@ static const tid_t HTMLDOMTextNode_iface_tids[] = {
static
dispex_static_data_t
HTMLDOMTextNode_dispex
=
{
NULL
,
DispHTMLDOMTextNode_tid
,
HTMLDOMTextNode_iface_tids
HTMLDOMTextNode_iface_tids
,
HTMLDOMNode_init_dispex_info
};
HRESULT
HTMLDOMTextNode_Create
(
HTMLDocumentNode
*
doc
,
nsIDOMNode
*
nsnode
,
HTMLDOMNode
**
node
)
...
...
@@ -377,8 +378,8 @@ HRESULT HTMLDOMTextNode_Create(HTMLDocumentNode *doc, nsIDOMNode *nsnode, HTMLDO
ret
->
IHTMLDOMTextNode_iface
.
lpVtbl
=
&
HTMLDOMTextNodeVtbl
;
ret
->
IHTMLDOMTextNode2_iface
.
lpVtbl
=
&
HTMLDOMTextNode2Vtbl
;
init_dispex
(
&
ret
->
node
.
event_target
.
dispex
,
(
IUnknown
*
)
&
ret
->
IHTMLDOMTextNode_iface
,
&
HTMLDOMTextNode_dispex
);
init_dispex
_with_compat_mode
(
&
ret
->
node
.
event_target
.
dispex
,
(
IUnknown
*
)
&
ret
->
IHTMLDOMTextNode_iface
,
&
HTMLDOMTextNode_dispex
,
doc
->
document_mode
);
HTMLDOMNode_Init
(
doc
,
&
ret
->
node
,
nsnode
);
...
...
dlls/mshtml/mshtml_private.h
View file @
d4be45fc
...
...
@@ -151,6 +151,7 @@ typedef struct EventTarget EventTarget;
XIID(IHTMLDOMImplementation) \
XIID(IHTMLDOMNode) \
XIID(IHTMLDOMNode2) \
XIID(IHTMLDOMNode3) \
XIID(IHTMLDOMTextNode) \
XIID(IHTMLDOMTextNode2) \
XIID(IHTMLElement) \
...
...
@@ -1039,6 +1040,7 @@ void HTMLFrameBase_Init(HTMLFrameBase*,HTMLDocumentNode*,nsIDOMHTMLElement*,disp
HRESULT
HTMLDOMNode_QI
(
HTMLDOMNode
*
,
REFIID
,
void
**
)
DECLSPEC_HIDDEN
;
void
HTMLDOMNode_destructor
(
HTMLDOMNode
*
)
DECLSPEC_HIDDEN
;
void
HTMLDOMNode_init_dispex_info
(
dispex_data_t
*
,
compat_mode_t
)
DECLSPEC_HIDDEN
;
HRESULT
HTMLElement_QI
(
HTMLDOMNode
*
,
REFIID
,
void
**
)
DECLSPEC_HIDDEN
;
void
HTMLElement_destructor
(
HTMLDOMNode
*
)
DECLSPEC_HIDDEN
;
...
...
dlls/mshtml/tests/documentmode.js
View file @
d4be45fc
...
...
@@ -32,6 +32,8 @@ function test_elem_props() {
test_exposed
(
"doScroll"
,
v
<
11
);
test_exposed
(
"querySelectorAll"
,
v
>=
8
);
test_exposed
(
"textContent"
,
v
>=
9
);
test_exposed
(
"prefix"
,
v
>=
9
);
next_test
();
}
...
...
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