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
b9db8e0d
Commit
b9db8e0d
authored
Sep 08, 2023
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Sep 08, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use query_interface in the dispex vtbl for CSS Styles.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
fcde70d9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
15 deletions
+18
-15
htmlstyle.c
dlls/mshtml/htmlstyle.c
+18
-15
No files found.
dlls/mshtml/htmlstyle.c
View file @
b9db8e0d
...
...
@@ -4735,24 +4735,12 @@ static HRESULT WINAPI HTMLCSSStyleDeclaration_QueryInterface(IHTMLCSSStyleDeclar
{
CSSStyle
*
This
=
impl_from_IHTMLCSSStyleDeclaration
(
iface
);
TRACE
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_mshtml_guid
(
riid
),
ppv
);
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
))
{
*
ppv
=
&
This
->
IHTMLCSSStyleDeclaration_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLCSSStyleDeclaration
,
riid
))
{
*
ppv
=
&
This
->
IHTMLCSSStyleDeclaration_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLCSSStyleDeclaration2
,
riid
))
{
*
ppv
=
&
This
->
IHTMLCSSStyleDeclaration2_iface
;
}
else
if
(
dispex_query_interface
(
&
This
->
dispex
,
riid
,
ppv
))
{
if
(
dispex_query_interface
(
&
This
->
dispex
,
riid
,
ppv
))
return
*
ppv
?
S_OK
:
E_NOINTERFACE
;
}
else
if
(
!
This
->
qi
||
!
(
*
ppv
=
This
->
qi
(
This
,
riid
)))
{
*
ppv
=
NULL
;
WARN
(
"unsupported iface %s
\n
"
,
debugstr_mshtml_guid
(
riid
)
);
WARN
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_mshtml_guid
(
riid
),
ppv
);
return
E_NOINTERFACE
;
}
IUnknown_AddRef
((
IUnknown
*
)
*
ppv
);
return
S_OK
;
}
static
ULONG
WINAPI
HTMLCSSStyleDeclaration_AddRef
(
IHTMLCSSStyleDeclaration
*
iface
)
...
...
@@ -9962,6 +9950,20 @@ static inline CSSStyle *impl_from_DispatchEx(DispatchEx *dispex)
return
CONTAINING_RECORD
(
dispex
,
CSSStyle
,
dispex
);
}
static
void
*
CSSStyle_query_interface
(
DispatchEx
*
dispex
,
REFIID
riid
)
{
CSSStyle
*
This
=
impl_from_DispatchEx
(
dispex
);
if
(
IsEqualGUID
(
&
IID_IHTMLCSSStyleDeclaration
,
riid
))
return
&
This
->
IHTMLCSSStyleDeclaration_iface
;
if
(
IsEqualGUID
(
&
IID_IHTMLCSSStyleDeclaration2
,
riid
))
return
&
This
->
IHTMLCSSStyleDeclaration2_iface
;
if
(
This
->
qi
)
return
This
->
qi
(
This
,
riid
);
return
NULL
;
}
static
void
CSSStyle_traverse
(
DispatchEx
*
dispex
,
nsCycleCollectionTraversalCallback
*
cb
)
{
CSSStyle
*
This
=
impl_from_DispatchEx
(
dispex
);
...
...
@@ -10009,6 +10011,7 @@ void CSSStyle_init_dispex_info(dispex_data_t *info, compat_mode_t mode)
}
const
dispex_static_data_vtbl_t
CSSStyle_dispex_vtbl
=
{
.
query_interface
=
CSSStyle_query_interface
,
.
destructor
=
CSSStyle_destructor
,
.
traverse
=
CSSStyle_traverse
,
.
unlink
=
CSSStyle_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