Bug 1041845 - Apply image-rendering: -moz-crisp-edges style to favicons throughout the UI when resolution is 2dppx. r=MattN

This commit is contained in:
Bernardo P. Rittmeyer 2014-08-11 14:03:00 -04:00
parent 82782aa5c7
commit a9eee42790
8 changed files with 78 additions and 14 deletions

0
.lock Normal file
View File

View File

@ -320,6 +320,14 @@ toolbar:not(#TabsToolbar) > #personal-bookmarks {
min-width: 25ch;
}
/* Apply crisp rendering for favicons at exactly 2dppx resolution */
@media (resolution: 2dppx) {
.searchbar-engine-image,
.searchbar-engine-menuitem > .menu-iconic-left > .menu-iconic-icon {
image-rendering: -moz-crisp-edges;
}
}
#urlbar,
.searchbar-textbox {
/* Setting a width and min-width to let the location & search bars maintain
@ -472,6 +480,20 @@ toolbarbutton.bookmark-item {
max-width: 13em;
}
/* Apply crisp rendering for favicons at exactly 2dppx resolution */
@media (resolution: 2dppx) {
.alltabs-popup > .menuitem-iconic > .menu-iconic-left > .menu-iconic-icon,
.menuitem-with-favicon > .menu-iconic-left > .menu-iconic-icon {
image-rendering: -moz-crisp-edges;
}
.bookmark-item > .toolbarbutton-icon,
.bookmark-item > .menu-iconic-left > .menu-iconic-icon,
#personal-bookmarks[cui-areatype="toolbar"] > #bookmarks-toolbar-placeholder > .toolbarbutton-icon {
image-rendering: -moz-crisp-edges;
}
}
#editBMPanel_tagsSelector {
/* override default listbox width from xul.css */
width: auto;
@ -629,6 +651,13 @@ window[chromehidden~="toolbar"] toolbar:not(.toolbar-primary):not(.chromeclass-m
height: 16px;
}
/* Apply crisp rendering for favicons at exactly 2dppx resolution */
@media (resolution: 2dppx) {
.ctrlTab-favicon {
image-rendering: -moz-crisp-edges;
}
}
.ctrlTab-preview {
-moz-binding: url("chrome://browser/content/browser-tabPreviews.xml#ctrlTab-preview");
}
@ -832,6 +861,15 @@ chatbar {
max-height: 0;
}
/* Apply crisp rendering for favicons at exactly 2dppx resolution */
@media (resolution: 2dppx) {
#social-sidebar-favico,
.social-status-button,
.chat-status-icon {
image-rendering: -moz-crisp-edges;
}
}
/** See bug 872317 for why the following rule is necessary. */
#downloads-button {
@ -1000,6 +1038,15 @@ chatbox:-moz-full-screen-ancestor > .chat-titlebar {
list-style-image: none;
}
/* Apply crisp rendering for favicons at exactly 2dppx resolution */
@media (resolution: 2dppx) {
#PanelUI-recentlyClosedWindows > toolbarbutton > .toolbarbutton-icon,
#PanelUI-recentlyClosedTabs > toolbarbutton > .toolbarbutton-icon,
#PanelUI-historyItems > toolbarbutton > .toolbarbutton-icon {
image-rendering: -moz-crisp-edges;
}
}
#customization-panelHolder {
overflow-y: hidden;
}

View File

@ -44,6 +44,13 @@ tabpanels {
z-index: 2;
}
/* Apply crisp rendering for favicons at exactly 2dppx resolution */
@media (resolution: 2dppx) {
.tab-icon-image {
image-rendering: -moz-crisp-edges;
}
}
.tab-icon-image:not([src]):not([pinned]),
.tab-throbber:not([busy]),
.tab-throbber[busy] + .tab-icon-image {

View File

@ -14,3 +14,12 @@ tree[type="places"] {
menupopup[placespopup="true"] {
-moz-binding: url("chrome://browser/content/places/menu.xml#places-popup-base");
}
/* Apply crisp rendering for favicons at exactly 2dppx resolution */
@media (resolution: 2dppx) {
#bookmarksChildren,
.sidebar-placesTreechildren,
.placesTree > treechildren {
image-rendering: -moz-crisp-edges;
}
}

View File

@ -23,3 +23,11 @@
listitem.offlineapp {
-moz-binding: url("chrome://browser/content/preferences/handlers.xml#offlineapp");
}
/* Apply crisp rendering for favicons at exactly 2dppx resolution */
@media (resolution: 2dppx) {
#handlersView > richlistitem,
.actionsMenu > menupopup > menuitem > .menu-iconic-left {
image-rendering: -moz-crisp-edges;
}
}

View File

@ -65,6 +65,13 @@ body {
position: absolute;
}
/* Apply crisp rendering for favicons at exactly 2dppx resolution */
@media (resolution: 2dppx) {
.favicon > img {
image-rendering: -moz-crisp-edges;
}
}
.close {
position: absolute;
cursor: pointer;

View File

@ -387,14 +387,6 @@ toolbarbutton.bookmark-item > menupopup {
opacity: 0.7;
}
@media (min-resolution: 2dppx) {
.bookmark-item > .toolbarbutton-icon,
.bookmark-item > .menu-iconic-left > .menu-iconic-icon,
#personal-bookmarks[cui-areatype="toolbar"] > #bookmarks-toolbar-placeholder > .toolbarbutton-icon {
image-rendering: -moz-crisp-edges;
}
}
#bookmarks-toolbar-placeholder {
list-style-image: url("chrome://browser/skin/places/bookmarksToolbar.png") !important;
}
@ -2798,7 +2790,6 @@ toolbarbutton.chevron > .toolbarbutton-menu-dropmarker {
.tab-icon-image {
list-style-image: url("chrome://mozapps/skin/places/defaultFavicon@2x.png");
image-rendering: -moz-crisp-edges;
}
.tab-throbber[busy] {

View File

@ -47,11 +47,6 @@
}
@media (min-resolution: 2dppx) {
.searchbar-engine-image,
.searchbar-engine-menuitem > .menu-iconic-left > .menu-iconic-icon {
image-rendering: -moz-crisp-edges;
}
.searchbar-engine-image {
list-style-image: url("chrome://mozapps/skin/places/defaultFavicon@2x.png");
}