зеркало из https://github.com/mozilla/gecko-dev.git
Bug 414366 - "Identify if we will be going back or forward in new unified drop-down history (Needs visual indication such as back/forward arrows)" [p=dao@mozilla.com (Dão Gottwald) r=gavin a=blocking-firefox3+]
This commit is contained in:
Родитель
9f67d75225
Коммит
e309c002ce
|
@ -2969,12 +2969,12 @@ function FillHistoryMenu(aParent) {
|
|||
let iconURL = Cc["@mozilla.org/browser/favicon-service;1"]
|
||||
.getService(Ci.nsIFaviconService)
|
||||
.getFaviconForPage(entry.URI).spec;
|
||||
item.setAttribute("image", iconURL);
|
||||
item.style.listStyleImage = "url(" + iconURL + ")";
|
||||
} catch (ex) {}
|
||||
}
|
||||
|
||||
if (j < index) {
|
||||
item.className = "unified-nav-back";
|
||||
item.className = "unified-nav-back menuitem-iconic";
|
||||
item.setAttribute("tooltiptext", tooltipBack);
|
||||
} else if (j == index) {
|
||||
item.setAttribute("type", "radio");
|
||||
|
@ -2982,7 +2982,7 @@ function FillHistoryMenu(aParent) {
|
|||
item.className = "unified-nav-current";
|
||||
item.setAttribute("tooltiptext", tooltipCurrent);
|
||||
} else {
|
||||
item.className = "unified-nav-forward";
|
||||
item.className = "unified-nav-forward menuitem-iconic";
|
||||
item.setAttribute("tooltiptext", tooltipForward);
|
||||
}
|
||||
|
||||
|
|
|
@ -90,6 +90,7 @@
|
|||
|
||||
<popupset id="mainPopupSet">
|
||||
<menupopup id="backForwardMenu"
|
||||
chromedir="&locale.dir;"
|
||||
onpopupshowing="return FillHistoryMenu(event.target);"
|
||||
oncommand="gotoHistoryIndex(event);"
|
||||
onclick="checkForMiddleClick(this, event);"/>
|
||||
|
@ -261,6 +262,7 @@
|
|||
<!-- bug 415444: event.stopPropagation is here for the cloned version of
|
||||
this menupopup -->
|
||||
<menupopup context=""
|
||||
chromedir="&locale.dir;"
|
||||
position="after_start"
|
||||
onpopupshowing="return FillHistoryMenu(event.target);"
|
||||
oncommand="gotoHistoryIndex(event); event.stopPropagation();"
|
||||
|
|
|
@ -600,6 +600,9 @@ toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"] {
|
|||
toolbar[iconsize="small"] #back-button {
|
||||
list-style-image: url("moz-icon://stock/gtk-go-back-ltr?size=menu");
|
||||
}
|
||||
.unified-nav-back[_moz-menuactive] {
|
||||
list-style-image: url("moz-icon://stock/gtk-go-back-ltr?size=menu") !important;
|
||||
}
|
||||
toolbar[iconsize="small"] #back-button[disabled="true"] {
|
||||
list-style-image: url("moz-icon://stock/gtk-go-back-ltr?size=menu&state=disabled");
|
||||
}
|
||||
|
@ -607,6 +610,9 @@ toolbar[iconsize="small"] #back-button[disabled="true"] {
|
|||
toolbar[iconsize="small"] #back-button[chromedir="rtl"] {
|
||||
list-style-image: url("moz-icon://stock/gtk-go-back-rtl?size=menu");
|
||||
}
|
||||
menupopup[chromedir="rtl"] > .unified-nav-back[_moz-menuactive] {
|
||||
list-style-image: url("moz-icon://stock/gtk-go-back-rtl?size=menu") !important;
|
||||
}
|
||||
toolbar[iconsize="small"] #back-button[disabled="true"][chromedir="rtl"] {
|
||||
list-style-image: url("moz-icon://stock/gtk-go-back-rtl?size=menu&state=disabled");
|
||||
}
|
||||
|
@ -614,6 +620,9 @@ toolbar[iconsize="small"] #back-button[disabled="true"][chromedir="rtl"] {
|
|||
toolbar[iconsize="small"] #forward-button {
|
||||
list-style-image: url("moz-icon://stock/gtk-go-forward-ltr?size=menu");
|
||||
}
|
||||
.unified-nav-forward[_moz-menuactive] {
|
||||
list-style-image: url("moz-icon://stock/gtk-go-forward-ltr?size=menu") !important;
|
||||
}
|
||||
toolbar[iconsize="small"] #forward-button[disabled="true"] {
|
||||
list-style-image: url("moz-icon://stock/gtk-go-forward-ltr?size=menu&state=disabled");
|
||||
}
|
||||
|
@ -621,6 +630,9 @@ toolbar[iconsize="small"] #forward-button[disabled="true"] {
|
|||
toolbar[iconsize="small"] #forward-button[chromedir="rtl"] {
|
||||
list-style-image: url("moz-icon://stock/gtk-go-forward-rtl?size=menu");
|
||||
}
|
||||
menupopup[chromedir="rtl"] > .unified-nav-forward[_moz-menuactive] {
|
||||
list-style-image: url("moz-icon://stock/gtk-go-forward-rtl?size=menu") !important;
|
||||
}
|
||||
toolbar[iconsize="small"] #forward-button[disabled="true"][chromedir="rtl"] {
|
||||
list-style-image: url("moz-icon://stock/gtk-go-forward-rtl?size=menu&state=disabled");
|
||||
}
|
||||
|
|
|
@ -611,6 +611,11 @@ toolbar[iconsize="small"] .toolbarbutton-1 {
|
|||
list-style-image: url("chrome://browser/skin/Toolbar-small.png");
|
||||
}
|
||||
|
||||
.unified-nav-back[_moz-menuactive] ,
|
||||
.unified-nav-forward[_moz-menuactive] {
|
||||
list-style-image: url("chrome://browser/skin/Toolbar-small.png") !important;
|
||||
}
|
||||
|
||||
toolbar[iconsize="small"] .toolbarbutton-1 .toolbarbutton-icon {
|
||||
-moz-margin-end: 0px;
|
||||
}
|
||||
|
@ -628,7 +633,8 @@ toolbar[iconsize="small"] #back-button {
|
|||
-moz-image-region: rect(0px 16px 16px 0px);
|
||||
}
|
||||
toolbar[iconsize="small"] #back-button:not([disabled="true"]):hover,
|
||||
toolbar[iconsize="small"] #back-button[buttonover="true"] {
|
||||
toolbar[iconsize="small"] #back-button[buttonover="true"] ,
|
||||
.unified-nav-back[_moz-menuactive] {
|
||||
-moz-image-region: rect(16px 16px 32px 0px);
|
||||
}
|
||||
toolbar[iconsize="small"] #back-button[disabled="true"] {
|
||||
|
@ -642,7 +648,8 @@ toolbar[iconsize="small"] #back-button[chromedir="rtl"] {
|
|||
-moz-image-region: rect(0px 32px 16px 16px);
|
||||
}
|
||||
toolbar[iconsize="small"] #back-button[chromedir="rtl"]:not([disabled="true"]):hover,
|
||||
toolbar[iconsize="small"] #back-button[chromedir="rtl"][buttonover="true"] {
|
||||
toolbar[iconsize="small"] #back-button[chromedir="rtl"][buttonover="true"] ,
|
||||
menupopup[chromedir="rtl"] > .unified-nav-back[_moz-menuactive] {
|
||||
-moz-image-region: rect(16px 32px 32px 16px);
|
||||
}
|
||||
toolbar[iconsize="small"] #back-button[chromedir="rtl"][disabled="true"] {
|
||||
|
@ -661,7 +668,8 @@ toolbar[iconsize="small"] #forward-button {
|
|||
-moz-image-region: rect(0px 32px 16px 16px);
|
||||
}
|
||||
toolbar[iconsize="small"] #forward-button:not([disabled="true"]):hover,
|
||||
toolbar[iconsize="small"] #forward-button[buttonover="true"] {
|
||||
toolbar[iconsize="small"] #forward-button[buttonover="true"] ,
|
||||
.unified-nav-forward[_moz-menuactive] {
|
||||
-moz-image-region: rect(16px 32px 32px 16px);
|
||||
}
|
||||
toolbar[iconsize="small"] #forward-button[disabled="true"] {
|
||||
|
@ -675,7 +683,8 @@ toolbar[iconsize="small"] #forward-button[chromedir="rtl"] {
|
|||
-moz-image-region: rect(0px 16px 16px 0px);
|
||||
}
|
||||
toolbar[iconsize="small"] #forward-button[chromedir="rtl"]:not([disabled="true"]):hover,
|
||||
toolbar[iconsize="small"] #forward-button[chromedir="rtl"][buttonover="true"] {
|
||||
toolbar[iconsize="small"] #forward-button[chromedir="rtl"][buttonover="true"] ,
|
||||
menupopup[chromedir="rtl"] > .unified-nav-forward[_moz-menuactive] {
|
||||
-moz-image-region: rect(16px 16px 32px 0px);
|
||||
}
|
||||
toolbar[iconsize="small"] #forward-button[chromedir="rtl"][disabled="true"] {
|
||||
|
|
Загрузка…
Ссылка в новой задаче