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
88d75f11
Commit
88d75f11
authored
Jan 11, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 11, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Get rid of wrapped nsurl.
parent
fc899dfa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
56 deletions
+5
-56
nsio.c
dlls/mshtml/nsio.c
+5
-56
No files found.
dlls/mshtml/nsio.c
View file @
88d75f11
...
...
@@ -59,7 +59,6 @@ struct nsWineURI {
LONG
ref
;
nsIURI
*
nsuri
;
nsIURL
*
nsurl
;
NSContainer
*
container
;
windowref_t
*
window_ref
;
nsChannelBSC
*
channel_bsc
;
...
...
@@ -1792,8 +1791,6 @@ static nsrefcnt NSAPI nsURI_Release(nsIURL *iface)
windowref_release
(
This
->
window_ref
);
if
(
This
->
container
)
nsIWebBrowserChrome_Release
(
&
This
->
container
->
nsIWebBrowserChrome_iface
);
if
(
This
->
nsurl
)
nsIURL_Release
(
This
->
nsurl
);
if
(
This
->
nsuri
)
nsIURI_Release
(
This
->
nsuri
);
if
(
This
->
uri
)
...
...
@@ -2644,18 +2641,7 @@ static nsresult NSAPI nsURL_GetFileName(nsIURL *iface, nsACString *aFileName)
static
nsresult
NSAPI
nsURL_SetFileName
(
nsIURL
*
iface
,
const
nsACString
*
aFileName
)
{
nsWineURI
*
This
=
impl_from_nsIURL
(
iface
);
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_nsacstr
(
aFileName
));
if
(
!
This
->
is_mutable
)
return
NS_ERROR_UNEXPECTED
;
if
(
This
->
nsurl
)
{
invalidate_uri
(
This
);
return
nsIURL_SetFileName
(
This
->
nsurl
,
aFileName
);
}
FIXME
(
"default action not implemented
\n
"
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_nsacstr
(
aFileName
));
return
NS_ERROR_NOT_IMPLEMENTED
;
}
...
...
@@ -2680,18 +2666,7 @@ static nsresult NSAPI nsURL_GetFileBaseName(nsIURL *iface, nsACString *aFileBase
static
nsresult
NSAPI
nsURL_SetFileBaseName
(
nsIURL
*
iface
,
const
nsACString
*
aFileBaseName
)
{
nsWineURI
*
This
=
impl_from_nsIURL
(
iface
);
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_nsacstr
(
aFileBaseName
));
if
(
!
This
->
is_mutable
)
return
NS_ERROR_UNEXPECTED
;
if
(
This
->
nsurl
)
{
invalidate_uri
(
This
);
return
nsIURL_SetFileBaseName
(
This
->
nsurl
,
aFileBaseName
);
}
FIXME
(
"default action not implemented
\n
"
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_nsacstr
(
aFileBaseName
));
return
NS_ERROR_NOT_IMPLEMENTED
;
}
...
...
@@ -2707,44 +2682,21 @@ static nsresult NSAPI nsURL_GetFileExtension(nsIURL *iface, nsACString *aFileExt
static
nsresult
NSAPI
nsURL_SetFileExtension
(
nsIURL
*
iface
,
const
nsACString
*
aFileExtension
)
{
nsWineURI
*
This
=
impl_from_nsIURL
(
iface
);
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_nsacstr
(
aFileExtension
));
if
(
!
This
->
is_mutable
)
return
NS_ERROR_UNEXPECTED
;
if
(
This
->
nsurl
)
{
invalidate_uri
(
This
);
return
nsIURL_SetFileExtension
(
This
->
nsurl
,
aFileExtension
);
}
FIXME
(
"default action not implemented
\n
"
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_nsacstr
(
aFileExtension
));
return
NS_ERROR_NOT_IMPLEMENTED
;
}
static
nsresult
NSAPI
nsURL_GetCommonBaseSpec
(
nsIURL
*
iface
,
nsIURI
*
aURIToCompare
,
nsACString
*
_retval
)
{
nsWineURI
*
This
=
impl_from_nsIURL
(
iface
);
TRACE
(
"(%p)->(%p %p)
\n
"
,
This
,
aURIToCompare
,
_retval
);
if
(
This
->
nsurl
)
return
nsIURL_GetCommonBaseSpec
(
This
->
nsurl
,
aURIToCompare
,
_retval
);
FIXME
(
"default action not implemented
\n
"
);
FIXME
(
"(%p)->(%p %p)
\n
"
,
This
,
aURIToCompare
,
_retval
);
return
NS_ERROR_NOT_IMPLEMENTED
;
}
static
nsresult
NSAPI
nsURL_GetRelativeSpec
(
nsIURL
*
iface
,
nsIURI
*
aURIToCompare
,
nsACString
*
_retval
)
{
nsWineURI
*
This
=
impl_from_nsIURL
(
iface
);
TRACE
(
"(%p)->(%p %p)
\n
"
,
This
,
aURIToCompare
,
_retval
);
if
(
This
->
nsurl
)
return
nsIURL_GetRelativeSpec
(
This
->
nsurl
,
aURIToCompare
,
_retval
);
FIXME
(
"default action not implemented
\n
"
);
FIXME
(
"(%p)->(%p %p)
\n
"
,
This
,
aURIToCompare
,
_retval
);
return
NS_ERROR_NOT_IMPLEMENTED
;
}
...
...
@@ -2879,9 +2831,6 @@ static nsresult create_nsuri(IUri *iuri, nsIURI *nsuri, HTMLWindow *window, NSCo
IUri_AddRef
(
iuri
);
ret
->
uri
=
iuri
;
if
(
nsuri
)
nsIURI_QueryInterface
(
nsuri
,
&
IID_nsIURL
,
(
void
**
)
&
ret
->
nsurl
);
TRACE
(
"retval=%p
\n
"
,
ret
);
*
_retval
=
ret
;
return
NS_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