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
48e41c4d
Commit
48e41c4d
authored
May 26, 2014
by
Zhenbo Li
Committed by
Alexandre Julliard
Jun 12, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLTableRow::insertCell method implementation.
parent
4719c438
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
2 deletions
+33
-2
htmltablerow.c
dlls/mshtml/htmltablerow.c
+21
-2
dom.c
dlls/mshtml/tests/dom.c
+12
-0
No files found.
dlls/mshtml/htmltablerow.c
View file @
48e41c4d
...
...
@@ -308,8 +308,27 @@ static HRESULT WINAPI HTMLTableRow_get_cells(IHTMLTableRow *iface, IHTMLElementC
static
HRESULT
WINAPI
HTMLTableRow_insertCell
(
IHTMLTableRow
*
iface
,
LONG
index
,
IDispatch
**
row
)
{
HTMLTableRow
*
This
=
impl_from_IHTMLTableRow
(
iface
);
FIXME
(
"(%p)->(%d %p)
\n
"
,
This
,
index
,
row
);
return
E_NOTIMPL
;
nsIDOMHTMLElement
*
nselem
;
HTMLElement
*
elem
;
nsresult
nsres
;
HRESULT
hres
;
TRACE
(
"(%p)->(%d %p)
\n
"
,
This
,
index
,
row
);
nsres
=
nsIDOMHTMLTableRowElement_InsertCell
(
This
->
nsrow
,
index
,
&
nselem
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"Insert Cell at %d failed: %08x
\n
"
,
index
,
nsres
);
return
E_FAIL
;
}
hres
=
HTMLTableCell_Create
(
This
->
element
.
node
.
doc
,
nselem
,
&
elem
);
nsIDOMHTMLElement_Release
(
nselem
);
if
(
FAILED
(
hres
))
{
ERR
(
"Create TableCell failed: %08x
\n
"
,
hres
);
return
hres
;
}
*
row
=
(
IDispatch
*
)
&
elem
->
IHTMLElement_iface
;
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLTableRow_deleteCell
(
IHTMLTableRow
*
iface
,
LONG
index
)
...
...
dlls/mshtml/tests/dom.c
View file @
48e41c4d
...
...
@@ -5737,10 +5737,22 @@ static void _test_tr_possess(unsigned line, IHTMLElement *elem,
static
void
test_tr_modify
(
IHTMLElement
*
elem
,
IHTMLTableRow
*
row
)
{
HRESULT
hres
;
IDispatch
*
disp
;
IUnknown
*
unk
;
hres
=
IHTMLTableRow_deleteCell
(
row
,
0
);
ok
(
hres
==
S_OK
,
"deleteCell failed: %08x
\n
"
,
hres
);
test_tr_possess
(
elem
,
row
,
1
,
"td2"
);
hres
=
IHTMLTableRow_insertCell
(
row
,
0
,
&
disp
);
ok
(
hres
==
S_OK
,
"insertCell failed: %08x
\n
"
,
hres
);
ok
(
disp
!=
NULL
,
"disp == NULL
\n
"
);
hres
=
IDispatch_QueryInterface
(
disp
,
&
IID_IHTMLTableCell
,
(
void
**
)
&
unk
);
ok
(
hres
==
S_OK
,
"Could not get IID_IHTMLTableCell interface: %08x
\n
"
,
hres
);
if
(
SUCCEEDED
(
hres
))
IUnknown_Release
(
unk
);
test_tr_possess
(
elem
,
row
,
2
,
"td2"
);
IDispatch_Release
(
disp
);
}
static
void
test_tr_elem
(
IHTMLElement
*
elem
)
...
...
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