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
0f6f96ea
Commit
0f6f96ea
authored
Feb 21, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 22, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Get rid of nsIWineURI::[GS]etNSContainer.
parent
a42bc25d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
42 deletions
+18
-42
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-0
nsiface.idl
dlls/mshtml/nsiface.idl
+0
-4
nsio.c
dlls/mshtml/nsio.c
+17
-38
No files found.
dlls/mshtml/mshtml_private.h
View file @
0f6f96ea
...
...
@@ -176,6 +176,7 @@ typedef struct HTMLWindow HTMLWindow;
typedef
struct
HTMLDocumentNode
HTMLDocumentNode
;
typedef
struct
HTMLDocumentObj
HTMLDocumentObj
;
typedef
struct
HTMLFrameBase
HTMLFrameBase
;
typedef
struct
NSContainer
NSContainer
;
typedef
enum
{
SCRIPTMODE_GECKO
,
...
...
dlls/mshtml/nsiface.idl
View file @
0f6f96ea
...
...
@@ -2834,8 +2834,4 @@ interface nsIDocumentObserver : nsIMutationObserver
]
interface nsIWineURI : nsIURL
{
typedef struct NSContainer NSContainer;
nsresult GetNSContainer(NSContainer **aNSContainer);
nsresult SetNSContainer(NSContainer *aNSContainer);
}
dlls/mshtml/nsio.c
View file @
0f6f96ea
...
...
@@ -268,6 +268,20 @@ HRESULT set_wine_url(nsWineURI *This, LPCWSTR url)
return
S_OK
;
}
static
void
set_uri_nscontainer
(
nsWineURI
*
This
,
NSContainer
*
nscontainer
)
{
if
(
This
->
container
)
{
if
(
This
->
container
==
nscontainer
)
return
;
TRACE
(
"Changing %p -> %p
\n
"
,
This
->
container
,
nscontainer
);
nsIWebBrowserChrome_Release
(
NSWBCHROME
(
This
->
container
));
}
if
(
nscontainer
)
nsIWebBrowserChrome_AddRef
(
NSWBCHROME
(
nscontainer
));
This
->
container
=
nscontainer
;
}
static
void
set_uri_window
(
nsWineURI
*
This
,
HTMLWindow
*
window
)
{
if
(
This
->
window_ref
)
{
...
...
@@ -282,7 +296,7 @@ static void set_uri_window(nsWineURI *This, HTMLWindow *window)
This
->
window_ref
=
window
->
window_ref
;
if
(
window
->
doc_obj
)
nsIWineURI_SetNSContainer
(
NSWINEURI
(
This
)
,
window
->
doc_obj
->
nscontainer
);
set_uri_nscontainer
(
This
,
window
->
doc_obj
->
nscontainer
);
}
else
{
This
->
window_ref
=
NULL
;
}
...
...
@@ -2096,39 +2110,6 @@ static nsresult NSAPI nsURL_GetRelativeSpec(nsIWineURI *iface, nsIURI *aURIToCom
return
NS_ERROR_NOT_IMPLEMENTED
;
}
static
nsresult
NSAPI
nsURI_GetNSContainer
(
nsIWineURI
*
iface
,
NSContainer
**
aContainer
)
{
nsWineURI
*
This
=
NSURI_THIS
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
aContainer
);
if
(
This
->
container
)
nsIWebBrowserChrome_AddRef
(
NSWBCHROME
(
This
->
container
));
*
aContainer
=
This
->
container
;
return
NS_OK
;
}
static
nsresult
NSAPI
nsURI_SetNSContainer
(
nsIWineURI
*
iface
,
NSContainer
*
aContainer
)
{
nsWineURI
*
This
=
NSURI_THIS
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
aContainer
);
if
(
This
->
container
)
{
if
(
This
->
container
==
aContainer
)
return
NS_OK
;
TRACE
(
"Changing %p -> %p
\n
"
,
This
->
container
,
aContainer
);
nsIWebBrowserChrome_Release
(
NSWBCHROME
(
This
->
container
));
}
if
(
aContainer
)
nsIWebBrowserChrome_AddRef
(
NSWBCHROME
(
aContainer
));
This
->
container
=
aContainer
;
return
NS_OK
;
}
#undef NSURI_THIS
static
const
nsIWineURIVtbl
nsWineURIVtbl
=
{
...
...
@@ -2178,9 +2159,7 @@ static const nsIWineURIVtbl nsWineURIVtbl = {
nsURL_GetFileExtension
,
nsURL_SetFileExtension
,
nsURL_GetCommonBaseSpec
,
nsURL_GetRelativeSpec
,
nsURI_GetNSContainer
,
nsURI_SetNSContainer
,
nsURL_GetRelativeSpec
};
static
nsresult
create_uri
(
nsIURI
*
uri
,
HTMLWindow
*
window
,
NSContainer
*
container
,
nsWineURI
**
_retval
)
...
...
@@ -2191,7 +2170,7 @@ static nsresult create_uri(nsIURI *uri, HTMLWindow *window, NSContainer *contain
ret
->
ref
=
1
;
ret
->
uri
=
uri
;
nsIWineURI_SetNSContainer
(
NSWINEURI
(
ret
)
,
container
);
set_uri_nscontainer
(
ret
,
container
);
set_uri_window
(
ret
,
window
);
if
(
uri
)
...
...
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