зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1813046
- follow-up: Remove dead chunk of code. r=spohl
All themes support scrollbar parts nowadays so this code is not needed. Differential Revision: https://phabricator.services.mozilla.com/D168702
This commit is contained in:
Родитель
f6d79b204d
Коммит
3d76e77f4f
|
@ -391,21 +391,6 @@ bool nsIFrame::AddXULMinSize(nsIFrame* aBox, nsSize& aSize, bool& aWidthSet,
|
|||
aSize.height = pc->DevPixelsToAppUnits(size.height);
|
||||
aHeightSet = true;
|
||||
}
|
||||
} else {
|
||||
switch (appearance) {
|
||||
case StyleAppearance::ScrollbarVertical:
|
||||
case StyleAppearance::ScrollbarHorizontal: {
|
||||
ComputedStyle* style = nsLayoutUtils::StyleForScrollbar(aBox);
|
||||
auto size = theme->GetScrollbarSize(
|
||||
pc, style->StyleUIReset()->ScrollbarWidth(),
|
||||
nsITheme::Overlay::No);
|
||||
aSize.width = pc->DevPixelsToAppUnits(size);
|
||||
aWidthSet = true;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче