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
2619dda6
Commit
2619dda6
authored
Mar 01, 2009
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Mar 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Implement IHTMLStyle get/put textDecorationBlink.
parent
cbbdc41b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
4 deletions
+26
-4
htmlstyle.c
dlls/mshtml/htmlstyle.c
+10
-4
dom.c
dlls/mshtml/tests/dom.c
+16
-0
No files found.
dlls/mshtml/htmlstyle.c
View file @
2619dda6
...
...
@@ -160,6 +160,8 @@ static const WCHAR styleNone[] =
{
'n'
,
'o'
,
'n'
,
'e'
,
0
};
static
const
WCHAR
valOverline
[]
=
{
'o'
,
'v'
,
'e'
,
'r'
,
'l'
,
'i'
,
'n'
,
'e'
,
0
};
static
const
WCHAR
valBlink
[]
=
{
'b'
,
'l'
,
'i'
,
'n'
,
'k'
,
0
};
static
const
WCHAR
px_formatW
[]
=
{
'%'
,
'd'
,
'p'
,
'x'
,
0
};
static
const
WCHAR
emptyW
[]
=
{
0
};
...
...
@@ -1010,15 +1012,19 @@ static HRESULT WINAPI HTMLStyle_get_textDecorationLineThrough(IHTMLStyle *iface,
static
HRESULT
WINAPI
HTMLStyle_put_textDecorationBlink
(
IHTMLStyle
*
iface
,
VARIANT_BOOL
v
)
{
HTMLStyle
*
This
=
HTMLSTYLE_THIS
(
iface
);
FIXME
(
"(%p)->(%x)
\n
"
,
This
,
v
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%x)
\n
"
,
This
,
v
);
return
set_style_attr
(
This
,
STYLEID_TEXT_DECORATION
,
v
?
valBlink
:
emptyW
,
0
);
}
static
HRESULT
WINAPI
HTMLStyle_get_textDecorationBlink
(
IHTMLStyle
*
iface
,
VARIANT_BOOL
*
p
)
{
HTMLStyle
*
This
=
HTMLSTYLE_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
check_style_attr_value
(
This
,
STYLEID_TEXT_DECORATION
,
valBlink
,
p
);
}
static
HRESULT
WINAPI
HTMLStyle_put_verticalAlign
(
IHTMLStyle
*
iface
,
VARIANT
v
)
...
...
dlls/mshtml/tests/dom.c
View file @
2619dda6
...
...
@@ -2782,6 +2782,22 @@ static void test_default_style(IHTMLStyle *style)
hres
=
IHTMLStyle_put_textDecorationOverline
(
style
,
VARIANT_FALSE
);
ok
(
hres
==
S_OK
,
"put_textDecorationOverline failed: %08x
\n
"
,
hres
);
b
=
0xfefe
;
hres
=
IHTMLStyle_get_textDecorationBlink
(
style
,
&
b
);
ok
(
hres
==
S_OK
,
"get_textDecorationBlink failed: %08x
\n
"
,
hres
);
ok
(
b
==
VARIANT_FALSE
,
"textDecorationBlink = %x
\n
"
,
b
);
hres
=
IHTMLStyle_put_textDecorationBlink
(
style
,
VARIANT_TRUE
);
ok
(
hres
==
S_OK
,
"put_textDecorationBlink failed: %08x
\n
"
,
hres
);
ok
(
b
==
VARIANT_FALSE
,
"textDecorationBlink = %x
\n
"
,
b
);
hres
=
IHTMLStyle_get_textDecorationBlink
(
style
,
&
b
);
ok
(
hres
==
S_OK
,
"get_textDecorationBlink failed: %08x
\n
"
,
hres
);
ok
(
b
==
VARIANT_TRUE
,
"textDecorationBlink = %x
\n
"
,
b
);
hres
=
IHTMLStyle_put_textDecorationBlink
(
style
,
VARIANT_FALSE
);
ok
(
hres
==
S_OK
,
"textDecorationBlink failed: %08x
\n
"
,
hres
);
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