зеркало из https://github.com/mozilla/gecko-dev.git
Bug 666446, followup - Make frameCreated and frameDestroyed methods in nsIImageLoadingContent inaccessible to script. [r=dholbert]
This commit is contained in:
Родитель
20000c7e93
Коммит
a9a990bd2f
|
@ -133,13 +133,13 @@ interface nsIImageLoadingContent : imgIDecoderObserver
|
||||||
* Used to notify the image loading content node that a frame has been
|
* Used to notify the image loading content node that a frame has been
|
||||||
* created.
|
* created.
|
||||||
*/
|
*/
|
||||||
void frameCreated(in nsIFrame aFrame);
|
[notxpcom] void frameCreated(in nsIFrame aFrame);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used to notify the image loading content node that a frame has been
|
* Used to notify the image loading content node that a frame has been
|
||||||
* destroyed.
|
* destroyed.
|
||||||
*/
|
*/
|
||||||
void frameDestroyed(in nsIFrame aFrame);
|
[notxpcom] void frameDestroyed(in nsIFrame aFrame);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used to find out what type of request one is dealing with (eg
|
* Used to find out what type of request one is dealing with (eg
|
||||||
|
|
|
@ -512,7 +512,7 @@ nsImageLoadingContent::GetRequest(PRInt32 aRequestType,
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP_(void)
|
||||||
nsImageLoadingContent::FrameCreated(nsIFrame* aFrame)
|
nsImageLoadingContent::FrameCreated(nsIFrame* aFrame)
|
||||||
{
|
{
|
||||||
NS_ASSERTION(aFrame, "aFrame is null");
|
NS_ASSERTION(aFrame, "aFrame is null");
|
||||||
|
@ -532,11 +532,9 @@ nsImageLoadingContent::FrameCreated(nsIFrame* aFrame)
|
||||||
nsLayoutUtils::RegisterImageRequest(presContext, mPendingRequest,
|
nsLayoutUtils::RegisterImageRequest(presContext, mPendingRequest,
|
||||||
&mPendingRequestRegistered);
|
&mPendingRequestRegistered);
|
||||||
}
|
}
|
||||||
|
|
||||||
return NS_OK;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP_(void)
|
||||||
nsImageLoadingContent::FrameDestroyed(nsIFrame* aFrame)
|
nsImageLoadingContent::FrameDestroyed(nsIFrame* aFrame)
|
||||||
{
|
{
|
||||||
NS_ASSERTION(aFrame, "aFrame is null");
|
NS_ASSERTION(aFrame, "aFrame is null");
|
||||||
|
@ -551,8 +549,6 @@ nsImageLoadingContent::FrameDestroyed(nsIFrame* aFrame)
|
||||||
mPendingRequest,
|
mPendingRequest,
|
||||||
&mPendingRequestRegistered);
|
&mPendingRequestRegistered);
|
||||||
}
|
}
|
||||||
|
|
||||||
return NS_OK;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
|
|
Загрузка…
Ссылка в новой задаче