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
537bbe2c
Commit
537bbe2c
authored
Sep 08, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 09, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Make empty string is a valid overflow style.
parent
576ee54d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
htmlstyle.c
dlls/mshtml/htmlstyle.c
+1
-1
dom.c
dlls/mshtml/tests/dom.c
+10
-0
No files found.
dlls/mshtml/htmlstyle.c
View file @
537bbe2c
...
...
@@ -2016,7 +2016,7 @@ static HRESULT WINAPI HTMLStyle_put_overflow(IHTMLStyle *iface, BSTR v)
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
/* overflow can only be one of the follow values. */
if
(
!
v
||
strcmpiW
(
szVisible
,
v
)
==
0
||
strcmpiW
(
szScroll
,
v
)
==
0
||
if
(
!
v
||
!*
v
||
strcmpiW
(
szVisible
,
v
)
==
0
||
strcmpiW
(
szScroll
,
v
)
==
0
||
strcmpiW
(
szHidden
,
v
)
==
0
||
strcmpiW
(
szAuto
,
v
)
==
0
)
{
return
set_nsstyle_attr
(
This
->
nsstyle
,
STYLEID_OVERFLOW
,
v
,
0
);
...
...
dlls/mshtml/tests/dom.c
View file @
537bbe2c
...
...
@@ -3441,6 +3441,16 @@ static void test_default_style(IHTMLStyle *style)
ok
(
!
strcmp_wa
(
str
,
"auto"
),
"str=%s
\n
"
,
wine_dbgstr_w
(
str
));
SysFreeString
(
str
);
str
=
a2bstr
(
""
);
hres
=
IHTMLStyle_put_overflow
(
style
,
str
);
ok
(
hres
==
S_OK
,
"put_overflow failed: %08x
\n
"
,
hres
);
SysFreeString
(
str
);
hres
=
IHTMLStyle_get_overflow
(
style
,
&
str
);
ok
(
hres
==
S_OK
,
"get_overflow failed: %08x
\n
"
,
hres
);
ok
(
!
str
,
"str=%s
\n
"
,
wine_dbgstr_w
(
str
));
SysFreeString
(
str
);
/* restore overflow default */
hres
=
IHTMLStyle_put_overflow
(
style
,
sOverflowDefault
);
ok
(
hres
==
S_OK
,
"put_overflow 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