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
39005645
Commit
39005645
authored
Jun 27, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 28, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Share nsframe and nsiframe references with nsnode.
parent
6ac375d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
htmlframebase.c
dlls/mshtml/htmlframebase.c
+9
-8
No files found.
dlls/mshtml/htmlframebase.c
View file @
39005645
...
...
@@ -17,6 +17,7 @@
*/
#include <stdarg.h>
#include <assert.h>
#define COBJMACROS
...
...
@@ -522,11 +523,6 @@ void HTMLFrameBase_destructor(HTMLFrameBase *This)
if
(
This
->
content_window
)
This
->
content_window
->
frame_element
=
NULL
;
if
(
This
->
nsframe
)
nsIDOMHTMLFrameElement_Release
(
This
->
nsframe
);
if
(
This
->
nsiframe
)
nsIDOMHTMLIFrameElement_Release
(
This
->
nsiframe
);
HTMLElement_destructor
(
&
This
->
element
.
node
);
}
...
...
@@ -542,9 +538,14 @@ void HTMLFrameBase_Init(HTMLFrameBase *This, HTMLDocumentNode *doc, nsIDOMHTMLEl
nsres
=
nsIDOMHTMLElement_QueryInterface
(
nselem
,
&
IID_nsIDOMHTMLFrameElement
,
(
void
**
)
&
This
->
nsframe
);
if
(
NS_FAILED
(
nsres
))
{
This
->
nsframe
=
NULL
;
nsres
=
nsIDOMHTMLElement_QueryInterface
(
nselem
,
&
IID_nsIDOMHTMLIFrameElement
,
(
void
**
)
&
This
->
nsiframe
);
if
(
NS_FAILED
(
nsres
))
ERR
(
"Could not get nsIDOMHTML[I]Frame interface
\n
"
);
}
else
assert
(
nsres
==
NS_OK
&&
(
nsIDOMNode
*
)
This
->
nsiframe
==
This
->
element
.
node
.
nsnode
);
}
else
{
assert
((
nsIDOMNode
*
)
This
->
nsframe
==
This
->
element
.
node
.
nsnode
);
This
->
nsiframe
=
NULL
;
}
/* Share the reference with nsnode */
nsIDOMNode_Release
(
This
->
element
.
node
.
nsnode
);
}
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