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
f7a6c512
Commit
f7a6c512
authored
Mar 01, 2009
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Mar 04, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Implement IHTMLStyle_put_textDecoration.
parent
ec1d6aa6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
2 deletions
+54
-2
htmlstyle.c
dlls/mshtml/htmlstyle.c
+12
-2
dom.c
dlls/mshtml/tests/dom.c
+42
-0
No files found.
dlls/mshtml/htmlstyle.c
View file @
f7a6c512
...
...
@@ -924,8 +924,18 @@ static HRESULT WINAPI HTMLStyle_get_letterSpacing(IHTMLStyle *iface, VARIANT *p)
static
HRESULT
WINAPI
HTMLStyle_put_textDecoration
(
IHTMLStyle
*
iface
,
BSTR
v
)
{
HTMLStyle
*
This
=
HTMLSTYLE_THIS
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
/* textDecoration can only be one of the following */
if
(
!
v
||
strcmpiW
(
styleNone
,
v
)
==
0
||
strcmpiW
(
valUnderline
,
v
)
==
0
||
strcmpiW
(
valOverline
,
v
)
==
0
||
strcmpiW
(
valLineThrough
,
v
)
==
0
||
strcmpiW
(
valBlink
,
v
)
==
0
)
{
return
set_style_attr
(
This
,
STYLEID_TEXT_DECORATION
,
v
,
0
);
}
return
E_INVALIDARG
;
}
static
HRESULT
WINAPI
HTMLStyle_get_textDecoration
(
IHTMLStyle
*
iface
,
BSTR
*
p
)
...
...
dlls/mshtml/tests/dom.c
View file @
f7a6c512
...
...
@@ -2798,6 +2798,48 @@ static void test_default_style(IHTMLStyle *style)
hres
=
IHTMLStyle_put_textDecorationBlink
(
style
,
VARIANT_FALSE
);
ok
(
hres
==
S_OK
,
"textDecorationBlink failed: %08x
\n
"
,
hres
);
hres
=
IHTMLStyle_get_textDecoration
(
style
,
&
sDefault
);
ok
(
hres
==
S_OK
,
"get_textDecoration failed: %08x
\n
"
,
hres
);
str
=
a2bstr
(
"invalid"
);
hres
=
IHTMLStyle_put_textDecoration
(
style
,
str
);
ok
(
hres
==
E_INVALIDARG
,
"put_textDecoration failed: %08x
\n
"
,
hres
);
SysFreeString
(
str
);
str
=
a2bstr
(
"none"
);
hres
=
IHTMLStyle_put_textDecoration
(
style
,
str
);
ok
(
hres
==
S_OK
,
"put_textDecoration failed: %08x
\n
"
,
hres
);
SysFreeString
(
str
);
str
=
a2bstr
(
"underline"
);
hres
=
IHTMLStyle_put_textDecoration
(
style
,
str
);
ok
(
hres
==
S_OK
,
"put_textDecoration failed: %08x
\n
"
,
hres
);
SysFreeString
(
str
);
str
=
a2bstr
(
"overline"
);
hres
=
IHTMLStyle_put_textDecoration
(
style
,
str
);
ok
(
hres
==
S_OK
,
"put_textDecoration failed: %08x
\n
"
,
hres
);
SysFreeString
(
str
);
str
=
a2bstr
(
"line-through"
);
hres
=
IHTMLStyle_put_textDecoration
(
style
,
str
);
ok
(
hres
==
S_OK
,
"put_textDecoration failed: %08x
\n
"
,
hres
);
SysFreeString
(
str
);
str
=
a2bstr
(
"blink"
);
hres
=
IHTMLStyle_put_textDecoration
(
style
,
str
);
ok
(
hres
==
S_OK
,
"put_textDecoration failed: %08x
\n
"
,
hres
);
SysFreeString
(
str
);
hres
=
IHTMLStyle_get_textDecoration
(
style
,
&
str
);
ok
(
hres
==
S_OK
,
"get_textDecoration failed: %08x
\n
"
,
hres
);
ok
(
!
strcmp_wa
(
str
,
"blink"
),
"str != blink
\n
"
);
SysFreeString
(
str
);
hres
=
IHTMLStyle_put_textDecoration
(
style
,
sDefault
);
ok
(
hres
==
S_OK
,
"put_textDecoration failed: %08x
\n
"
,
hres
);
SysFreeString
(
sDefault
);
hres
=
IHTMLStyle_get_posWidth
(
style
,
NULL
);
ok
(
hres
==
E_POINTER
,
"get_posWidth 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