зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 995de6ec02fc (bug 1918762) as requested by emilio CLOSED TREE
This commit is contained in:
Родитель
1c5401a806
Коммит
21c041eb39
|
@ -201,17 +201,6 @@ bool ScrollbarDrawing::DoPaintDefaultScrollbar(
|
|||
ScrollbarKind aScrollbarKind, nsIFrame* aFrame, const ComputedStyle& aStyle,
|
||||
const ElementState& aElementState, const DocumentState& aDocumentState,
|
||||
const Colors& aColors, const DPIRatio& aDpiRatio) {
|
||||
// GTK and Windows draw the track here, cocoa and Android draw it in
|
||||
// PaintScrollbarTrack... TODO: unify this somehow.
|
||||
switch (mKind) {
|
||||
case Kind::Cocoa:
|
||||
case Kind::Android:
|
||||
return true;
|
||||
case Kind::Gtk:
|
||||
case Kind::Win11:
|
||||
case Kind::Win10:
|
||||
break;
|
||||
}
|
||||
const bool overlay = aFrame->PresContext()->UseOverlayScrollbars();
|
||||
if (overlay && !aElementState.HasAtLeastOneOfStates(ElementState::HOVER |
|
||||
ElementState::ACTIVE)) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче