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
ed9b0f75
Commit
ed9b0f75
authored
Aug 11, 2014
by
Zhenbo Li
Committed by
Alexandre Julliard
Aug 11, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLStyleElement::lineHeight property.
parent
aa41321f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
4 deletions
+30
-4
htmlstyle.c
dlls/mshtml/htmlstyle.c
+8
-4
style.c
dlls/mshtml/tests/style.c
+22
-0
No files found.
dlls/mshtml/htmlstyle.c
View file @
ed9b0f75
...
...
@@ -1507,15 +1507,19 @@ static HRESULT WINAPI HTMLStyle_get_textIndent(IHTMLStyle *iface, VARIANT *p)
static
HRESULT
WINAPI
HTMLStyle_put_lineHeight
(
IHTMLStyle
*
iface
,
VARIANT
v
)
{
HTMLStyle
*
This
=
impl_from_IHTMLStyle
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
return
set_nsstyle_attr_var
(
This
->
nsstyle
,
STYLEID_LINE_HEIGHT
,
&
v
,
0
);
}
static
HRESULT
WINAPI
HTMLStyle_get_lineHeight
(
IHTMLStyle
*
iface
,
VARIANT
*
p
)
{
HTMLStyle
*
This
=
impl_from_IHTMLStyle
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
get_nsstyle_attr_var
(
This
->
nsstyle
,
STYLEID_LINE_HEIGHT
,
p
,
0
);
}
static
HRESULT
WINAPI
HTMLStyle_put_marginTop
(
IHTMLStyle
*
iface
,
VARIANT
v
)
...
...
dlls/mshtml/tests/style.c
View file @
ed9b0f75
...
...
@@ -742,6 +742,28 @@ static void test_body_style(IHTMLStyle *style)
todo_wine
ok
(
!
strcmp_wa
(
V_BSTR
(
&
v
),
"#00fdfd"
),
"V_BSTR(color) = %s
\n
"
,
wine_dbgstr_w
(
V_BSTR
(
&
v
)));
V_VT
(
&
v
)
=
VT_I4
;
V_I4
(
&
v
)
=
3
;
hres
=
IHTMLStyle_put_lineHeight
(
style
,
v
);
ok
(
hres
==
S_OK
,
"put_lineHeight failed: %08x
\n
"
,
hres
);
hres
=
IHTMLStyle_get_lineHeight
(
style
,
&
v
);
ok
(
hres
==
S_OK
,
"get_lineHeight failed: %08x
\n
"
,
hres
);
ok
(
V_VT
(
&
v
)
==
VT_BSTR
,
"V_VT(lineHeight) = %d, expect VT_BSTR
\n
"
,
V_VT
(
&
v
));
ok
(
!
strcmp_wa
(
V_BSTR
(
&
v
),
"3"
),
"V_BSTR(lineHeight) = %s
\n
"
,
wine_dbgstr_w
(
V_BSTR
(
&
v
)));
V_VT
(
&
v
)
=
VT_BSTR
;
V_BSTR
(
&
v
)
=
a2bstr
(
"300%"
);
hres
=
IHTMLStyle_put_lineHeight
(
style
,
v
);
ok
(
hres
==
S_OK
,
"put_lineHeight failed: %08x
\n
"
,
hres
);
VariantClear
(
&
v
);
hres
=
IHTMLStyle_get_lineHeight
(
style
,
&
v
);
ok
(
hres
==
S_OK
,
"get_lineHeight failed: %08x
\n
"
,
hres
);
ok
(
V_VT
(
&
v
)
==
VT_BSTR
,
"V_VT(lineHeight) = %d, expect VT_BSTR
\n
"
,
V_VT
(
&
v
));
ok
(
!
strcmp_wa
(
V_BSTR
(
&
v
),
"300%"
),
"V_BSTR(lineHeight) = %s
\n
"
,
wine_dbgstr_w
(
V_BSTR
(
&
v
)));
VariantClear
(
&
v
);
b
=
0xfefe
;
hres
=
IHTMLStyle_get_textDecorationUnderline
(
style
,
&
b
);
ok
(
hres
==
S_OK
,
"get_textDecorationUnderline failed: %08x
\n
"
,
hres
);
...
...
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