mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 22:38:41 +09:00
Issue #1705 - Part 3: Rename ScrollbarStyles to ScrollStyles.
ScrollbarStyles contains values of overflow, (over)scroll-behavior, etc. The only one which is marginally related to scroll _bars_ is overflow, which can be used to hide scrollbar (by making an element not scrollable) or enforce the scrollbar to display. It makes more sense to be called ScrollStyles as it's mainly concerning behavior of scrolling, not scrollbars. Also, with the addition of scrollbar width properties, the current name can be confusing.
This commit is contained in:
parent
3765010635
commit
21f707390d
26 changed files with 111 additions and 111 deletions
|
|
@ -614,17 +614,17 @@ nsListControlFrame::ReflowAsDropdown(nsPresContext* aPresContext,
|
|||
nsHTMLScrollFrame::Reflow(aPresContext, aDesiredSize, state, aStatus);
|
||||
}
|
||||
|
||||
ScrollbarStyles
|
||||
nsListControlFrame::GetScrollbarStyles() const
|
||||
ScrollStyles
|
||||
nsListControlFrame::GetScrollStyles() const
|
||||
{
|
||||
// We can't express this in the style system yet; when we can, this can go away
|
||||
// and GetScrollbarStyles can be devirtualized
|
||||
// and GetScrollStyles can be devirtualized
|
||||
int32_t style = IsInDropDownMode() ? NS_STYLE_OVERFLOW_AUTO
|
||||
: NS_STYLE_OVERFLOW_SCROLL;
|
||||
if (GetWritingMode().IsVertical()) {
|
||||
return ScrollbarStyles(style, NS_STYLE_OVERFLOW_HIDDEN);
|
||||
return ScrollStyles(style, NS_STYLE_OVERFLOW_HIDDEN);
|
||||
} else {
|
||||
return ScrollbarStyles(NS_STYLE_OVERFLOW_HIDDEN, style);
|
||||
return ScrollStyles(NS_STYLE_OVERFLOW_HIDDEN, style);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue