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
e5e0fc30
Commit
e5e0fc30
authored
Sep 25, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 25, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Don't share nstable reference with nsnode.
parent
556b2ad0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
5 deletions
+33
-5
htmltable.c
dlls/mshtml/htmltable.c
+33
-5
No files found.
dlls/mshtml/htmltable.c
View file @
e5e0fc30
...
@@ -993,6 +993,26 @@ static HRESULT HTMLTable_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
...
@@ -993,6 +993,26 @@ 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_traverse
(
HTMLDOMNode
*
iface
,
nsCycleCollectionTraversalCallback
*
cb
)
{
HTMLTable
*
This
=
impl_from_HTMLDOMNode
(
iface
);
if
(
This
->
nstable
)
note_cc_edge
((
nsISupports
*
)
This
->
nstable
,
"This->nstable"
,
cb
);
}
static
void
HTMLTable_unlink
(
HTMLDOMNode
*
iface
)
{
HTMLTable
*
This
=
impl_from_HTMLDOMNode
(
iface
);
if
(
This
->
nstable
)
{
nsIDOMHTMLTableElement
*
nstable
=
This
->
nstable
;
This
->
nstable
=
NULL
;
nsIDOMHTMLTableElement_Release
(
nstable
);
}
}
static
const
cpc_entry_t
HTMLTable_cpc
[]
=
{
static
const
cpc_entry_t
HTMLTable_cpc
[]
=
{
{
&
DIID_HTMLTableEvents
},
{
&
DIID_HTMLTableEvents
},
HTMLELEMENT_CPC
,
HTMLELEMENT_CPC
,
...
@@ -1005,7 +1025,18 @@ static const NodeImplVtbl HTMLTableImplVtbl = {
...
@@ -1005,7 +1025,18 @@ static const NodeImplVtbl HTMLTableImplVtbl = {
HTMLTable_cpc
,
HTMLTable_cpc
,
HTMLElement_clone
,
HTMLElement_clone
,
HTMLElement_handle_event
,
HTMLElement_handle_event
,
HTMLElement_get_attr_col
HTMLElement_get_attr_col
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
HTMLTable_traverse
,
HTMLTable_unlink
};
};
static
const
tid_t
HTMLTable_iface_tids
[]
=
{
static
const
tid_t
HTMLTable_iface_tids
[]
=
{
...
@@ -1040,10 +1071,7 @@ HRESULT HTMLTable_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLE
...
@@ -1040,10 +1071,7 @@ HRESULT HTMLTable_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLE
HTMLElement_Init
(
&
ret
->
element
,
doc
,
nselem
,
&
HTMLTable_dispex
);
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
);
assert
(
nsres
==
NS_OK
);
/* Share the reference with nsnode */
assert
(
nsres
==
NS_OK
&&
(
nsIDOMNode
*
)
ret
->
nstable
==
ret
->
element
.
node
.
nsnode
);
nsIDOMNode_Release
(
ret
->
element
.
node
.
nsnode
);
*
elem
=
&
ret
->
element
;
*
elem
=
&
ret
->
element
;
return
S_OK
;
return
S_OK
;
...
...
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