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
48cbc036
Commit
48cbc036
authored
Mar 03, 2009
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Mar 06, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Implement IHTMLStyle_get_borderLeft.
parent
53a4e174
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
2 deletions
+38
-2
htmlstyle.c
dlls/mshtml/htmlstyle.c
+4
-2
dom.c
dlls/mshtml/tests/dom.c
+34
-0
No files found.
dlls/mshtml/htmlstyle.c
View file @
48cbc036
...
...
@@ -1414,8 +1414,10 @@ static HRESULT WINAPI HTMLStyle_put_borderLeft(IHTMLStyle *iface, BSTR v)
static
HRESULT
WINAPI
HTMLStyle_get_borderLeft
(
IHTMLStyle
*
iface
,
BSTR
*
p
)
{
HTMLStyle
*
This
=
HTMLSTYLE_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
get_style_attr
(
This
,
STYLEID_BORDER_LEFT
,
p
);
}
static
HRESULT
WINAPI
HTMLStyle_put_borderColor
(
IHTMLStyle
*
iface
,
BSTR
v
)
...
...
dlls/mshtml/tests/dom.c
View file @
48cbc036
...
...
@@ -3395,6 +3395,40 @@ static void test_default_style(IHTMLStyle *style)
ok
(
hres
==
S_OK
,
"put_borderColor failed: %08x
\n
"
,
hres
);
SysFreeString
(
sDefault
);
/* BorderLeft */
hres
=
IHTMLStyle_get_borderLeft
(
style
,
&
sDefault
);
ok
(
hres
==
S_OK
,
"get_borderLeft failed: %08x
\n
"
,
hres
);
str
=
a2bstr
(
"thick dotted red"
);
hres
=
IHTMLStyle_put_borderLeft
(
style
,
str
);
ok
(
hres
==
S_OK
,
"put_borderLeft failed: %08x
\n
"
,
hres
);
SysFreeString
(
str
);
/* IHTMLStyle_get_borderLeft appears to have a bug where
it returns the first letter of the color. So we check
each style individually.
*/
V_BSTR
(
&
v
)
=
NULL
;
hres
=
IHTMLStyle_get_borderLeftColor
(
style
,
&
v
);
todo_wine
ok
(
hres
==
S_OK
,
"get_borderLeftColor failed: %08x
\n
"
,
hres
);
todo_wine
ok
(
!
strcmp_wa
(
V_BSTR
(
&
v
),
"red"
),
"str=%s
\n
"
,
dbgstr_w
(
V_BSTR
(
&
v
)));
VariantClear
(
&
v
);
V_BSTR
(
&
v
)
=
NULL
;
hres
=
IHTMLStyle_get_borderLeftWidth
(
style
,
&
v
);
todo_wine
ok
(
hres
==
S_OK
,
"get_borderLeftWidth failed: %08x
\n
"
,
hres
);
todo_wine
ok
(
!
strcmp_wa
(
V_BSTR
(
&
v
),
"thick"
),
"str=%s
\n
"
,
dbgstr_w
(
V_BSTR
(
&
v
)));
VariantClear
(
&
v
);
hres
=
IHTMLStyle_get_borderLeftStyle
(
style
,
&
str
);
ok
(
hres
==
S_OK
,
"get_borderLeftStyle failed: %08x
\n
"
,
hres
);
ok
(
!
strcmp_wa
(
str
,
"dotted"
),
"str=%s
\n
"
,
dbgstr_w
(
str
));
SysFreeString
(
str
);
hres
=
IHTMLStyle_put_borderLeft
(
style
,
sDefault
);
ok
(
hres
==
S_OK
,
"put_borderLeft failed: %08x
\n
"
,
hres
);
SysFreeString
(
sDefault
);
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