diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-07-12 18:57:25 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-07-12 18:57:25 +0200 |
commit | fe8998035ac4680151790fe6aa4021b33434af2e (patch) | |
tree | 5478f84ba8ad7d9c3817a2fc0f7af7c1dc3dc680 /dom/base | |
parent | 44db0bfcdc54dca3aa7e400fd3f3609f718c226d (diff) | |
download | uxp-fe8998035ac4680151790fe6aa4021b33434af2e.tar.gz |
Bug 1346501. Remove mFrameCreateCalled from nsImageLoadingContent, it is now unused
Diffstat (limited to 'dom/base')
-rw-r--r-- | dom/base/nsImageLoadingContent.cpp | 7 | ||||
-rw-r--r-- | dom/base/nsImageLoadingContent.h | 3 |
2 files changed, 1 insertions, 9 deletions
diff --git a/dom/base/nsImageLoadingContent.cpp b/dom/base/nsImageLoadingContent.cpp index b76bc533f6..0c6c37b443 100644 --- a/dom/base/nsImageLoadingContent.cpp +++ b/dom/base/nsImageLoadingContent.cpp @@ -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) { diff --git a/dom/base/nsImageLoadingContent.h b/dom/base/nsImageLoadingContent.h index 0764d425ce..5f7daff72f 100644 --- a/dom/base/nsImageLoadingContent.h +++ b/dom/base/nsImageLoadingContent.h @@ -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__ |