зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1431774 part 7. de-COM the image loading content forceImageState API. r=mystor
MozReview-Commit-ID: LKlo36VHKP5
This commit is contained in:
Родитель
d4e9c1bbea
Коммит
3acfd47047
|
@ -165,11 +165,11 @@ interface nsIImageLoadingContent : imgINotificationObserver
|
||||||
[noscript] nsIStreamListener loadImageWithChannel(in nsIChannel aChannel);
|
[noscript] nsIStreamListener loadImageWithChannel(in nsIChannel aChannel);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enables/disables image state forcing. When |aForce| is PR_TRUE, we force
|
* Enables/disables image state forcing. When |aForce| is true, we force
|
||||||
* nsImageLoadingContent::ImageState() to return |aState|. Call again with |aForce|
|
* nsImageLoadingContent::ImageState() to return |aState|. Call again with |aForce|
|
||||||
* as PR_FALSE to revert ImageState() to its original behaviour.
|
* as false to revert ImageState() to its original behaviour.
|
||||||
*/
|
*/
|
||||||
[noscript] void forceImageState(in boolean aForce, in unsigned long long aState);
|
[notxpcom, nostdcall] void forceImageState(in boolean aForce, in unsigned long long aState);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The intrinsic size and width of this content. May differ from actual image
|
* The intrinsic size and width of this content. May differ from actual image
|
||||||
|
|
|
@ -1057,13 +1057,12 @@ nsImageLoadingContent::LoadImage(nsIURI* aNewURI,
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
nsresult
|
void
|
||||||
nsImageLoadingContent::ForceImageState(bool aForce,
|
nsImageLoadingContent::ForceImageState(bool aForce,
|
||||||
EventStates::InternalType aState)
|
EventStates::InternalType aState)
|
||||||
{
|
{
|
||||||
mIsImageStateForced = aForce;
|
mIsImageStateForced = aForce;
|
||||||
mForcedImageState = EventStates(aState);
|
mForcedImageState = EventStates(aState);
|
||||||
return NS_OK;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
|
|
Загрузка…
Ссылка в новой задаче