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
f91c0356
Commit
f91c0356
authored
Apr 14, 2013
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 15, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Implement IHTMLTable_get_tBodies.
parent
8f985884
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
3 deletions
+25
-3
htmltable.c
dlls/mshtml/htmltable.c
+15
-2
dom.c
dlls/mshtml/tests/dom.c
+10
-1
No files found.
dlls/mshtml/htmltable.c
View file @
f91c0356
...
...
@@ -379,8 +379,21 @@ static HRESULT WINAPI HTMLTable_get_tFoot(IHTMLTable *iface, IHTMLTableSection *
static
HRESULT
WINAPI
HTMLTable_get_tBodies
(
IHTMLTable
*
iface
,
IHTMLElementCollection
**
p
)
{
HTMLTable
*
This
=
impl_from_IHTMLTable
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
nsIDOMHTMLCollection
*
nscol
=
NULL
;
nsresult
nsres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
nsres
=
nsIDOMHTMLTableElement_GetTBodies
(
This
->
nstable
,
&
nscol
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"GetTBodies failed: %08x
\n
"
,
nsres
);
return
E_FAIL
;
}
*
p
=
create_collection_from_htmlcol
(
This
->
element
.
node
.
doc
,
nscol
);
nsIDOMHTMLCollection_Release
(
nscol
);
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLTable_get_caption
(
IHTMLTable
*
iface
,
IHTMLTableCaption
**
p
)
...
...
dlls/mshtml/tests/dom.c
View file @
f91c0356
...
...
@@ -5466,6 +5466,7 @@ static void test_table_elem(IHTMLElement *elem)
static
const
elem_type_t
row_types
[]
=
{
ET_TR
,
ET_TR
};
static
const
elem_type_t
all_types
[]
=
{
ET_TBODY
,
ET_TR
,
ET_TR
,
ET_TD
,
ET_TD
};
static
const
elem_type_t
tbodies_types
[]
=
{
ET_TBODY
};
hres
=
IHTMLElement_QueryInterface
(
elem
,
&
IID_IHTMLTable
,
(
void
**
)
&
table
);
ok
(
hres
==
S_OK
,
"Could not get IHTMLTable iface: %08x
\n
"
,
hres
);
...
...
@@ -5475,7 +5476,7 @@ static void test_table_elem(IHTMLElement *elem)
col
=
NULL
;
hres
=
IHTMLTable_get_rows
(
table
,
&
col
);
ok
(
hres
==
S_OK
,
"get_rows failed: %08x
\n
"
,
hres
);
ok
(
col
!=
NULL
,
"get_ros returned NULL
\n
"
);
ok
(
col
!=
NULL
,
"get_ro
w
s returned NULL
\n
"
);
test_elem_collection
((
IUnknown
*
)
col
,
row_types
,
sizeof
(
row_types
)
/
sizeof
(
*
row_types
));
IHTMLElementCollection_Release
(
col
);
...
...
@@ -5492,6 +5493,14 @@ static void test_table_elem(IHTMLElement *elem)
test_elem_all
((
IUnknown
*
)
node
,
NULL
,
0
);
IHTMLDOMNode_Release
(
node
);
col
=
NULL
;
hres
=
IHTMLTable_get_tBodies
(
table
,
&
col
);
ok
(
hres
==
S_OK
,
"get_tBodies failed: %08x
\n
"
,
hres
);
ok
(
col
!=
NULL
,
"get_tBodies returned NULL
\n
"
);
test_elem_collection
((
IUnknown
*
)
col
,
tbodies_types
,
sizeof
(
tbodies_types
)
/
sizeof
(
*
tbodies_types
));
IHTMLElementCollection_Release
(
col
);
IHTMLTable_Release
(
table
);
}
...
...
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