mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Bug 1273455: Let CSS Image surface caches expire, rather than immediately discarding. r=seth
This commit is contained in:
parent
b844244609
commit
2857c00f1a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user