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
db244a80
Commit
db244a80
authored
Jun 27, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 28, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Share nstable reference with nsnode.
parent
39005645
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
17 deletions
+8
-17
htmltable.c
dlls/mshtml/htmltable.c
+8
-17
No files found.
dlls/mshtml/htmltable.c
View file @
db244a80
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
*/
*/
#include <stdarg.h>
#include <stdarg.h>
#include <assert.h>
#define COBJMACROS
#define COBJMACROS
...
@@ -741,19 +742,9 @@ static HRESULT HTMLTable_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
...
@@ -741,19 +742,9 @@ static HRESULT HTMLTable_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
return
HTMLElement_QI
(
&
This
->
element
.
node
,
riid
,
ppv
);
return
HTMLElement_QI
(
&
This
->
element
.
node
,
riid
,
ppv
);
}
}
static
void
HTMLTable_destructor
(
HTMLDOMNode
*
iface
)
{
HTMLTable
*
This
=
impl_from_HTMLDOMNode
(
iface
);
if
(
This
->
nstable
)
nsIDOMHTMLTableElement_Release
(
This
->
nstable
);
HTMLElement_destructor
(
&
This
->
element
.
node
);
}
static
const
NodeImplVtbl
HTMLTableImplVtbl
=
{
static
const
NodeImplVtbl
HTMLTableImplVtbl
=
{
HTMLTable_QI
,
HTMLTable_QI
,
HTML
Table
_destructor
,
HTML
Element
_destructor
,
HTMLElement_clone
,
HTMLElement_clone
,
HTMLElement_get_attr_col
HTMLElement_get_attr_col
};
};
...
@@ -783,14 +774,14 @@ HRESULT HTMLTable_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLE
...
@@ -783,14 +774,14 @@ HRESULT HTMLTable_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLE
ret
->
element
.
node
.
vtbl
=
&
HTMLTableImplVtbl
;
ret
->
element
.
node
.
vtbl
=
&
HTMLTableImplVtbl
;
ret
->
IHTMLTable_iface
.
lpVtbl
=
&
HTMLTableVtbl
;
ret
->
IHTMLTable_iface
.
lpVtbl
=
&
HTMLTableVtbl
;
HTMLElement_Init
(
&
ret
->
element
,
doc
,
nselem
,
&
HTMLTable_dispex
);
nsres
=
nsIDOMHTMLElement_QueryInterface
(
nselem
,
&
IID_nsIDOMHTMLTableElement
,
(
void
**
)
&
ret
->
nstable
);
nsres
=
nsIDOMHTMLElement_QueryInterface
(
nselem
,
&
IID_nsIDOMHTMLTableElement
,
(
void
**
)
&
ret
->
nstable
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"Could not get nsIDOMHTMLTableElement iface: %08x
\n
"
,
nsres
);
heap_free
(
ret
);
return
E_FAIL
;
}
HTMLElement_Init
(
&
ret
->
element
,
doc
,
nselem
,
&
HTMLTable_dispex
);
/* Share the reference with nsnode */
assert
(
nsres
==
NS_OK
&&
(
nsIDOMNode
*
)
ret
->
nstable
==
ret
->
element
.
node
.
nsnode
);
nsIDOMNode_Release
(
ret
->
element
.
node
.
nsnode
);
ConnectionPoint_Init
(
&
ret
->
cp
,
&
ret
->
element
.
cp_container
,
&
DIID_HTMLTableEvents
,
NULL
);
ConnectionPoint_Init
(
&
ret
->
cp
,
&
ret
->
element
.
cp_container
,
&
DIID_HTMLTableEvents
,
NULL
);
*
elem
=
&
ret
->
element
;
*
elem
=
&
ret
->
element
;
...
...
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