mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-18 15:55:36 +00:00
Bug 1386576 - Use list-style-image rather than the image attribute for items in the back/forward menu so that CSS can override this to display back/forward icons. r=mak
MozReview-Commit-ID: LvnpJlGlOqk --HG-- extra : rebase_source : f704978f2bba7cba24bbbead6dde59d040b6dfce
This commit is contained in:
parent
fa46e23606
commit
78551bb89f
@ -4097,8 +4097,10 @@ function FillHistoryMenu(aParent) {
|
||||
item.setAttribute("historyindex", j - index);
|
||||
|
||||
if (j != index) {
|
||||
item.setAttribute("image",
|
||||
PlacesUtils.urlWithSizeRef(window, "page-icon:" + uri, 16));
|
||||
// Use list-style-image rather than the image attribute in order to
|
||||
// allow CSS to override this.
|
||||
item.style.listStyleImage =
|
||||
"url(" + PlacesUtils.urlWithSizeRef(window, "page-icon:" + uri, 16) + ")";
|
||||
}
|
||||
|
||||
if (j < index) {
|
||||
|
Loading…
Reference in New Issue
Block a user