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
7c478bf7
Commit
7c478bf7
authored
Nov 17, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 17, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added put_fontFamily implementation.
parent
5a9980e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
2 deletions
+31
-2
htmlstyle.c
dlls/mshtml/htmlstyle.c
+31
-2
No files found.
dlls/mshtml/htmlstyle.c
View file @
7c478bf7
...
@@ -46,6 +46,33 @@ typedef struct {
...
@@ -46,6 +46,33 @@ typedef struct {
#define HTMLSTYLE(x) ((IHTMLStyle*) &(x)->lpHTMLStyleVtbl);
#define HTMLSTYLE(x) ((IHTMLStyle*) &(x)->lpHTMLStyleVtbl);
static
const
WCHAR
attrFontFamily
[]
=
{
'f'
,
'o'
,
'n'
,
't'
,
'-'
,
'f'
,
'a'
,
'm'
,
'i'
,
'l'
,
'y'
,
0
};
static
HRESULT
set_style_attr
(
HTMLStyle
*
This
,
LPCWSTR
name
,
LPCWSTR
value
)
{
nsAString
str_name
,
str_value
,
str_empty
;
nsresult
nsres
;
static
const
PRUnichar
wszEmpty
[]
=
{
0
};
TRACE
(
"(%p)->(%s %s)
\n
"
,
This
,
debugstr_w
(
name
),
debugstr_w
(
value
));
nsAString_Init
(
&
str_name
,
name
);
nsAString_Init
(
&
str_value
,
value
);
nsAString_Init
(
&
str_empty
,
wszEmpty
);
nsres
=
nsIDOMCSSStyleDeclaration_SetProperty
(
This
->
nsstyle
,
&
str_name
,
&
str_value
,
&
str_empty
);
if
(
NS_FAILED
(
nsres
))
ERR
(
"SetProperty failed: %08x
\n
"
,
nsres
);
nsAString_Finish
(
&
str_name
);
nsAString_Finish
(
&
str_value
);
nsAString_Finish
(
&
str_empty
);
return
S_OK
;
}
#define HTMLSTYLE_THIS(iface) DEFINE_THIS(HTMLStyle, HTMLStyle, iface)
#define HTMLSTYLE_THIS(iface) DEFINE_THIS(HTMLStyle, HTMLStyle, iface)
static
HRESULT
WINAPI
HTMLStyle_QueryInterface
(
IHTMLStyle
*
iface
,
REFIID
riid
,
void
**
ppv
)
static
HRESULT
WINAPI
HTMLStyle_QueryInterface
(
IHTMLStyle
*
iface
,
REFIID
riid
,
void
**
ppv
)
...
@@ -135,8 +162,10 @@ static HRESULT WINAPI HTMLStyle_Invoke(IHTMLStyle *iface, DISPID dispIdMember,
...
@@ -135,8 +162,10 @@ static HRESULT WINAPI HTMLStyle_Invoke(IHTMLStyle *iface, DISPID dispIdMember,
static
HRESULT
WINAPI
HTMLStyle_put_fontFamily
(
IHTMLStyle
*
iface
,
BSTR
v
)
static
HRESULT
WINAPI
HTMLStyle_put_fontFamily
(
IHTMLStyle
*
iface
,
BSTR
v
)
{
{
HTMLStyle
*
This
=
HTMLSTYLE_THIS
(
iface
);
HTMLStyle
*
This
=
HTMLSTYLE_THIS
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
set_style_attr
(
This
,
attrFontFamily
,
v
);
}
}
static
HRESULT
WINAPI
HTMLStyle_get_fontFamily
(
IHTMLStyle
*
iface
,
BSTR
*
p
)
static
HRESULT
WINAPI
HTMLStyle_get_fontFamily
(
IHTMLStyle
*
iface
,
BSTR
*
p
)
...
...
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