mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 00:05:36 +00:00
Bug 1435290 - [1.0] Enable automatic image resizing for Fennec and custom tabs. r=kats
This commit is contained in:
parent
2d7b351c2c
commit
86a254d584
@ -84,6 +84,9 @@ pref("browser.cache.offline.enable", true);
|
||||
pref("browser.cache.offline.capacity", 5120); // kilobytes
|
||||
pref("offline-apps.quota.warn", 1024); // kilobytes
|
||||
|
||||
// Automatically shrink-to-fit image documents.
|
||||
pref("browser.enable_automatic_image_resizing", true);
|
||||
|
||||
// cache compression turned off for now - see bug #715198
|
||||
pref("browser.cache.compression_level", 0);
|
||||
|
||||
|
@ -4715,10 +4715,6 @@ Tab.prototype = {
|
||||
BrowserApp.contentDocumentChanged();
|
||||
}
|
||||
this.contentDocumentIsDisplayed = true;
|
||||
|
||||
if (contentDocument instanceof Ci.nsIImageDocument) {
|
||||
contentDocument.shrinkToFit();
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user