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
d2a97e73
Commit
d2a97e73
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 nscell reference with nsnode.
parent
e5e0fc30
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
5 deletions
+33
-5
htmltablecell.c
dlls/mshtml/htmltablecell.c
+33
-5
No files found.
dlls/mshtml/htmltablecell.c
View file @
d2a97e73
...
...
@@ -398,13 +398,44 @@ static void HTMLTableCell_destructor(HTMLDOMNode *iface)
HTMLElement_destructor
(
&
This
->
element
.
node
);
}
static
void
HTMLTableCell_traverse
(
HTMLDOMNode
*
iface
,
nsCycleCollectionTraversalCallback
*
cb
)
{
HTMLTableCell
*
This
=
impl_from_HTMLDOMNode
(
iface
);
if
(
This
->
nscell
)
note_cc_edge
((
nsISupports
*
)
This
->
nscell
,
"This->nstablecell"
,
cb
);
}
static
void
HTMLTableCell_unlink
(
HTMLDOMNode
*
iface
)
{
HTMLTableCell
*
This
=
impl_from_HTMLDOMNode
(
iface
);
if
(
This
->
nscell
)
{
nsIDOMHTMLTableCellElement
*
nscell
=
This
->
nscell
;
This
->
nscell
=
NULL
;
nsIDOMHTMLTableCellElement_Release
(
nscell
);
}
}
static
const
NodeImplVtbl
HTMLTableCellImplVtbl
=
{
HTMLTableCell_QI
,
HTMLTableCell_destructor
,
HTMLElement_cpc
,
HTMLElement_clone
,
HTMLElement_handle_event
,
HTMLElement_get_attr_col
HTMLElement_get_attr_col
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
HTMLTableCell_traverse
,
HTMLTableCell_unlink
};
static
const
tid_t
HTMLTableCell_iface_tids
[]
=
{
...
...
@@ -435,10 +466,7 @@ HRESULT HTMLTableCell_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, H
HTMLElement_Init
(
&
ret
->
element
,
doc
,
nselem
,
&
HTMLTableCell_dispex
);
nsres
=
nsIDOMHTMLElement_QueryInterface
(
nselem
,
&
IID_nsIDOMHTMLTableCellElement
,
(
void
**
)
&
ret
->
nscell
);
/* Share nscell reference with nsnode */
assert
(
nsres
==
NS_OK
&&
(
nsIDOMNode
*
)
ret
->
nscell
==
ret
->
element
.
node
.
nsnode
);
nsIDOMNode_Release
(
ret
->
element
.
node
.
nsnode
);
assert
(
nsres
==
NS_OK
);
*
elem
=
&
ret
->
element
;
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