Bug 791731: Don't immediately discard image data in UnbindFromTree, instead rely on the discard timer. r=jlebar

--HG--
extra : rebase_source : 8e702197acfbc76a87521da06e3dcc334c6e2a63
This commit is contained in:
Kyle Huey 2012-10-02 18:52:03 -07:00
Родитель 3f6aabd191
Коммит 9bea43a806
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -1183,9 +1183,9 @@ nsImageLoadingContent::UnbindFromTree(bool aDeep, bool aNullParent)
pusher.PushNull();
if (mCurrentRequestFlags & REQUEST_SHOULD_BE_TRACKED)
doc->RemoveImage(mCurrentRequest, nsIDocument::REQUEST_DISCARD);
doc->RemoveImage(mCurrentRequest);
if (mPendingRequestFlags & REQUEST_SHOULD_BE_TRACKED)
doc->RemoveImage(mPendingRequest, nsIDocument::REQUEST_DISCARD);
doc->RemoveImage(mPendingRequest);
}
nsresult