mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 828508 - use higher-res favicons for tab titles in hidpi mode if available. r=dao
This commit is contained in:
parent
7af472416c
commit
97e52a7365
@ -694,9 +694,15 @@
|
||||
this.mFaviconService.FAVICON_LOAD_NON_PRIVATE);
|
||||
}
|
||||
|
||||
if ((browser.mIconURL || "") != aTab.getAttribute("image")) {
|
||||
if (browser.mIconURL)
|
||||
aTab.setAttribute("image", browser.mIconURL);
|
||||
let sizedIconUrl = browser.mIconURL || "";
|
||||
if (sizedIconUrl) {
|
||||
let size = Math.round(16 * window.devicePixelRatio);
|
||||
sizedIconUrl += (sizedIconUrl.contains("#") ? "&" : "#") +
|
||||
"-moz-resolution=" + size + "," + size;
|
||||
}
|
||||
if (sizedIconUrl != aTab.getAttribute("image")) {
|
||||
if (sizedIconUrl)
|
||||
aTab.setAttribute("image", sizedIconUrl);
|
||||
else
|
||||
aTab.removeAttribute("image");
|
||||
this._tabAttrModified(aTab);
|
||||
|
Loading…
Reference in New Issue
Block a user