mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 23:08:39 +09:00
Bug 1346501. Remove mFrameCreateCalled from nsImageLoadingContent, it is now unused
This commit is contained in:
parent
ece6d716f4
commit
731b3ea7ee
2 changed files with 1 additions and 9 deletions
|
|
@ -94,8 +94,7 @@ nsImageLoadingContent::nsImageLoadingContent()
|
|||
mNewRequestsWillNeedAnimationReset(false),
|
||||
mStateChangerDepth(0),
|
||||
mCurrentRequestRegistered(false),
|
||||
mPendingRequestRegistered(false),
|
||||
mFrameCreateCalled(false)
|
||||
mPendingRequestRegistered(false)
|
||||
{
|
||||
if (!nsContentUtils::GetImgLoaderForChannel(nullptr, nullptr)) {
|
||||
mLoadingEnabled = false;
|
||||
|
|
@ -489,8 +488,6 @@ nsImageLoadingContent::FrameCreated(nsIFrame* aFrame)
|
|||
{
|
||||
NS_ASSERTION(aFrame, "aFrame is null");
|
||||
|
||||
mFrameCreateCalled = true;
|
||||
|
||||
TrackImage(mCurrentRequest, aFrame);
|
||||
TrackImage(mPendingRequest, aFrame);
|
||||
|
||||
|
|
@ -513,8 +510,6 @@ nsImageLoadingContent::FrameDestroyed(nsIFrame* aFrame)
|
|||
{
|
||||
NS_ASSERTION(aFrame, "aFrame is null");
|
||||
|
||||
mFrameCreateCalled = false;
|
||||
|
||||
// We need to make sure that our image request is deregistered.
|
||||
nsPresContext* presContext = GetFramePresContext();
|
||||
if (mCurrentRequest) {
|
||||
|
|
|
|||
|
|
@ -459,9 +459,6 @@ private:
|
|||
// registered with the refresh driver.
|
||||
bool mCurrentRequestRegistered;
|
||||
bool mPendingRequestRegistered;
|
||||
|
||||
// True when FrameCreate has been called but FrameDestroy has not.
|
||||
bool mFrameCreateCalled;
|
||||
};
|
||||
|
||||
#endif // nsImageLoadingContent_h__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue