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
36796199
Commit
36796199
authored
Mar 13, 2014
by
Zhenbo Li
Committed by
Alexandre Julliard
Mar 13, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLTableRow::vAlign property implementation.
parent
03cec9d8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
4 deletions
+37
-4
htmltablerow.c
dlls/mshtml/htmltablerow.c
+25
-4
dom.c
dlls/mshtml/tests/dom.c
+12
-0
No files found.
dlls/mshtml/htmltablerow.c
View file @
36796199
...
...
@@ -135,15 +135,36 @@ static HRESULT WINAPI HTMLTableRow_get_align(IHTMLTableRow *iface, BSTR *p)
static
HRESULT
WINAPI
HTMLTableRow_put_vAlign
(
IHTMLTableRow
*
iface
,
BSTR
v
)
{
HTMLTableRow
*
This
=
impl_from_IHTMLTableRow
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
E_NOTIMPL
;
nsAString
val
;
nsresult
nsres
;
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
nsAString_InitDepend
(
&
val
,
v
);
nsres
=
nsIDOMHTMLTableRowElement_SetVAlign
(
This
->
nsrow
,
&
val
);
nsAString_Finish
(
&
val
);
if
(
NS_FAILED
(
nsres
)){
ERR
(
"Set VAlign(%s) failed!
\n
"
,
debugstr_w
(
v
));
return
E_FAIL
;
}
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLTableRow_get_vAlign
(
IHTMLTableRow
*
iface
,
BSTR
*
p
)
{
HTMLTableRow
*
This
=
impl_from_IHTMLTableRow
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
nsAString
val
;
nsresult
nsres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
nsAString_Init
(
&
val
,
NULL
);
nsres
=
nsIDOMHTMLTableRowElement_GetVAlign
(
This
->
nsrow
,
&
val
);
return
return_nsstr
(
nsres
,
&
val
,
p
);
}
static
HRESULT
WINAPI
HTMLTableRow_put_bgColor
(
IHTMLTableRow
*
iface
,
VARIANT
v
)
...
...
dlls/mshtml/tests/dom.c
View file @
36796199
...
...
@@ -5605,6 +5605,18 @@ static void test_tr_elem(IHTMLElement *elem)
ok
(
!
strcmp_wa
(
bstr
,
"left"
),
"get_align returned %s
\n
"
,
wine_dbgstr_w
(
bstr
));
SysFreeString
(
bstr
);
bstr
=
a2bstr
(
"top"
);
hres
=
IHTMLTableRow_put_vAlign
(
row
,
bstr
);
ok
(
hres
==
S_OK
,
"set_valign failed: %08x
\n
"
,
hres
);
SysFreeString
(
bstr
);
bstr
=
NULL
;
hres
=
IHTMLTableRow_get_vAlign
(
row
,
&
bstr
);
ok
(
hres
==
S_OK
,
"get_valign failed: %08x
\n
"
,
hres
);
ok
(
bstr
!=
NULL
,
"get_valign returned NULL
\n
"
);
ok
(
!
strcmp_wa
(
bstr
,
"top"
),
"get_valign returned %s
\n
"
,
wine_dbgstr_w
(
bstr
));
SysFreeString
(
bstr
);
IHTMLTableRow_Release
(
row
);
}
...
...
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