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
a57d87d2
Commit
a57d87d2
authored
Sep 24, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 24, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Don't share nslink reference with nsnode.
parent
316417cc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
5 deletions
+27
-5
htmlinput.c
dlls/mshtml/htmlinput.c
+0
-1
htmllink.c
dlls/mshtml/htmllink.c
+27
-4
No files found.
dlls/mshtml/htmlinput.c
View file @
a57d87d2
...
...
@@ -1255,7 +1255,6 @@ static HRESULT HTMLInputElementImpl_get_disabled(HTMLDOMNode *iface, VARIANT_BOO
return
IHTMLInputElement_get_disabled
(
&
This
->
IHTMLInputElement_iface
,
p
);
}
static
void
HTMLInputElement_traverse
(
HTMLDOMNode
*
iface
,
nsCycleCollectionTraversalCallback
*
cb
)
{
HTMLInputElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
...
...
dlls/mshtml/htmllink.c
View file @
a57d87d2
...
...
@@ -397,6 +397,25 @@ static HRESULT HTMLLinkElementImpl_get_disabled(HTMLDOMNode *iface, VARIANT_BOOL
return
IHTMLLinkElement_get_disabled
(
&
This
->
IHTMLLinkElement_iface
,
p
);
}
static
void
HTMLLinkElement_traverse
(
HTMLDOMNode
*
iface
,
nsCycleCollectionTraversalCallback
*
cb
)
{
HTMLLinkElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
if
(
This
->
nslink
)
note_cc_edge
((
nsISupports
*
)
This
->
nslink
,
"This->nslink"
,
cb
);
}
static
void
HTMLLinkElement_unlink
(
HTMLDOMNode
*
iface
)
{
HTMLLinkElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
if
(
This
->
nslink
)
{
nsIDOMHTMLLinkElement
*
nslink
=
This
->
nslink
;
This
->
nslink
=
NULL
;
nsIDOMHTMLLinkElement_Release
(
nslink
);
}
}
static
const
NodeImplVtbl
HTMLLinkElementImplVtbl
=
{
HTMLLinkElement_QI
,
HTMLElement_destructor
,
...
...
@@ -408,6 +427,13 @@ static const NodeImplVtbl HTMLLinkElementImplVtbl = {
NULL
,
HTMLLinkElementImpl_put_disabled
,
HTMLLinkElementImpl_get_disabled
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
HTMLLinkElement_traverse
,
HTMLLinkElement_unlink
};
static
const
tid_t
HTMLLinkElement_iface_tids
[]
=
{
...
...
@@ -437,10 +463,7 @@ HRESULT HTMLLinkElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem,
HTMLElement_Init
(
&
ret
->
element
,
doc
,
nselem
,
&
HTMLLinkElement_dispex
);
nsres
=
nsIDOMHTMLElement_QueryInterface
(
nselem
,
&
IID_nsIDOMHTMLLinkElement
,
(
void
**
)
&
ret
->
nslink
);
/* Share nslink reference with nsnode */
assert
(
nsres
==
NS_OK
&&
(
nsIDOMNode
*
)
ret
->
nslink
==
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