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
29205426
Commit
29205426
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 nsanchor reference with nsnode.
parent
59d9a2e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
5 deletions
+33
-5
htmlanchor.c
dlls/mshtml/htmlanchor.c
+33
-5
No files found.
dlls/mshtml/htmlanchor.c
View file @
29205426
...
@@ -737,13 +737,44 @@ static HRESULT HTMLAnchorElement_handle_event(HTMLDOMNode *iface, eventid_t eid,
...
@@ -737,13 +737,44 @@ static HRESULT HTMLAnchorElement_handle_event(HTMLDOMNode *iface, eventid_t eid,
return
HTMLElement_handle_event
(
&
This
->
element
.
node
,
eid
,
event
,
prevent_default
);
return
HTMLElement_handle_event
(
&
This
->
element
.
node
,
eid
,
event
,
prevent_default
);
}
}
static
void
HTMLAnchorElement_traverse
(
HTMLDOMNode
*
iface
,
nsCycleCollectionTraversalCallback
*
cb
)
{
HTMLAnchorElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
if
(
This
->
nsanchor
)
note_cc_edge
((
nsISupports
*
)
This
->
nsanchor
,
"This->nsanchor"
,
cb
);
}
static
void
HTMLAnchorElement_unlink
(
HTMLDOMNode
*
iface
)
{
HTMLAnchorElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
if
(
This
->
nsanchor
)
{
nsIDOMHTMLAnchorElement
*
nsanchor
=
This
->
nsanchor
;
This
->
nsanchor
=
NULL
;
nsIDOMHTMLAnchorElement_Release
(
nsanchor
);
}
}
static
const
NodeImplVtbl
HTMLAnchorElementImplVtbl
=
{
static
const
NodeImplVtbl
HTMLAnchorElementImplVtbl
=
{
HTMLAnchorElement_QI
,
HTMLAnchorElement_QI
,
HTMLElement_destructor
,
HTMLElement_destructor
,
HTMLElement_cpc
,
HTMLElement_cpc
,
HTMLElement_clone
,
HTMLElement_clone
,
HTMLAnchorElement_handle_event
,
HTMLAnchorElement_handle_event
,
HTMLElement_get_attr_col
HTMLElement_get_attr_col
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
HTMLAnchorElement_traverse
,
HTMLAnchorElement_unlink
};
};
static
const
tid_t
HTMLAnchorElement_iface_tids
[]
=
{
static
const
tid_t
HTMLAnchorElement_iface_tids
[]
=
{
...
@@ -775,10 +806,7 @@ HRESULT HTMLAnchorElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nsele
...
@@ -775,10 +806,7 @@ HRESULT HTMLAnchorElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nsele
HTMLElement_Init
(
&
ret
->
element
,
doc
,
nselem
,
&
HTMLAnchorElement_dispex
);
HTMLElement_Init
(
&
ret
->
element
,
doc
,
nselem
,
&
HTMLAnchorElement_dispex
);
nsres
=
nsIDOMHTMLElement_QueryInterface
(
nselem
,
&
IID_nsIDOMHTMLAnchorElement
,
(
void
**
)
&
ret
->
nsanchor
);
nsres
=
nsIDOMHTMLElement_QueryInterface
(
nselem
,
&
IID_nsIDOMHTMLAnchorElement
,
(
void
**
)
&
ret
->
nsanchor
);
assert
(
nsres
==
NS_OK
);
/* Shere the reference with nsnode */
assert
(
nsres
==
NS_OK
&&
(
nsIDOMNode
*
)
ret
->
nsanchor
==
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