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
b93e29f0
Commit
b93e29f0
authored
Jan 10, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 10, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added support for non-integer values in get_nsstyle_pixel_val.
parent
7bb36372
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
htmlstyle.c
dlls/mshtml/htmlstyle.c
+6
-1
style.c
dlls/mshtml/tests/style.c
+11
-0
No files found.
dlls/mshtml/htmlstyle.c
View file @
b93e29f0
...
...
@@ -664,9 +664,14 @@ static HRESULT get_nsstyle_pixel_val(HTMLStyle *This, styleid_t sid, LONG *p)
if
(
value
)
{
*
p
=
strtolW
(
value
,
&
ptr
,
10
);
if
(
*
ptr
==
'.'
)
{
/* Skip all digits. We have tests showing that we should not round the value. */
while
(
isdigitW
(
*++
ptr
));
}
if
(
*
ptr
&&
strcmpW
(
ptr
,
pxW
))
{
nsAString_Finish
(
&
str_value
);
FIXME
(
"
only px values are currently supported
\n
"
);
FIXME
(
"
%s: only px values are currently supported
\n
"
,
debugstr_w
(
value
)
);
hres
=
E_NOTIMPL
;
}
}
else
{
...
...
dlls/mshtml/tests/style.c
View file @
b93e29f0
...
...
@@ -961,6 +961,17 @@ static void test_body_style(IHTMLStyle *style)
ok
(
!
strcmp_wa
(
V_BSTR
(
&
v
),
"3px"
),
"V_BSTR(v) = %s
\n
"
,
wine_dbgstr_w
(
V_BSTR
(
&
v
)));
VariantClear
(
&
v
);
V_VT
(
&
v
)
=
VT_BSTR
;
V_BSTR
(
&
v
)
=
a2bstr
(
"4.99"
);
hres
=
IHTMLStyle_put_left
(
style
,
v
);
ok
(
hres
==
S_OK
,
"put_left failed: %08x
\n
"
,
hres
);
VariantClear
(
&
v
);
l
=
0xdeadbeef
;
hres
=
IHTMLStyle_get_pixelLeft
(
style
,
&
l
);
ok
(
hres
==
S_OK
,
"get_pixelLeft failed: %08x
\n
"
,
hres
);
ok
(
l
==
4
,
"pixelLeft = %d
\n
"
,
l
);
V_VT
(
&
v
)
=
VT_NULL
;
hres
=
IHTMLStyle_put_left
(
style
,
v
);
ok
(
hres
==
S_OK
,
"put_left 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