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
06c66876
Commit
06c66876
authored
Aug 18, 2014
by
Zhenbo Li
Committed by
Alexandre Julliard
Aug 18, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLTableCell::align property implementation.
parent
03b377f3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
4 deletions
+37
-4
htmltablecell.c
dlls/mshtml/htmltablecell.c
+22
-4
dom.c
dlls/mshtml/tests/dom.c
+15
-0
No files found.
dlls/mshtml/htmltablecell.c
View file @
06c66876
...
...
@@ -128,15 +128,33 @@ static HRESULT WINAPI HTMLTableCell_get_colSpan(IHTMLTableCell *iface, LONG *p)
static
HRESULT
WINAPI
HTMLTableCell_put_align
(
IHTMLTableCell
*
iface
,
BSTR
v
)
{
HTMLTableCell
*
This
=
impl_from_IHTMLTableCell
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
E_NOTIMPL
;
nsAString
str
;
nsresult
nsres
;
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
nsAString_InitDepend
(
&
str
,
v
);
nsres
=
nsIDOMHTMLTableCellElement_SetAlign
(
This
->
nscell
,
&
str
);
nsAString_Finish
(
&
str
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"Set Align failed: %08x
\n
"
,
nsres
);
return
E_FAIL
;
}
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLTableCell_get_align
(
IHTMLTableCell
*
iface
,
BSTR
*
p
)
{
HTMLTableCell
*
This
=
impl_from_IHTMLTableCell
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
nsAString
str
;
nsresult
nsres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
nsAString_Init
(
&
str
,
NULL
);
nsres
=
nsIDOMHTMLTableCellElement_GetAlign
(
This
->
nscell
,
&
str
);
return
return_nsstr
(
nsres
,
&
str
,
p
);
}
static
HRESULT
WINAPI
HTMLTableCell_put_vAlign
(
IHTMLTableCell
*
iface
,
BSTR
v
)
...
...
dlls/mshtml/tests/dom.c
View file @
06c66876
...
...
@@ -5940,6 +5940,7 @@ static void test_td_elem(IHTMLElement *elem)
IHTMLTableCell
*
cell
;
HRESULT
hres
;
LONG
lval
;
BSTR
str
;
hres
=
IHTMLElement_QueryInterface
(
elem
,
&
IID_IHTMLTableCell
,
(
void
**
)
&
cell
);
ok
(
hres
==
S_OK
,
"Could not get IHTMLTableRow iface: %08x
\n
"
,
hres
);
...
...
@@ -5951,6 +5952,20 @@ static void test_td_elem(IHTMLElement *elem)
ok
(
hres
==
S_OK
,
"get cellIndex failed: %08x
\n
"
,
hres
);
ok
(
lval
==
1
,
"Expected 1, got %d
\n
"
,
lval
);
str
=
a2bstr
(
"left"
);
hres
=
IHTMLTableCell_put_align
(
cell
,
str
);
ok
(
hres
==
S_OK
,
"put_align failed: %08x
\n
"
,
hres
);
SysFreeString
(
str
);
str
=
NULL
;
hres
=
IHTMLTableCell_get_align
(
cell
,
&
str
);
ok
(
hres
==
S_OK
,
"get_align failed: %08x
\n
"
,
hres
);
ok
(
str
!=
NULL
,
"str is NULL
\n
"
);
if
(
str
!=
NULL
&&
hres
==
S_OK
)
{
ok
(
!
strcmp_wa
(
str
,
"left"
),
"got %s
\n
"
,
wine_dbgstr_w
(
str
));
SysFreeString
(
str
);
}
IHTMLTableCell_Release
(
cell
);
}
...
...
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