Bug 1273455: Let CSS Image surface caches expire, rather than immediately discarding. r=seth

This commit is contained in:
Jet Villegas 2016-07-19 13:29:21 +08:00
parent b844244609
commit 2857c00f1a

View File

@ -2037,7 +2037,7 @@ nsStyleImage::UntrackImage(nsPresContext* aContext)
// Unregister the image with the document
nsIDocument* doc = aContext->Document();
if (doc) {
doc->RemoveImage(mImage, nsIDocument::REQUEST_DISCARD);
doc->RemoveImage(mImage);
}
// Mark state
@ -3389,7 +3389,7 @@ nsStyleContentData::UntrackImage(nsPresContext* aContext)
// Unregister the image with the document
nsIDocument* doc = aContext->Document();
if (doc) {
doc->RemoveImage(mContent.mImage, nsIDocument::REQUEST_DISCARD);
doc->RemoveImage(mContent.mImage);
}
// Mark state