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
40bf2f0e
Commit
40bf2f0e
authored
Jan 04, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 04, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: COM cleanup for the IHTMLStyle4 iface.
parent
0ed90782
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
17 deletions
+18
-17
htmlstyle.c
dlls/mshtml/htmlstyle.c
+1
-1
htmlstyle.h
dlls/mshtml/htmlstyle.h
+1
-3
htmlstyle3.c
dlls/mshtml/htmlstyle3.c
+16
-13
No files found.
dlls/mshtml/htmlstyle.c
View file @
40bf2f0e
...
@@ -579,7 +579,7 @@ static HRESULT WINAPI HTMLStyle_QueryInterface(IHTMLStyle *iface, REFIID riid, v
...
@@ -579,7 +579,7 @@ static HRESULT WINAPI HTMLStyle_QueryInterface(IHTMLStyle *iface, REFIID riid, v
*
ppv
=
&
This
->
IHTMLStyle3_iface
;
*
ppv
=
&
This
->
IHTMLStyle3_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLStyle4
,
riid
))
{
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLStyle4
,
riid
))
{
TRACE
(
"(%p)->(IID_IHTMLStyle4 %p)
\n
"
,
This
,
ppv
);
TRACE
(
"(%p)->(IID_IHTMLStyle4 %p)
\n
"
,
This
,
ppv
);
*
ppv
=
HTMLSTYLE4
(
This
)
;
*
ppv
=
&
This
->
IHTMLStyle4_iface
;
}
else
if
(
dispex_query_interface
(
&
This
->
dispex
,
riid
,
ppv
))
{
}
else
if
(
dispex_query_interface
(
&
This
->
dispex
,
riid
,
ppv
))
{
return
*
ppv
?
S_OK
:
E_NOINTERFACE
;
return
*
ppv
?
S_OK
:
E_NOINTERFACE
;
}
}
...
...
dlls/mshtml/htmlstyle.h
View file @
40bf2f0e
...
@@ -21,15 +21,13 @@ struct HTMLStyle {
...
@@ -21,15 +21,13 @@ struct HTMLStyle {
IHTMLStyle
IHTMLStyle_iface
;
IHTMLStyle
IHTMLStyle_iface
;
IHTMLStyle2
IHTMLStyle2_iface
;
IHTMLStyle2
IHTMLStyle2_iface
;
IHTMLStyle3
IHTMLStyle3_iface
;
IHTMLStyle3
IHTMLStyle3_iface
;
const
IHTMLStyle4Vtbl
*
lpHTMLStyle4Vtbl
;
IHTMLStyle4
IHTMLStyle4_iface
;
LONG
ref
;
LONG
ref
;
nsIDOMCSSStyleDeclaration
*
nsstyle
;
nsIDOMCSSStyleDeclaration
*
nsstyle
;
};
};
#define HTMLSTYLE4(x) ((IHTMLStyle4*) &(x)->lpHTMLStyle4Vtbl)
/* NOTE: Make sure to keep in sync with style_tbl in htmlstyle.c */
/* NOTE: Make sure to keep in sync with style_tbl in htmlstyle.c */
typedef
enum
{
typedef
enum
{
STYLEID_BACKGROUND
,
STYLEID_BACKGROUND
,
...
...
dlls/mshtml/htmlstyle3.c
View file @
40bf2f0e
...
@@ -355,39 +355,42 @@ static const IHTMLStyle3Vtbl HTMLStyle3Vtbl = {
...
@@ -355,39 +355,42 @@ static const IHTMLStyle3Vtbl HTMLStyle3Vtbl = {
/*
/*
* IHTMLStyle4 Interface
* IHTMLStyle4 Interface
*/
*/
#define HTMLSTYLE4_THIS(iface) DEFINE_THIS(HTMLStyle, HTMLStyle4, iface)
static
inline
HTMLStyle
*
impl_from_IHTMLStyle4
(
IHTMLStyle4
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
HTMLStyle
,
IHTMLStyle4_iface
);
}
static
HRESULT
WINAPI
HTMLStyle4_QueryInterface
(
IHTMLStyle4
*
iface
,
REFIID
riid
,
void
**
ppv
)
static
HRESULT
WINAPI
HTMLStyle4_QueryInterface
(
IHTMLStyle4
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
{
HTMLStyle
*
This
=
HTMLSTYLE4_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle4
(
iface
);
return
IHTMLStyle_QueryInterface
(
&
This
->
IHTMLStyle_iface
,
riid
,
ppv
);
return
IHTMLStyle_QueryInterface
(
&
This
->
IHTMLStyle_iface
,
riid
,
ppv
);
}
}
static
ULONG
WINAPI
HTMLStyle4_AddRef
(
IHTMLStyle4
*
iface
)
static
ULONG
WINAPI
HTMLStyle4_AddRef
(
IHTMLStyle4
*
iface
)
{
{
HTMLStyle
*
This
=
HTMLSTYLE4_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle4
(
iface
);
return
IHTMLStyle_AddRef
(
&
This
->
IHTMLStyle_iface
);
return
IHTMLStyle_AddRef
(
&
This
->
IHTMLStyle_iface
);
}
}
static
ULONG
WINAPI
HTMLStyle4_Release
(
IHTMLStyle4
*
iface
)
static
ULONG
WINAPI
HTMLStyle4_Release
(
IHTMLStyle4
*
iface
)
{
{
HTMLStyle
*
This
=
HTMLSTYLE4_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle4
(
iface
);
return
IHTMLStyle_Release
(
&
This
->
IHTMLStyle_iface
);
return
IHTMLStyle_Release
(
&
This
->
IHTMLStyle_iface
);
}
}
static
HRESULT
WINAPI
HTMLStyle4_GetTypeInfoCount
(
IHTMLStyle4
*
iface
,
UINT
*
pctinfo
)
static
HRESULT
WINAPI
HTMLStyle4_GetTypeInfoCount
(
IHTMLStyle4
*
iface
,
UINT
*
pctinfo
)
{
{
HTMLStyle
*
This
=
HTMLSTYLE4_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle4
(
iface
);
return
IDispatchEx_GetTypeInfoCount
(
&
This
->
dispex
.
IDispatchEx_iface
,
pctinfo
);
return
IDispatchEx_GetTypeInfoCount
(
&
This
->
dispex
.
IDispatchEx_iface
,
pctinfo
);
}
}
static
HRESULT
WINAPI
HTMLStyle4_GetTypeInfo
(
IHTMLStyle4
*
iface
,
UINT
iTInfo
,
static
HRESULT
WINAPI
HTMLStyle4_GetTypeInfo
(
IHTMLStyle4
*
iface
,
UINT
iTInfo
,
LCID
lcid
,
ITypeInfo
**
ppTInfo
)
LCID
lcid
,
ITypeInfo
**
ppTInfo
)
{
{
HTMLStyle
*
This
=
HTMLSTYLE4_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle4
(
iface
);
return
IDispatchEx_GetTypeInfo
(
&
This
->
dispex
.
IDispatchEx_iface
,
iTInfo
,
lcid
,
ppTInfo
);
return
IDispatchEx_GetTypeInfo
(
&
This
->
dispex
.
IDispatchEx_iface
,
iTInfo
,
lcid
,
ppTInfo
);
}
}
...
@@ -395,7 +398,7 @@ static HRESULT WINAPI HTMLStyle4_GetIDsOfNames(IHTMLStyle4 *iface, REFIID riid,
...
@@ -395,7 +398,7 @@ static HRESULT WINAPI HTMLStyle4_GetIDsOfNames(IHTMLStyle4 *iface, REFIID riid,
LPOLESTR
*
rgszNames
,
UINT
cNames
,
LPOLESTR
*
rgszNames
,
UINT
cNames
,
LCID
lcid
,
DISPID
*
rgDispId
)
LCID
lcid
,
DISPID
*
rgDispId
)
{
{
HTMLStyle
*
This
=
HTMLSTYLE4_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle4
(
iface
);
return
IDispatchEx_GetIDsOfNames
(
&
This
->
dispex
.
IDispatchEx_iface
,
riid
,
rgszNames
,
cNames
,
return
IDispatchEx_GetIDsOfNames
(
&
This
->
dispex
.
IDispatchEx_iface
,
riid
,
rgszNames
,
cNames
,
lcid
,
rgDispId
);
lcid
,
rgDispId
);
}
}
...
@@ -404,28 +407,28 @@ static HRESULT WINAPI HTMLStyle4_Invoke(IHTMLStyle4 *iface, DISPID dispIdMember,
...
@@ -404,28 +407,28 @@ static HRESULT WINAPI HTMLStyle4_Invoke(IHTMLStyle4 *iface, DISPID dispIdMember,
REFIID
riid
,
LCID
lcid
,
WORD
wFlags
,
DISPPARAMS
*
pDispParams
,
REFIID
riid
,
LCID
lcid
,
WORD
wFlags
,
DISPPARAMS
*
pDispParams
,
VARIANT
*
pVarResult
,
EXCEPINFO
*
pExcepInfo
,
UINT
*
puArgErr
)
VARIANT
*
pVarResult
,
EXCEPINFO
*
pExcepInfo
,
UINT
*
puArgErr
)
{
{
HTMLStyle
*
This
=
HTMLSTYLE4_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle4
(
iface
);
return
IDispatchEx_Invoke
(
&
This
->
dispex
.
IDispatchEx_iface
,
dispIdMember
,
riid
,
lcid
,
return
IDispatchEx_Invoke
(
&
This
->
dispex
.
IDispatchEx_iface
,
dispIdMember
,
riid
,
lcid
,
wFlags
,
pDispParams
,
pVarResult
,
pExcepInfo
,
puArgErr
);
wFlags
,
pDispParams
,
pVarResult
,
pExcepInfo
,
puArgErr
);
}
}
static
HRESULT
WINAPI
HTMLStyle4_put_textOverflow
(
IHTMLStyle4
*
iface
,
BSTR
v
)
static
HRESULT
WINAPI
HTMLStyle4_put_textOverflow
(
IHTMLStyle4
*
iface
,
BSTR
v
)
{
{
HTMLStyle
*
This
=
HTMLSTYLE4_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle4
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
WINAPI
HTMLStyle4_get_textOverflow
(
IHTMLStyle4
*
iface
,
BSTR
*
p
)
static
HRESULT
WINAPI
HTMLStyle4_get_textOverflow
(
IHTMLStyle4
*
iface
,
BSTR
*
p
)
{
{
HTMLStyle
*
This
=
HTMLSTYLE4_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle4
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
WINAPI
HTMLStyle4_put_minHeight
(
IHTMLStyle4
*
iface
,
VARIANT
v
)
static
HRESULT
WINAPI
HTMLStyle4_put_minHeight
(
IHTMLStyle4
*
iface
,
VARIANT
v
)
{
{
HTMLStyle
*
This
=
HTMLSTYLE4_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle4
(
iface
);
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
...
@@ -434,7 +437,7 @@ static HRESULT WINAPI HTMLStyle4_put_minHeight(IHTMLStyle4 *iface, VARIANT v)
...
@@ -434,7 +437,7 @@ static HRESULT WINAPI HTMLStyle4_put_minHeight(IHTMLStyle4 *iface, VARIANT v)
static
HRESULT
WINAPI
HTMLStyle4_get_minHeight
(
IHTMLStyle4
*
iface
,
VARIANT
*
p
)
static
HRESULT
WINAPI
HTMLStyle4_get_minHeight
(
IHTMLStyle4
*
iface
,
VARIANT
*
p
)
{
{
HTMLStyle
*
This
=
HTMLSTYLE4_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle4
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
...
@@ -458,5 +461,5 @@ static const IHTMLStyle4Vtbl HTMLStyle4Vtbl = {
...
@@ -458,5 +461,5 @@ static const IHTMLStyle4Vtbl HTMLStyle4Vtbl = {
void
HTMLStyle3_Init
(
HTMLStyle
*
This
)
void
HTMLStyle3_Init
(
HTMLStyle
*
This
)
{
{
This
->
IHTMLStyle3_iface
.
lpVtbl
=
&
HTMLStyle3Vtbl
;
This
->
IHTMLStyle3_iface
.
lpVtbl
=
&
HTMLStyle3Vtbl
;
This
->
lpHTMLStyle4
Vtbl
=
&
HTMLStyle4Vtbl
;
This
->
IHTMLStyle4_iface
.
lp
Vtbl
=
&
HTMLStyle4Vtbl
;
}
}
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