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
d898f27a
Commit
d898f27a
authored
Sep 04, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 04, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLStyle::put_pixelWidth implementation.
parent
f63da13c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
2 deletions
+23
-2
htmlstyle.c
dlls/mshtml/htmlstyle.c
+13
-2
style.c
dlls/mshtml/tests/style.c
+10
-0
No files found.
dlls/mshtml/htmlstyle.c
View file @
d898f27a
...
...
@@ -594,6 +594,15 @@ static inline HRESULT set_style_pos(HTMLStyle *This, styleid_t sid, float value)
return
set_style_attr
(
This
,
sid
,
szValue
,
0
);
}
static
HRESULT
set_style_pxattr
(
nsIDOMCSSStyleDeclaration
*
nsstyle
,
styleid_t
sid
,
LONG
value
)
{
WCHAR
value_str
[
16
];
sprintfW
(
value_str
,
px_formatW
,
value
);
return
set_nsstyle_attr
(
nsstyle
,
sid
,
value_str
,
0
);
}
static
HRESULT
get_nsstyle_pos
(
HTMLStyle
*
This
,
styleid_t
sid
,
float
*
p
)
{
nsAString
str_value
;
...
...
@@ -2376,8 +2385,10 @@ static HRESULT WINAPI HTMLStyle_get_pixelLeft(IHTMLStyle *iface, LONG *p)
static
HRESULT
WINAPI
HTMLStyle_put_pixelWidth
(
IHTMLStyle
*
iface
,
LONG
v
)
{
HTMLStyle
*
This
=
impl_from_IHTMLStyle
(
iface
);
FIXME
(
"(%p)->()
\n
"
,
This
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->()
\n
"
,
This
);
return
set_style_pxattr
(
This
->
nsstyle
,
STYLEID_WIDTH
,
v
);
}
static
HRESULT
WINAPI
HTMLStyle_get_pixelWidth
(
IHTMLStyle
*
iface
,
LONG
*
p
)
...
...
dlls/mshtml/tests/style.c
View file @
d898f27a
...
...
@@ -826,6 +826,16 @@ static void test_body_style(IHTMLStyle *style)
ok
(
!
strcmp_wa
(
V_BSTR
(
&
v
),
"100px"
),
"V_BSTR(v)=%s
\n
"
,
wine_dbgstr_w
(
V_BSTR
(
&
v
)));
VariantClear
(
&
v
);
hres
=
IHTMLStyle_put_pixelWidth
(
style
,
50
);
ok
(
hres
==
S_OK
,
"put_pixelWidth failed: %08x
\n
"
,
hres
);
V_VT
(
&
v
)
=
VT_EMPTY
;
hres
=
IHTMLStyle_get_width
(
style
,
&
v
);
ok
(
hres
==
S_OK
,
"get_width failed: %08x
\n
"
,
hres
);
ok
(
V_VT
(
&
v
)
==
VT_BSTR
,
"V_VT(v)=%d
\n
"
,
V_VT
(
&
v
));
ok
(
!
strcmp_wa
(
V_BSTR
(
&
v
),
"50px"
),
"V_BSTR(v)=%s
\n
"
,
wine_dbgstr_w
(
V_BSTR
(
&
v
)));
VariantClear
(
&
v
);
/* margin tests */
str
=
(
void
*
)
0xdeadbeef
;
hres
=
IHTMLStyle_get_margin
(
style
,
&
str
);
...
...
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