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
53adfe77
Commit
53adfe77
authored
Apr 16, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLStyle2::bottom implementation.
parent
bfa30458
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
4 deletions
+34
-4
htmlstyle2.c
dlls/mshtml/htmlstyle2.c
+8
-4
style.c
dlls/mshtml/tests/style.c
+26
-0
No files found.
dlls/mshtml/htmlstyle2.c
View file @
53adfe77
...
...
@@ -205,15 +205,19 @@ static HRESULT WINAPI HTMLStyle2_get_unicodeBidi(IHTMLStyle2 *iface, BSTR *p)
static
HRESULT
WINAPI
HTMLStyle2_put_bottom
(
IHTMLStyle2
*
iface
,
VARIANT
v
)
{
HTMLStyle
*
This
=
impl_from_IHTMLStyle2
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
return
set_nsstyle_attr_var
(
This
->
nsstyle
,
STYLEID_BOTTOM
,
&
v
,
0
);
}
static
HRESULT
WINAPI
HTMLStyle2_get_bottom
(
IHTMLStyle2
*
iface
,
VARIANT
*
p
)
{
HTMLStyle
*
This
=
impl_from_IHTMLStyle2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
get_nsstyle_attr_var
(
This
->
nsstyle
,
STYLEID_BOTTOM
,
p
,
0
);
}
static
HRESULT
WINAPI
HTMLStyle2_put_right
(
IHTMLStyle2
*
iface
,
VARIANT
v
)
...
...
dlls/mshtml/tests/style.c
View file @
53adfe77
...
...
@@ -52,6 +52,16 @@ static BSTR a2bstr(const char *str)
return
ret
;
}
#define test_var_bstr(a,b) _test_var_bstr(__LINE__,a,b)
static
void
_test_var_bstr
(
unsigned
line
,
const
VARIANT
*
v
,
const
char
*
expect
)
{
ok_
(
__FILE__
,
line
)(
V_VT
(
v
)
==
VT_BSTR
,
"V_VT(v) = %d
\n
"
,
V_VT
(
v
));
if
(
expect
)
ok_
(
__FILE__
,
line
)(
!
strcmp_wa
(
V_BSTR
(
v
),
expect
),
"V_BSTR(v) = %s, expected %s
\n
"
,
wine_dbgstr_w
(
V_BSTR
(
v
)),
expect
);
else
ok_
(
__FILE__
,
line
)(
!
V_BSTR
(
v
),
"V_BSTR(v) = %s, expected NULL
\n
"
,
wine_dbgstr_w
(
V_BSTR
(
v
)));
}
#define get_elem2_iface(u) _get_elem2_iface(__LINE__,u)
static
IHTMLElement2
*
_get_elem2_iface
(
unsigned
line
,
IUnknown
*
unk
)
{
...
...
@@ -305,6 +315,22 @@ static void test_style2(IHTMLStyle2 *style2)
ok
(
hres
==
S_OK
,
"get_direction failed: %08x
\n
"
,
hres
);
ok
(
!
strcmp_wa
(
str
,
"ltr"
),
"str = %s
\n
"
,
wine_dbgstr_w
(
str
));
SysFreeString
(
str
);
/* bottom */
V_VT
(
&
v
)
=
VT_EMPTY
;
hres
=
IHTMLStyle2_get_bottom
(
style2
,
&
v
);
ok
(
hres
==
S_OK
,
"get_bottom failed: %08x
\n
"
,
hres
);
test_var_bstr
(
&
v
,
NULL
);
V_VT
(
&
v
)
=
VT_I4
;
V_I4
(
&
v
)
=
4
;
hres
=
IHTMLStyle2_put_bottom
(
style2
,
v
);
ok
(
hres
==
S_OK
,
"put_bottom failed: %08x
\n
"
,
hres
);
V_VT
(
&
v
)
=
VT_EMPTY
;
hres
=
IHTMLStyle2_get_bottom
(
style2
,
&
v
);
ok
(
hres
==
S_OK
,
"get_bottom failed: %08x
\n
"
,
hres
);
test_var_bstr
(
&
v
,
"4px"
);
}
static
void
test_style3
(
IHTMLStyle3
*
style3
)
...
...
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