зеркало из https://github.com/mozilla/gecko-dev.git
Bug 409478 - Use translucent autoscroll cursor on Mac. r=Mano, a=beltzner.
This commit is contained in:
Родитель
d0dfbf69ce
Коммит
f693bd84a7
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче