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
1b2eb0d8
Commit
1b2eb0d8
authored
Sep 19, 2023
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Sep 19, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use the dispex's query_interface for DocumentType nodes.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
bbd9c41a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
htmldoc.c
dlls/mshtml/htmldoc.c
+11
-12
No files found.
dlls/mshtml/htmldoc.c
View file @
1b2eb0d8
...
...
@@ -295,16 +295,6 @@ static inline DocumentType *DocumentType_from_DispatchEx(DispatchEx *iface)
return
CONTAINING_RECORD
(
iface
,
DocumentType
,
node
.
event_target
.
dispex
);
}
static
void
*
DocumentType_QI
(
HTMLDOMNode
*
iface
,
REFIID
riid
)
{
DocumentType
*
This
=
DocumentType_from_HTMLDOMNode
(
iface
);
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
)
||
IsEqualGUID
(
&
IID_IDispatch
,
riid
)
||
IsEqualGUID
(
&
IID_IDOMDocumentType
,
riid
))
return
&
This
->
IDOMDocumentType_iface
;
return
HTMLDOMNode_QI
(
&
This
->
node
,
riid
);
}
static
HRESULT
DocumentType_clone
(
HTMLDOMNode
*
iface
,
nsIDOMNode
*
nsnode
,
HTMLDOMNode
**
ret
)
{
DocumentType
*
This
=
DocumentType_from_HTMLDOMNode
(
iface
);
...
...
@@ -315,11 +305,20 @@ static HRESULT DocumentType_clone(HTMLDOMNode *iface, nsIDOMNode *nsnode, HTMLDO
static
const
cpc_entry_t
DocumentType_cpc
[]
=
{{
NULL
}};
static
const
NodeImplVtbl
DocumentTypeImplVtbl
=
{
.
qi
=
DocumentType_QI
,
.
cpc_entries
=
DocumentType_cpc
,
.
clone
=
DocumentType_clone
};
static
void
*
DocumentType_query_interface
(
DispatchEx
*
dispex
,
REFIID
riid
)
{
DocumentType
*
This
=
DocumentType_from_DispatchEx
(
dispex
);
if
(
IsEqualGUID
(
&
IID_IDOMDocumentType
,
riid
))
return
&
This
->
IDOMDocumentType_iface
;
return
HTMLDOMNode_QI
(
&
This
->
node
,
riid
);
}
static
nsISupports
*
DocumentType_get_gecko_target
(
DispatchEx
*
dispex
)
{
DocumentType
*
This
=
DocumentType_from_DispatchEx
(
dispex
);
...
...
@@ -355,7 +354,7 @@ static IHTMLEventObj *DocumentType_set_current_event(DispatchEx *dispex, IHTMLEv
static
const
event_target_vtbl_t
DocumentType_event_target_vtbl
=
{
{
.
query_interface
=
HTMLDOMNod
e_query_interface
,
.
query_interface
=
DocumentTyp
e_query_interface
,
.
destructor
=
HTMLDOMNode_destructor
,
.
traverse
=
HTMLDOMNode_traverse
,
.
unlink
=
HTMLDOMNode_unlink
...
...
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