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
556b2ad0
Commit
556b2ad0
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 nstextarea reference with nsnode.
parent
01e09bbb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
7 deletions
+30
-7
htmltextarea.c
dlls/mshtml/htmltextarea.c
+30
-7
No files found.
dlls/mshtml/htmltextarea.c
View file @
556b2ad0
...
...
@@ -411,6 +411,26 @@ static HRESULT HTMLTextAreaElementImpl_get_disabled(HTMLDOMNode *iface, VARIANT_
return
IHTMLTextAreaElement_get_disabled
(
&
This
->
IHTMLTextAreaElement_iface
,
p
);
}
static
void
HTMLTextAreaElement_traverse
(
HTMLDOMNode
*
iface
,
nsCycleCollectionTraversalCallback
*
cb
)
{
HTMLTextAreaElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
if
(
This
->
nstextarea
)
note_cc_edge
((
nsISupports
*
)
This
->
nstextarea
,
"This->nstextarea"
,
cb
);
}
static
void
HTMLTextAreaElement_unlink
(
HTMLDOMNode
*
iface
)
{
HTMLTextAreaElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
if
(
This
->
nstextarea
)
{
nsIDOMHTMLTextAreaElement
*
nstextarea
=
This
->
nstextarea
;
This
->
nstextarea
=
NULL
;
nsIDOMHTMLTextAreaElement_Release
(
nstextarea
);
}
}
static
const
NodeImplVtbl
HTMLTextAreaElementImplVtbl
=
{
HTMLTextAreaElement_QI
,
HTMLElement_destructor
,
...
...
@@ -421,7 +441,14 @@ static const NodeImplVtbl HTMLTextAreaElementImplVtbl = {
NULL
,
NULL
,
HTMLTextAreaElementImpl_put_disabled
,
HTMLTextAreaElementImpl_get_disabled
HTMLTextAreaElementImpl_get_disabled
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
HTMLTextAreaElement_traverse
,
HTMLTextAreaElement_unlink
};
static
const
tid_t
HTMLTextAreaElement_iface_tids
[]
=
{
...
...
@@ -451,12 +478,8 @@ HRESULT HTMLTextAreaElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nse
HTMLElement_Init
(
&
ret
->
element
,
doc
,
nselem
,
&
HTMLTextAreaElement_dispex
);
nsres
=
nsIDOMHTMLElement_QueryInterface
(
nselem
,
&
IID_nsIDOMHTMLTextAreaElement
,
(
void
**
)
&
ret
->
nstextarea
);
/* Share nstextarea reference with nsnode */
assert
(
nsres
==
NS_OK
&&
(
nsIDOMNode
*
)
ret
->
nstextarea
==
ret
->
element
.
node
.
nsnode
);
nsIDOMNode_Release
(
ret
->
element
.
node
.
nsnode
);
nsres
=
nsIDOMHTMLElement_QueryInterface
(
nselem
,
&
IID_nsIDOMHTMLTextAreaElement
,
(
void
**
)
&
ret
->
nstextarea
);
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