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
0ed90782
Commit
0ed90782
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 IHTMLStyle3 iface.
parent
6dcff905
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
42 deletions
+44
-42
htmlstyle.c
dlls/mshtml/htmlstyle.c
+1
-1
htmlstyle.h
dlls/mshtml/htmlstyle.h
+1
-2
htmlstyle3.c
dlls/mshtml/htmlstyle3.c
+42
-39
No files found.
dlls/mshtml/htmlstyle.c
View file @
0ed90782
...
...
@@ -576,7 +576,7 @@ static HRESULT WINAPI HTMLStyle_QueryInterface(IHTMLStyle *iface, REFIID riid, v
*
ppv
=
&
This
->
IHTMLStyle2_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLStyle3
,
riid
))
{
TRACE
(
"(%p)->(IID_IHTMLStyle3 %p)
\n
"
,
This
,
ppv
);
*
ppv
=
HTMLSTYLE3
(
This
)
;
*
ppv
=
&
This
->
IHTMLStyle3_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLStyle4
,
riid
))
{
TRACE
(
"(%p)->(IID_IHTMLStyle4 %p)
\n
"
,
This
,
ppv
);
*
ppv
=
HTMLSTYLE4
(
This
);
...
...
dlls/mshtml/htmlstyle.h
View file @
0ed90782
...
...
@@ -20,7 +20,7 @@ struct HTMLStyle {
DispatchEx
dispex
;
IHTMLStyle
IHTMLStyle_iface
;
IHTMLStyle2
IHTMLStyle2_iface
;
const
IHTMLStyle3Vtbl
*
lpHTMLStyle3Vtbl
;
IHTMLStyle3
IHTMLStyle3_iface
;
const
IHTMLStyle4Vtbl
*
lpHTMLStyle4Vtbl
;
LONG
ref
;
...
...
@@ -28,7 +28,6 @@ struct HTMLStyle {
nsIDOMCSSStyleDeclaration
*
nsstyle
;
};
#define HTMLSTYLE3(x) ((IHTMLStyle3*) &(x)->lpHTMLStyle3Vtbl)
#define HTMLSTYLE4(x) ((IHTMLStyle4*) &(x)->lpHTMLStyle4Vtbl)
/* NOTE: Make sure to keep in sync with style_tbl in htmlstyle.c */
...
...
dlls/mshtml/htmlstyle3.c
View file @
0ed90782
...
...
@@ -33,39 +33,42 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
mshtml
);
#define HTMLSTYLE3_THIS(iface) DEFINE_THIS(HTMLStyle, HTMLStyle3, iface)
static
inline
HTMLStyle
*
impl_from_IHTMLStyle3
(
IHTMLStyle3
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
HTMLStyle
,
IHTMLStyle3_iface
);
}
static
HRESULT
WINAPI
HTMLStyle3_QueryInterface
(
IHTMLStyle3
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
HTMLStyle
*
This
=
HTMLSTYLE3_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle3
(
iface
);
return
IHTMLStyle_QueryInterface
(
&
This
->
IHTMLStyle_iface
,
riid
,
ppv
);
}
static
ULONG
WINAPI
HTMLStyle3_AddRef
(
IHTMLStyle3
*
iface
)
{
HTMLStyle
*
This
=
HTMLSTYLE3_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle3
(
iface
);
return
IHTMLStyle_AddRef
(
&
This
->
IHTMLStyle_iface
);
}
static
ULONG
WINAPI
HTMLStyle3_Release
(
IHTMLStyle3
*
iface
)
{
HTMLStyle
*
This
=
HTMLSTYLE3_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle3
(
iface
);
return
IHTMLStyle_Release
(
&
This
->
IHTMLStyle_iface
);
}
static
HRESULT
WINAPI
HTMLStyle3_GetTypeInfoCount
(
IHTMLStyle3
*
iface
,
UINT
*
pctinfo
)
{
HTMLStyle
*
This
=
HTMLSTYLE3_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle3
(
iface
);
return
IDispatchEx_GetTypeInfoCount
(
&
This
->
dispex
.
IDispatchEx_iface
,
pctinfo
);
}
static
HRESULT
WINAPI
HTMLStyle3_GetTypeInfo
(
IHTMLStyle3
*
iface
,
UINT
iTInfo
,
LCID
lcid
,
ITypeInfo
**
ppTInfo
)
{
HTMLStyle
*
This
=
HTMLSTYLE3_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle3
(
iface
);
return
IDispatchEx_GetTypeInfo
(
&
This
->
dispex
.
IDispatchEx_iface
,
iTInfo
,
lcid
,
ppTInfo
);
}
...
...
@@ -73,7 +76,7 @@ static HRESULT WINAPI HTMLStyle3_GetIDsOfNames(IHTMLStyle3 *iface, REFIID riid,
LPOLESTR
*
rgszNames
,
UINT
cNames
,
LCID
lcid
,
DISPID
*
rgDispId
)
{
HTMLStyle
*
This
=
HTMLSTYLE3_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle3
(
iface
);
return
IDispatchEx_GetIDsOfNames
(
&
This
->
dispex
.
IDispatchEx_iface
,
riid
,
rgszNames
,
cNames
,
lcid
,
rgDispId
);
}
...
...
@@ -82,28 +85,28 @@ static HRESULT WINAPI HTMLStyle3_Invoke(IHTMLStyle3 *iface, DISPID dispIdMember,
REFIID
riid
,
LCID
lcid
,
WORD
wFlags
,
DISPPARAMS
*
pDispParams
,
VARIANT
*
pVarResult
,
EXCEPINFO
*
pExcepInfo
,
UINT
*
puArgErr
)
{
HTMLStyle
*
This
=
HTMLSTYLE3_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle3
(
iface
);
return
IDispatchEx_Invoke
(
&
This
->
dispex
.
IDispatchEx_iface
,
dispIdMember
,
riid
,
lcid
,
wFlags
,
pDispParams
,
pVarResult
,
pExcepInfo
,
puArgErr
);
}
static
HRESULT
WINAPI
HTMLStyle3_put_layoutFlow
(
IHTMLStyle3
*
iface
,
BSTR
v
)
{
HTMLStyle
*
This
=
HTMLSTYLE3_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle3
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLStyle3_get_layoutFlow
(
IHTMLStyle3
*
iface
,
BSTR
*
p
)
{
HTMLStyle
*
This
=
HTMLSTYLE3_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle3
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLStyle3_put_zoom
(
IHTMLStyle3
*
iface
,
VARIANT
v
)
{
HTMLStyle
*
This
=
HTMLSTYLE3_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle3
(
iface
);
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
...
...
@@ -118,14 +121,14 @@ static HRESULT WINAPI HTMLStyle3_put_zoom(IHTMLStyle3 *iface, VARIANT v)
static
HRESULT
WINAPI
HTMLStyle3_get_zoom
(
IHTMLStyle3
*
iface
,
VARIANT
*
p
)
{
HTMLStyle
*
This
=
HTMLSTYLE3_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle3
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLStyle3_put_wordWrap
(
IHTMLStyle3
*
iface
,
BSTR
v
)
{
HTMLStyle
*
This
=
HTMLSTYLE3_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle3
(
iface
);
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
...
...
@@ -134,7 +137,7 @@ static HRESULT WINAPI HTMLStyle3_put_wordWrap(IHTMLStyle3 *iface, BSTR v)
static
HRESULT
WINAPI
HTMLStyle3_get_wordWrap
(
IHTMLStyle3
*
iface
,
BSTR
*
p
)
{
HTMLStyle
*
This
=
HTMLSTYLE3_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle3
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
...
...
@@ -143,168 +146,168 @@ static HRESULT WINAPI HTMLStyle3_get_wordWrap(IHTMLStyle3 *iface, BSTR *p)
static
HRESULT
WINAPI
HTMLStyle3_put_textUnderlinePosition
(
IHTMLStyle3
*
iface
,
BSTR
v
)
{
HTMLStyle
*
This
=
HTMLSTYLE3_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle3
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLStyle3_get_textUnderlinePosition
(
IHTMLStyle3
*
iface
,
BSTR
*
p
)
{
HTMLStyle
*
This
=
HTMLSTYLE3_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle3
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLStyle3_put_scrollbarBaseColor
(
IHTMLStyle3
*
iface
,
VARIANT
v
)
{
HTMLStyle
*
This
=
HTMLSTYLE3_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle3
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLStyle3_get_scrollbarBaseColor
(
IHTMLStyle3
*
iface
,
VARIANT
*
p
)
{
HTMLStyle
*
This
=
HTMLSTYLE3_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle3
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLStyle3_put_scrollbarFaceColor
(
IHTMLStyle3
*
iface
,
VARIANT
v
)
{
HTMLStyle
*
This
=
HTMLSTYLE3_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle3
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLStyle3_get_scrollbarFaceColor
(
IHTMLStyle3
*
iface
,
VARIANT
*
p
)
{
HTMLStyle
*
This
=
HTMLSTYLE3_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle3
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLStyle3_put_scrollbar3dLightColor
(
IHTMLStyle3
*
iface
,
VARIANT
v
)
{
HTMLStyle
*
This
=
HTMLSTYLE3_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle3
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLStyle3_get_scrollbar3dLightColor
(
IHTMLStyle3
*
iface
,
VARIANT
*
p
)
{
HTMLStyle
*
This
=
HTMLSTYLE3_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle3
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLStyle3_put_scrollbarShadowColor
(
IHTMLStyle3
*
iface
,
VARIANT
v
)
{
HTMLStyle
*
This
=
HTMLSTYLE3_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle3
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLStyle3_get_scrollbarShadowColor
(
IHTMLStyle3
*
iface
,
VARIANT
*
p
)
{
HTMLStyle
*
This
=
HTMLSTYLE3_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle3
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLStyle3_put_scrollbarHighlightColor
(
IHTMLStyle3
*
iface
,
VARIANT
v
)
{
HTMLStyle
*
This
=
HTMLSTYLE3_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle3
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLStyle3_get_scrollbarHighlightColor
(
IHTMLStyle3
*
iface
,
VARIANT
*
p
)
{
HTMLStyle
*
This
=
HTMLSTYLE3_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle3
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLStyle3_put_scrollbarDarkShadowColor
(
IHTMLStyle3
*
iface
,
VARIANT
v
)
{
HTMLStyle
*
This
=
HTMLSTYLE3_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle3
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLStyle3_get_scrollbarDarkShadowColor
(
IHTMLStyle3
*
iface
,
VARIANT
*
p
)
{
HTMLStyle
*
This
=
HTMLSTYLE3_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle3
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLStyle3_put_scrollbarArrowColor
(
IHTMLStyle3
*
iface
,
VARIANT
v
)
{
HTMLStyle
*
This
=
HTMLSTYLE3_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle3
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLStyle3_get_scrollbarArrowColor
(
IHTMLStyle3
*
iface
,
VARIANT
*
p
)
{
HTMLStyle
*
This
=
HTMLSTYLE3_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle3
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLStyle3_put_scrollbarTrackColor
(
IHTMLStyle3
*
iface
,
VARIANT
v
)
{
HTMLStyle
*
This
=
HTMLSTYLE3_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle3
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLStyle3_get_scrollbarTrackColor
(
IHTMLStyle3
*
iface
,
VARIANT
*
p
)
{
HTMLStyle
*
This
=
HTMLSTYLE3_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle3
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLStyle3_put_writingMode
(
IHTMLStyle3
*
iface
,
BSTR
v
)
{
HTMLStyle
*
This
=
HTMLSTYLE3_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle3
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLStyle3_get_writingMode
(
IHTMLStyle3
*
iface
,
BSTR
*
p
)
{
HTMLStyle
*
This
=
HTMLSTYLE3_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle3
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLStyle3_put_textAlignLast
(
IHTMLStyle3
*
iface
,
BSTR
v
)
{
HTMLStyle
*
This
=
HTMLSTYLE3_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle3
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLStyle3_get_textAlignLast
(
IHTMLStyle3
*
iface
,
BSTR
*
p
)
{
HTMLStyle
*
This
=
HTMLSTYLE3_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle3
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLStyle3_put_textKashidaSpace
(
IHTMLStyle3
*
iface
,
VARIANT
v
)
{
HTMLStyle
*
This
=
HTMLSTYLE3_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle3
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLStyle3_get_textKashidaSpace
(
IHTMLStyle3
*
iface
,
VARIANT
*
p
)
{
HTMLStyle
*
This
=
HTMLSTYLE3_THIS
(
iface
);
HTMLStyle
*
This
=
impl_from_IHTMLStyle3
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
...
...
@@ -454,6 +457,6 @@ static const IHTMLStyle4Vtbl HTMLStyle4Vtbl = {
void
HTMLStyle3_Init
(
HTMLStyle
*
This
)
{
This
->
lpHTMLStyle3
Vtbl
=
&
HTMLStyle3Vtbl
;
This
->
IHTMLStyle3_iface
.
lp
Vtbl
=
&
HTMLStyle3Vtbl
;
This
->
lpHTMLStyle4Vtbl
=
&
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