зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1021110 - Icons in about:newtab's search panel should be high-res (2x DPI) on high-res displays. r=ttaubert
This commit is contained in:
Родитель
cb24401352
Коммит
00a611658b
|
@ -158,7 +158,10 @@ let gSearch = {
|
|||
let image = document.createElementNS(XUL_NAMESPACE, "image");
|
||||
if (engine.iconBuffer) {
|
||||
let blob = new Blob([engine.iconBuffer]);
|
||||
image.setAttribute("src", URL.createObjectURL(blob));
|
||||
let size = Math.round(16 * window.devicePixelRatio);
|
||||
let sizeStr = size + "," + size;
|
||||
let uri = URL.createObjectURL(blob) + "#-moz-resolution=" + sizeStr;
|
||||
image.setAttribute("src", uri);
|
||||
}
|
||||
box.appendChild(image);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче