Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
1d428f48
Commit
1d428f48
authored
17 years ago
by
Jacek Caban
Committed by
Alexandre Julliard
17 years ago
Browse files
Options
Downloads
Patches
Plain Diff
mshtml: Added IHTMLStyle::get_fontFamily implementation.
parent
9e302174
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/mshtml/htmlstyle.c
+28
-2
28 additions, 2 deletions
dlls/mshtml/htmlstyle.c
with
28 additions
and
2 deletions
dlls/mshtml/htmlstyle.c
+
28
−
2
View file @
1d428f48
...
...
@@ -77,6 +77,30 @@ static HRESULT set_style_attr(HTMLStyle *This, LPCWSTR name, LPCWSTR value)
return
S_OK
;
}
static
HRESULT
get_style_attr
(
HTMLStyle
*
This
,
LPCWSTR
name
,
BSTR
*
p
)
{
nsAString
str_name
,
str_value
;
const
PRUnichar
*
value
;
nsresult
nsres
;
nsAString_Init
(
&
str_name
,
name
);
nsAString_Init
(
&
str_value
,
NULL
);
nsres
=
nsIDOMCSSStyleDeclaration_GetPropertyValue
(
This
->
nsstyle
,
&
str_name
,
&
str_value
);
if
(
NS_FAILED
(
nsres
))
ERR
(
"SetProperty failed: %08x
\n
"
,
nsres
);
nsAString_GetData
(
&
str_value
,
&
value
,
NULL
);
*
p
=
SysAllocString
(
value
);
nsAString_Finish
(
&
str_name
);
nsAString_Finish
(
&
str_value
);
TRACE
(
"%s -> %s
\n
"
,
debugstr_w
(
name
),
debugstr_w
(
*
p
));
return
S_OK
;
}
#define HTMLSTYLE_THIS(iface) DEFINE_THIS(HTMLStyle, HTMLStyle, iface)
static
HRESULT
WINAPI
HTMLStyle_QueryInterface
(
IHTMLStyle
*
iface
,
REFIID
riid
,
void
**
ppv
)
...
...
@@ -175,8 +199,10 @@ static HRESULT WINAPI HTMLStyle_put_fontFamily(IHTMLStyle *iface, BSTR v)
static
HRESULT
WINAPI
HTMLStyle_get_fontFamily
(
IHTMLStyle
*
iface
,
BSTR
*
p
)
{
HTMLStyle
*
This
=
HTMLSTYLE_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
get_style_attr
(
This
,
attrFontFamily
,
p
);
}
static
HRESULT
WINAPI
HTMLStyle_put_fontStyle
(
IHTMLStyle
*
iface
,
BSTR
v
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment