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
fe5860e4
Commit
fe5860e4
authored
Mar 16, 2021
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 16, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Initialize HTMLDOMChildrenCollection object with compat mode.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c4fe86da
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
34 deletions
+34
-34
htmldoc.c
dlls/mshtml/htmldoc.c
+7
-7
htmlelem.c
dlls/mshtml/htmlelem.c
+7
-7
htmlnode.c
dlls/mshtml/htmlnode.c
+19
-19
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-1
No files found.
dlls/mshtml/htmldoc.c
View file @
fe5860e4
...
...
@@ -4349,21 +4349,21 @@ static HRESULT WINAPI DocumentSelector_querySelectorAll(IDocumentSelector *iface
HTMLDocument
*
This
=
impl_from_IDocumentSelector
(
iface
);
nsIDOMNodeList
*
node_list
;
nsAString
nsstr
;
nsresult
ns
res
;
HRESULT
h
res
;
TRACE
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_w
(
v
),
pel
);
nsAString_InitDepend
(
&
nsstr
,
v
);
nsres
=
nsIDOMHTMLDocument_QuerySelectorAll
(
This
->
doc_node
->
nsdoc
,
&
nsstr
,
&
node_list
);
hres
=
map_nsresult
(
nsIDOMHTMLDocument_QuerySelectorAll
(
This
->
doc_node
->
nsdoc
,
&
nsstr
,
&
node_list
)
);
nsAString_Finish
(
&
nsstr
);
if
(
NS_FAILED
(
ns
res
))
{
ERR
(
"QuerySelectorAll failed: %08x
\n
"
,
ns
res
);
return
E_FAIL
;
if
(
FAILED
(
h
res
))
{
ERR
(
"QuerySelectorAll failed: %08x
\n
"
,
h
res
);
return
hres
;
}
*
pel
=
create_child_collection
(
node_list
);
hres
=
create_child_collection
(
node_list
,
dispex_compat_mode
(
&
This
->
doc_node
->
node
.
event_target
.
dispex
),
pel
);
nsIDOMNodeList_Release
(
node_list
);
return
*
pel
?
S_OK
:
E_OUTOFMEMORY
;
return
hres
;
}
static
const
IDocumentSelectorVtbl
DocumentSelectorVtbl
=
{
...
...
dlls/mshtml/htmlelem.c
View file @
fe5860e4
...
...
@@ -5740,7 +5740,7 @@ static HRESULT WINAPI ElementSelector_querySelectorAll(IElementSelector *iface,
HTMLElement
*
This
=
impl_from_IElementSelector
(
iface
);
nsIDOMNodeList
*
node_list
;
nsAString
nsstr
;
nsresult
ns
res
;
HRESULT
h
res
;
TRACE
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_w
(
v
),
pel
);
...
...
@@ -5750,16 +5750,16 @@ static HRESULT WINAPI ElementSelector_querySelectorAll(IElementSelector *iface,
}
nsAString_InitDepend
(
&
nsstr
,
v
);
nsres
=
nsIDOMElement_QuerySelectorAll
(
This
->
dom_element
,
&
nsstr
,
&
node_list
);
hres
=
map_nsresult
(
nsIDOMElement_QuerySelectorAll
(
This
->
dom_element
,
&
nsstr
,
&
node_list
)
);
nsAString_Finish
(
&
nsstr
);
if
(
NS_FAILED
(
ns
res
))
{
ERR
(
"QuerySelectorAll failed: %08x
\n
"
,
ns
res
);
return
E_FAIL
;
if
(
FAILED
(
h
res
))
{
ERR
(
"QuerySelectorAll failed: %08x
\n
"
,
h
res
);
return
hres
;
}
*
pel
=
create_child_collection
(
node_list
);
hres
=
create_child_collection
(
node_list
,
dispex_compat_mode
(
&
This
->
node
.
event_target
.
dispex
),
pel
);
nsIDOMNodeList_Release
(
node_list
);
return
*
pel
?
S_OK
:
E_OUTOFMEMORY
;
return
hres
;
}
static
const
IElementSelectorVtbl
ElementSelectorVtbl
=
{
...
...
dlls/mshtml/htmlnode.c
View file @
fe5860e4
...
...
@@ -436,24 +436,24 @@ static dispex_static_data_t HTMLDOMChildrenCollection_dispex = {
HTMLDOMNode_init_dispex_info
};
IHTMLDOMChildrenCollection
*
create_child_collection
(
nsIDOMNodeList
*
nslis
t
)
HRESULT
create_child_collection
(
nsIDOMNodeList
*
nslist
,
compat_mode_t
compat_mode
,
IHTMLDOMChildrenCollection
**
re
t
)
{
HTMLDOMChildrenCollection
*
ret
;
HTMLDOMChildrenCollection
*
collection
;
ret
=
heap_alloc_zero
(
sizeof
(
*
ret
));
if
(
!
ret
)
return
NULL
;
if
(
!
(
collection
=
heap_alloc_zero
(
sizeof
(
*
collection
))))
return
E_OUTOFMEMORY
;
ret
->
IHTMLDOMChildrenCollection_iface
.
lpVtbl
=
&
HTMLDOMChildrenCollectionVtbl
;
ret
->
ref
=
1
;
collection
->
IHTMLDOMChildrenCollection_iface
.
lpVtbl
=
&
HTMLDOMChildrenCollectionVtbl
;
collection
->
ref
=
1
;
nsIDOMNodeList_AddRef
(
nslist
);
ret
->
nslist
=
nslist
;
collection
->
nslist
=
nslist
;
init_dispex
(
&
ret
->
dispex
,
(
IUnknown
*
)
&
ret
->
IHTMLDOMChildrenCollection_iface
,
&
HTMLDOMChildrenCollection_dispex
);
init_dispex
_with_compat_mode
(
&
collection
->
dispex
,
(
IUnknown
*
)
&
collection
->
IHTMLDOMChildrenCollection_iface
,
&
HTMLDOMChildrenCollection_dispex
,
compat_mode
);
return
&
ret
->
IHTMLDOMChildrenCollection_iface
;
*
ret
=
&
collection
->
IHTMLDOMChildrenCollection_iface
;
return
S_OK
;
}
static
inline
HTMLDOMNode
*
impl_from_IHTMLDOMNode
(
IHTMLDOMNode
*
iface
)
...
...
@@ -611,20 +611,20 @@ static HRESULT WINAPI HTMLDOMNode_get_childNodes(IHTMLDOMNode *iface, IDispatch
{
HTMLDOMNode
*
This
=
impl_from_IHTMLDOMNode
(
iface
);
nsIDOMNodeList
*
nslist
;
nsresult
ns
res
;
HRESULT
h
res
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
nsres
=
nsIDOMNode_GetChildNodes
(
This
->
nsnode
,
&
nslist
);
if
(
NS_FAILED
(
ns
res
))
{
ERR
(
"GetChildNodes failed: %08x
\n
"
,
ns
res
);
return
E_FAIL
;
hres
=
map_nsresult
(
nsIDOMNode_GetChildNodes
(
This
->
nsnode
,
&
nslist
)
);
if
(
FAILED
(
h
res
))
{
ERR
(
"GetChildNodes failed: %08x
\n
"
,
h
res
);
return
hres
;
}
*
p
=
(
IDispatch
*
)
create_child_collection
(
nslist
);
hres
=
create_child_collection
(
nslist
,
dispex_compat_mode
(
&
This
->
event_target
.
dispex
),
(
IHTMLDOMChildrenCollection
**
)
p
);
nsIDOMNodeList_Release
(
nslist
);
return
*
p
?
S_OK
:
E_OUTOFMEMORY
;
return
hres
;
}
static
HRESULT
WINAPI
HTMLDOMNode_get_attributes
(
IHTMLDOMNode
*
iface
,
IDispatch
**
p
)
...
...
dlls/mshtml/mshtml_private.h
View file @
fe5860e4
...
...
@@ -1143,7 +1143,7 @@ HRESULT wrap_iface(IUnknown*,IUnknown*,IUnknown**) DECLSPEC_HIDDEN;
IHTMLElementCollection
*
create_all_collection
(
HTMLDOMNode
*
,
BOOL
)
DECLSPEC_HIDDEN
;
IHTMLElementCollection
*
create_collection_from_nodelist
(
nsIDOMNodeList
*
,
compat_mode_t
)
DECLSPEC_HIDDEN
;
IHTMLElementCollection
*
create_collection_from_htmlcol
(
nsIDOMHTMLCollection
*
,
compat_mode_t
)
DECLSPEC_HIDDEN
;
IHTMLDOMChildrenCollection
*
create_child_collection
(
nsIDOMNodeList
*
)
DECLSPEC_HIDDEN
;
HRESULT
create_child_collection
(
nsIDOMNodeList
*
,
compat_mode_t
,
IHTMLDOMChildrenCollection
*
*
)
DECLSPEC_HIDDEN
;
HRESULT
attr_value_to_string
(
VARIANT
*
)
DECLSPEC_HIDDEN
;
HRESULT
get_elem_attr_value_by_dispid
(
HTMLElement
*
,
DISPID
,
VARIANT
*
)
DECLSPEC_HIDDEN
;
...
...
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