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
29944c7c
Commit
29944c7c
authored
Dec 27, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 28, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: COM cleanup for the nsIWebBrowserChrome iface.
parent
6994317b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-2
nsembed.c
dlls/mshtml/nsembed.c
+0
-0
nsio.c
dlls/mshtml/nsio.c
+4
-4
No files found.
dlls/mshtml/mshtml_private.h
View file @
29944c7c
...
@@ -443,7 +443,7 @@ struct HTMLDocumentObj {
...
@@ -443,7 +443,7 @@ struct HTMLDocumentObj {
};
};
struct
NSContainer
{
struct
NSContainer
{
const
nsIWebBrowserChromeVtbl
*
lpWebBrowserChromeVtbl
;
nsIWebBrowserChrome
nsIWebBrowserChrome_iface
;
const
nsIContextMenuListenerVtbl
*
lpContextMenuListenerVtbl
;
const
nsIContextMenuListenerVtbl
*
lpContextMenuListenerVtbl
;
const
nsIURIContentListenerVtbl
*
lpURIContentListenerVtbl
;
const
nsIURIContentListenerVtbl
*
lpURIContentListenerVtbl
;
const
nsIEmbeddingSiteWindowVtbl
*
lpEmbeddingSiteWindowVtbl
;
const
nsIEmbeddingSiteWindowVtbl
*
lpEmbeddingSiteWindowVtbl
;
...
@@ -627,7 +627,6 @@ struct HTMLDocumentNode {
...
@@ -627,7 +627,6 @@ struct HTMLDocumentNode {
#define CONPTCONT(x) ((IConnectionPointContainer*) &(x)->lpConnectionPointContainerVtbl)
#define CONPTCONT(x) ((IConnectionPointContainer*) &(x)->lpConnectionPointContainerVtbl)
#define CUSTOMDOC(x) ((ICustomDoc*) &(x)->lpCustomDocVtbl)
#define CUSTOMDOC(x) ((ICustomDoc*) &(x)->lpCustomDocVtbl)
#define NSWBCHROME(x) ((nsIWebBrowserChrome*) &(x)->lpWebBrowserChromeVtbl)
#define NSCML(x) ((nsIContextMenuListener*) &(x)->lpContextMenuListenerVtbl)
#define NSCML(x) ((nsIContextMenuListener*) &(x)->lpContextMenuListenerVtbl)
#define NSURICL(x) ((nsIURIContentListener*) &(x)->lpURIContentListenerVtbl)
#define NSURICL(x) ((nsIURIContentListener*) &(x)->lpURIContentListenerVtbl)
#define NSEMBWNDS(x) ((nsIEmbeddingSiteWindow*) &(x)->lpEmbeddingSiteWindowVtbl)
#define NSEMBWNDS(x) ((nsIEmbeddingSiteWindow*) &(x)->lpEmbeddingSiteWindowVtbl)
...
...
dlls/mshtml/nsembed.c
View file @
29944c7c
This diff is collapsed.
Click to expand it.
dlls/mshtml/nsio.c
View file @
29944c7c
...
@@ -218,11 +218,11 @@ static void set_uri_nscontainer(nsWineURI *This, NSContainer *nscontainer)
...
@@ -218,11 +218,11 @@ static void set_uri_nscontainer(nsWineURI *This, NSContainer *nscontainer)
if
(
This
->
container
==
nscontainer
)
if
(
This
->
container
==
nscontainer
)
return
;
return
;
TRACE
(
"Changing %p -> %p
\n
"
,
This
->
container
,
nscontainer
);
TRACE
(
"Changing %p -> %p
\n
"
,
This
->
container
,
nscontainer
);
nsIWebBrowserChrome_Release
(
NSWBCHROME
(
This
->
container
)
);
nsIWebBrowserChrome_Release
(
&
This
->
container
->
nsIWebBrowserChrome_iface
);
}
}
if
(
nscontainer
)
if
(
nscontainer
)
nsIWebBrowserChrome_AddRef
(
NSWBCHROME
(
nscontainer
)
);
nsIWebBrowserChrome_AddRef
(
&
nscontainer
->
nsIWebBrowserChrome_iface
);
This
->
container
=
nscontainer
;
This
->
container
=
nscontainer
;
}
}
...
@@ -1624,7 +1624,7 @@ static nsrefcnt NSAPI nsURI_Release(nsIURL *iface)
...
@@ -1624,7 +1624,7 @@ static nsrefcnt NSAPI nsURI_Release(nsIURL *iface)
if
(
This
->
window_ref
)
if
(
This
->
window_ref
)
windowref_release
(
This
->
window_ref
);
windowref_release
(
This
->
window_ref
);
if
(
This
->
container
)
if
(
This
->
container
)
nsIWebBrowserChrome_Release
(
NSWBCHROME
(
This
->
container
)
);
nsIWebBrowserChrome_Release
(
&
This
->
container
->
nsIWebBrowserChrome_iface
);
if
(
This
->
nsurl
)
if
(
This
->
nsurl
)
nsIURL_Release
(
This
->
nsurl
);
nsIURL_Release
(
This
->
nsurl
);
if
(
This
->
nsuri
)
if
(
This
->
nsuri
)
...
@@ -3099,7 +3099,7 @@ nsresult on_start_uri_open(NSContainer *nscontainer, nsIURI *uri, PRBool *_retva
...
@@ -3099,7 +3099,7 @@ nsresult on_start_uri_open(NSContainer *nscontainer, nsIURI *uri, PRBool *_retva
wine_uri
->
is_doc_uri
=
TRUE
;
wine_uri
->
is_doc_uri
=
TRUE
;
if
(
!
wine_uri
->
container
)
{
if
(
!
wine_uri
->
container
)
{
nsIWebBrowserChrome_AddRef
(
NSWBCHROME
(
nscontainer
)
);
nsIWebBrowserChrome_AddRef
(
&
nscontainer
->
nsIWebBrowserChrome_iface
);
wine_uri
->
container
=
nscontainer
;
wine_uri
->
container
=
nscontainer
;
}
}
...
...
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