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
dec3a9c7
Commit
dec3a9c7
authored
Jan 26, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 26, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use helpers in IHTMLStyle::paddingLeft implementation.
parent
9fc673f4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
24 deletions
+5
-24
htmlstyle.c
dlls/mshtml/htmlstyle.c
+3
-24
style.c
dlls/mshtml/tests/style.c
+2
-0
No files found.
dlls/mshtml/htmlstyle.c
View file @
dec3a9c7
...
...
@@ -1611,39 +1611,18 @@ static HRESULT WINAPI HTMLStyle_put_paddingLeft(IHTMLStyle *iface, VARIANT v)
{
HTMLStyle
*
This
=
impl_from_IHTMLStyle
(
iface
);
TRACE
(
"(%p)->(vt=%d)
\n
"
,
This
,
V_VT
(
&
v
));
switch
(
V_VT
(
&
v
))
{
case
VT_I4
:
{
WCHAR
buf
[
14
];
wsprintfW
(
buf
,
px_formatW
,
V_I4
(
&
v
));
return
set_style_attr
(
This
,
STYLEID_PADDING_LEFT
,
buf
,
0
);
}
case
VT_BSTR
:
return
set_style_attr
(
This
,
STYLEID_PADDING_LEFT
,
V_BSTR
(
&
v
),
0
);
default:
FIXME
(
"unsupported vt=%d
\n
"
,
V_VT
(
&
v
));
}
TRACE
(
"(%p)->(v%d)
\n
"
,
This
,
V_VT
(
&
v
));
return
E_NOTIMPL
;
return
set_nsstyle_attr_var
(
This
->
nsstyle
,
STYLEID_PADDING_LEFT
,
&
v
,
ATTR_FIX_PX
)
;
}
static
HRESULT
WINAPI
HTMLStyle_get_paddingLeft
(
IHTMLStyle
*
iface
,
VARIANT
*
p
)
{
HTMLStyle
*
This
=
impl_from_IHTMLStyle
(
iface
);
BSTR
ret
;
HRESULT
hres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
hres
=
get_style_attr
(
This
,
STYLEID_PADDING_LEFT
,
&
ret
);
if
(
FAILED
(
hres
))
return
hres
;
V_VT
(
p
)
=
VT_BSTR
;
V_BSTR
(
p
)
=
ret
;
return
S_OK
;
return
get_nsstyle_attr_var
(
This
->
nsstyle
,
STYLEID_PADDING_LEFT
,
p
,
0
);
}
static
HRESULT
WINAPI
HTMLStyle_put_padding
(
IHTMLStyle
*
iface
,
BSTR
v
)
...
...
dlls/mshtml/tests/style.c
View file @
dec3a9c7
...
...
@@ -1289,6 +1289,8 @@ static void test_body_style(IHTMLStyle *style)
/* PaddingLeft */
hres
=
IHTMLStyle_get_paddingLeft
(
style
,
&
vDefault
);
ok
(
hres
==
S_OK
,
"get_paddingLeft: %08x
\n
"
,
hres
);
ok
(
V_VT
(
&
vDefault
)
==
VT_BSTR
,
"V_VT(v) = %d
\n
"
,
V_VT
(
&
vDefault
));
ok
(
!
strcmp_wa
(
V_BSTR
(
&
vDefault
),
"1px"
),
"V_BSTR(v) = %s
\n
"
,
wine_dbgstr_w
(
V_BSTR
(
&
vDefault
)));
V_VT
(
&
v
)
=
VT_BSTR
;
V_BSTR
(
&
v
)
=
a2bstr
(
"10"
);
...
...
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