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
26380e17
Commit
26380e17
authored
Feb 07, 2011
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Feb 07, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Implement IHTMLStyle put_borderRightColor.
parent
b2b4005f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
+22
-2
htmlstyle.c
dlls/mshtml/htmlstyle.c
+4
-2
dom.c
dlls/mshtml/tests/dom.c
+18
-0
No files found.
dlls/mshtml/htmlstyle.c
View file @
26380e17
...
...
@@ -1559,8 +1559,10 @@ static HRESULT WINAPI HTMLStyle_get_borderTopColor(IHTMLStyle *iface, VARIANT *p
static
HRESULT
WINAPI
HTMLStyle_put_borderRightColor
(
IHTMLStyle
*
iface
,
VARIANT
v
)
{
HTMLStyle
*
This
=
impl_from_IHTMLStyle
(
iface
);
FIXME
(
"(%p)->(v%d)
\n
"
,
This
,
V_VT
(
&
v
));
return
E_NOTIMPL
;
TRACE
(
"(%p)->(v%d)
\n
"
,
This
,
V_VT
(
&
v
));
return
set_nsstyle_attr_var
(
This
->
nsstyle
,
STYLEID_BORDER_RIGHT_COLOR
,
&
v
,
ATTR_HEX_INT
);
}
static
HRESULT
WINAPI
HTMLStyle_get_borderRightColor
(
IHTMLStyle
*
iface
,
VARIANT
*
p
)
...
...
dlls/mshtml/tests/dom.c
View file @
26380e17
...
...
@@ -5461,6 +5461,24 @@ static void test_default_style(IHTMLStyle *style)
hres
=
IHTMLStyle_put_borderTopColor
(
style
,
vDefault
);
ok
(
hres
==
S_OK
,
"put_borderTopColor: %08x
\n
"
,
hres
);
/* borderRightColor */
hres
=
IHTMLStyle_get_borderRightColor
(
style
,
&
vDefault
);
ok
(
hres
==
S_OK
,
"get_borderRightColor: %08x
\n
"
,
hres
);
V_VT
(
&
v
)
=
VT_BSTR
;
V_BSTR
(
&
v
)
=
a2bstr
(
"blue"
);
hres
=
IHTMLStyle_put_borderRightColor
(
style
,
v
);
ok
(
hres
==
S_OK
,
"put_borderRightColor: %08x
\n
"
,
hres
);
VariantClear
(
&
v
);
hres
=
IHTMLStyle_get_borderRightColor
(
style
,
&
v
);
ok
(
hres
==
S_OK
,
"get_borderRightColor: %08x
\n
"
,
hres
);
ok
(
!
strcmp_wa
(
V_BSTR
(
&
v
),
"blue"
),
"expected blue = %s
\n
"
,
wine_dbgstr_w
(
V_BSTR
(
&
v
)));
VariantClear
(
&
v
);
hres
=
IHTMLStyle_put_borderRightColor
(
style
,
vDefault
);
ok
(
hres
==
S_OK
,
"putborderRightColorr: %08x
\n
"
,
hres
);
hres
=
IHTMLStyle_QueryInterface
(
style
,
&
IID_IHTMLStyle2
,
(
void
**
)
&
style2
);
ok
(
hres
==
S_OK
,
"Could not get IHTMLStyle2 iface: %08x
\n
"
,
hres
);
if
(
SUCCEEDED
(
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