Bug 409478 - Use translucent autoscroll cursor on Mac. r=Mano, a=beltzner.

This commit is contained in:
stefanh@inbox.com 2007-12-25 06:01:44 -08:00
Родитель d0dfbf69ce
Коммит f693bd84a7
2 изменённых файлов: 6 добавлений и 5 удалений

Просмотреть файл

@ -734,9 +734,9 @@
// we need these attributes so themers don't need to create per-platform packages
if (screen.colorDepth > 8) { // need high color for transparency
// Exclude second-rate platforms
this._autoScrollPopup.setAttribute("transparent", !/BeOS|Mac|OS\/2|Photon/.test(navigator.appVersion));
// Enable translucency on W2K+ (but not WinNT4.0)
this._autoScrollPopup.setAttribute("translucent", /^Windows NT /.test(navigator.oscpu));
this._autoScrollPopup.setAttribute("transparent", !/BeOS|OS\/2|Photon/.test(navigator.appVersion));
// Enable translucency on Windows and Mac
this._autoScrollPopup.setAttribute("translucent", /Win|Mac/.test(navigator.platform));
}
this._scrollingView = event.originalTarget.ownerDocument.defaultView;

Просмотреть файл

@ -244,13 +244,14 @@ browser {
padding: 0;
background-image: url("chrome://global/skin/icons/autoscroll.png");
background-color: transparent;
background-position: right top;
-moz-appearance: none;
}
#autoscroller[scrolldir="NS"] {
background-position: left center;
background-position: right center;
}
#autoscroller[scrolldir="EW"] {
background-position: left bottom;
background-position: right bottom;
}