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:
Emilio Cobos Álvarez 2023-02-02 17:50:12 +00:00
Родитель f6d79b204d
Коммит 3d76e77f4f
1 изменённых файлов: 0 добавлений и 15 удалений

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

@ -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;
}
}
}