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
1e9f3392
Commit
1e9f3392
authored
Sep 26, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 26, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Don't share nsrow reference with nsnode.
parent
e391dfc8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
5 deletions
+33
-5
htmltablerow.c
dlls/mshtml/htmltablerow.c
+33
-5
No files found.
dlls/mshtml/htmltablerow.c
View file @
1e9f3392
...
...
@@ -402,13 +402,44 @@ static HRESULT HTMLTableRow_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
return
HTMLElement_QI
(
&
This
->
element
.
node
,
riid
,
ppv
);
}
static
void
HTMLTableRow_traverse
(
HTMLDOMNode
*
iface
,
nsCycleCollectionTraversalCallback
*
cb
)
{
HTMLTableRow
*
This
=
impl_from_HTMLDOMNode
(
iface
);
if
(
This
->
nsrow
)
note_cc_edge
((
nsISupports
*
)
This
->
nsrow
,
"This->nstablerow"
,
cb
);
}
static
void
HTMLTableRow_unlink
(
HTMLDOMNode
*
iface
)
{
HTMLTableRow
*
This
=
impl_from_HTMLDOMNode
(
iface
);
if
(
This
->
nsrow
)
{
nsIDOMHTMLTableRowElement
*
nsrow
=
This
->
nsrow
;
This
->
nsrow
=
NULL
;
nsIDOMHTMLTableRowElement_Release
(
nsrow
);
}
}
static
const
NodeImplVtbl
HTMLTableRowImplVtbl
=
{
HTMLTableRow_QI
,
HTMLElement_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
,
HTMLTableRow_traverse
,
HTMLTableRow_unlink
};
static
const
tid_t
HTMLTableRow_iface_tids
[]
=
{
...
...
@@ -439,10 +470,7 @@ HRESULT HTMLTableRow_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HT
HTMLElement_Init
(
&
ret
->
element
,
doc
,
nselem
,
&
HTMLTableRow_dispex
);
nsres
=
nsIDOMHTMLElement_QueryInterface
(
nselem
,
&
IID_nsIDOMHTMLTableRowElement
,
(
void
**
)
&
ret
->
nsrow
);
/* Share nsrow reference with nsnode */
assert
(
nsres
==
NS_OK
&&
(
nsIDOMNode
*
)
ret
->
nsrow
==
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