Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
727c1ceb
Commit
727c1ceb
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 nsframe and nsiframe reference with nsnode.
parent
5f149f52
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
6 deletions
+47
-6
htmlframe.c
dlls/mshtml/htmlframe.c
+23
-1
htmlframebase.c
dlls/mshtml/htmlframebase.c
+1
-4
htmliframe.c
dlls/mshtml/htmliframe.c
+23
-1
No files found.
dlls/mshtml/htmlframe.c
View file @
727c1ceb
...
...
@@ -266,6 +266,26 @@ static HRESULT HTMLFrameElement_bind_to_tree(HTMLDOMNode *iface)
return
hres
;
}
static
void
HTMLFrameElement_traverse
(
HTMLDOMNode
*
iface
,
nsCycleCollectionTraversalCallback
*
cb
)
{
HTMLFrameElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
if
(
This
->
framebase
.
nsframe
)
note_cc_edge
((
nsISupports
*
)
This
->
framebase
.
nsframe
,
"This->nsframe"
,
cb
);
}
static
void
HTMLFrameElement_unlink
(
HTMLDOMNode
*
iface
)
{
HTMLFrameElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
if
(
This
->
framebase
.
nsframe
)
{
nsIDOMHTMLFrameElement
*
nsframe
=
This
->
framebase
.
nsframe
;
This
->
framebase
.
nsframe
=
NULL
;
nsIDOMHTMLFrameElement_Release
(
nsframe
);
}
}
static
const
NodeImplVtbl
HTMLFrameElementImplVtbl
=
{
HTMLFrameElement_QI
,
HTMLFrameElement_destructor
,
...
...
@@ -281,7 +301,9 @@ static const NodeImplVtbl HTMLFrameElementImplVtbl = {
HTMLFrameElement_get_readystate
,
HTMLFrameElement_get_dispid
,
HTMLFrameElement_invoke
,
HTMLFrameElement_bind_to_tree
HTMLFrameElement_bind_to_tree
,
HTMLFrameElement_traverse
,
HTMLFrameElement_unlink
};
static
const
tid_t
HTMLFrameElement_iface_tids
[]
=
{
...
...
dlls/mshtml/htmlframebase.c
View file @
727c1ceb
...
...
@@ -707,12 +707,9 @@ void HTMLFrameBase_Init(HTMLFrameBase *This, HTMLDocumentNode *doc, nsIDOMHTMLEl
if
(
NS_FAILED
(
nsres
))
{
This
->
nsframe
=
NULL
;
nsres
=
nsIDOMHTMLElement_QueryInterface
(
nselem
,
&
IID_nsIDOMHTMLIFrameElement
,
(
void
**
)
&
This
->
nsiframe
);
assert
(
nsres
==
NS_OK
&&
(
nsIDOMNode
*
)
This
->
nsiframe
==
This
->
element
.
node
.
nsnode
);
assert
(
nsres
==
NS_OK
);
}
else
{
assert
((
nsIDOMNode
*
)
This
->
nsframe
==
This
->
element
.
node
.
nsnode
);
This
->
nsiframe
=
NULL
;
}
/* Share the reference with nsnode */
nsIDOMNode_Release
(
This
->
element
.
node
.
nsnode
);
}
dlls/mshtml/htmliframe.c
View file @
727c1ceb
...
...
@@ -539,6 +539,26 @@ static HRESULT HTMLIFrame_bind_to_tree(HTMLDOMNode *iface)
return
hres
;
}
static
void
HTMLIFrame_traverse
(
HTMLDOMNode
*
iface
,
nsCycleCollectionTraversalCallback
*
cb
)
{
HTMLIFrame
*
This
=
impl_from_HTMLDOMNode
(
iface
);
if
(
This
->
framebase
.
nsiframe
)
note_cc_edge
((
nsISupports
*
)
This
->
framebase
.
nsiframe
,
"This->nsiframe"
,
cb
);
}
static
void
HTMLIFrame_unlink
(
HTMLDOMNode
*
iface
)
{
HTMLIFrame
*
This
=
impl_from_HTMLDOMNode
(
iface
);
if
(
This
->
framebase
.
nsiframe
)
{
nsIDOMHTMLIFrameElement
*
nsiframe
=
This
->
framebase
.
nsiframe
;
This
->
framebase
.
nsiframe
=
NULL
;
nsIDOMHTMLIFrameElement_Release
(
nsiframe
);
}
}
static
const
NodeImplVtbl
HTMLIFrameImplVtbl
=
{
HTMLIFrame_QI
,
HTMLIFrame_destructor
,
...
...
@@ -554,7 +574,9 @@ static const NodeImplVtbl HTMLIFrameImplVtbl = {
HTMLIFrame_get_readystate
,
HTMLIFrame_get_dispid
,
HTMLIFrame_invoke
,
HTMLIFrame_bind_to_tree
HTMLIFrame_bind_to_tree
,
HTMLIFrame_traverse
,
HTMLIFrame_unlink
};
static
const
tid_t
HTMLIFrame_iface_tids
[]
=
{
...
...
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