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
01e09bbb
Commit
01e09bbb
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 nsoption reference with nsnode.
parent
cac39acb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
5 deletions
+33
-5
htmloption.c
dlls/mshtml/htmloption.c
+33
-5
No files found.
dlls/mshtml/htmloption.c
View file @
01e09bbb
...
@@ -311,13 +311,44 @@ static HRESULT HTMLOptionElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
...
@@ -311,13 +311,44 @@ static HRESULT HTMLOptionElement_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
HTMLOptionElement_traverse
(
HTMLDOMNode
*
iface
,
nsCycleCollectionTraversalCallback
*
cb
)
{
HTMLOptionElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
if
(
This
->
nsoption
)
note_cc_edge
((
nsISupports
*
)
This
->
nsoption
,
"This->nsoption"
,
cb
);
}
static
void
HTMLOptionElement_unlink
(
HTMLDOMNode
*
iface
)
{
HTMLOptionElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
if
(
This
->
nsoption
)
{
nsIDOMHTMLOptionElement
*
nsoption
=
This
->
nsoption
;
This
->
nsoption
=
NULL
;
nsIDOMHTMLOptionElement_Release
(
nsoption
);
}
}
static
const
NodeImplVtbl
HTMLOptionElementImplVtbl
=
{
static
const
NodeImplVtbl
HTMLOptionElementImplVtbl
=
{
HTMLOptionElement_QI
,
HTMLOptionElement_QI
,
HTMLElement_destructor
,
HTMLElement_destructor
,
HTMLElement_cpc
,
HTMLElement_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
,
HTMLOptionElement_traverse
,
HTMLOptionElement_unlink
};
};
static
const
tid_t
HTMLOptionElement_iface_tids
[]
=
{
static
const
tid_t
HTMLOptionElement_iface_tids
[]
=
{
...
@@ -347,10 +378,7 @@ HRESULT HTMLOptionElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nsele
...
@@ -347,10 +378,7 @@ HRESULT HTMLOptionElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nsele
HTMLElement_Init
(
&
ret
->
element
,
doc
,
nselem
,
&
HTMLOptionElement_dispex
);
HTMLElement_Init
(
&
ret
->
element
,
doc
,
nselem
,
&
HTMLOptionElement_dispex
);
nsres
=
nsIDOMHTMLElement_QueryInterface
(
nselem
,
&
IID_nsIDOMHTMLOptionElement
,
(
void
**
)
&
ret
->
nsoption
);
nsres
=
nsIDOMHTMLElement_QueryInterface
(
nselem
,
&
IID_nsIDOMHTMLOptionElement
,
(
void
**
)
&
ret
->
nsoption
);
assert
(
nsres
==
NS_OK
);
/* Share nsoption reference with nsnode */
assert
(
nsres
==
NS_OK
&&
(
nsIDOMNode
*
)
ret
->
nsoption
==
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