mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1202085 - Part 1: Remove imgICache::RemoveEntry(); r=seth
This commit is contained in:
parent
164b197f13
commit
0473e2063b
@ -17,7 +17,7 @@ interface nsIProperties;
|
|||||||
* @version 0.1
|
* @version 0.1
|
||||||
* @see imagelib2
|
* @see imagelib2
|
||||||
*/
|
*/
|
||||||
[scriptable, builtinclass, uuid(b06e0fa5-d6e2-4fa3-8fc0-7775aed96522)]
|
[scriptable, builtinclass, uuid(6e62f5c9-95b5-4139-bb59-9cbaf14e9b3c)]
|
||||||
interface imgICache : nsISupports
|
interface imgICache : nsISupports
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
@ -28,15 +28,6 @@ interface imgICache : nsISupports
|
|||||||
*/
|
*/
|
||||||
void clearCache(in boolean chrome);
|
void clearCache(in boolean chrome);
|
||||||
|
|
||||||
/**
|
|
||||||
* Evict images from the cache.
|
|
||||||
*
|
|
||||||
* @param uri The URI to remove.
|
|
||||||
* @throws NS_ERROR_NOT_AVAILABLE if \a uri was unable to be removed from
|
|
||||||
* the cache.
|
|
||||||
*/
|
|
||||||
void removeEntry(in nsIURI uri);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Find Properties
|
* Find Properties
|
||||||
* Used to get properties such as 'type' and 'content-disposition'
|
* Used to get properties such as 'type' and 'content-disposition'
|
||||||
|
@ -1334,16 +1334,6 @@ imgLoader::ClearCache(bool chrome)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_IMETHODIMP
|
|
||||||
imgLoader::RemoveEntry(nsIURI* aURI)
|
|
||||||
{
|
|
||||||
if (aURI && RemoveFromCache(ImageCacheKey(aURI))) {
|
|
||||||
return NS_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
return NS_ERROR_NOT_AVAILABLE;
|
|
||||||
}
|
|
||||||
|
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
imgLoader::FindEntryProperties(nsIURI* uri, nsIProperties** _retval)
|
imgLoader::FindEntryProperties(nsIURI* uri, nsIProperties** _retval)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user