diff options
author | Moonchild <moonchild@palemoon.org> | 2021-01-06 16:31:36 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2021-01-06 16:31:36 +0000 |
commit | 0e6a9cc60aeb754e00e466ce20052d2fa9ccb7f9 (patch) | |
tree | ec4cb347e7cb522e098115abf09e7d2652366148 /layout/style/nsRuleNode.cpp | |
parent | 4681e04dc5263a6cbb3f76ae20b0e44509bfee7b (diff) | |
download | UXP-0e6a9cc60aeb754e00e466ce20052d2fa9ccb7f9.tar UXP-0e6a9cc60aeb754e00e466ce20052d2fa9ccb7f9.tar.gz UXP-0e6a9cc60aeb754e00e466ce20052d2fa9ccb7f9.tar.lz UXP-0e6a9cc60aeb754e00e466ce20052d2fa9ccb7f9.tar.xz UXP-0e6a9cc60aeb754e00e466ce20052d2fa9ccb7f9.zip |
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.
Diffstat (limited to 'layout/style/nsRuleNode.cpp')
-rw-r--r-- | layout/style/nsRuleNode.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layout/style/nsRuleNode.cpp b/layout/style/nsRuleNode.cpp index 9721b4bed..504b66ac2 100644 --- a/layout/style/nsRuleNode.cpp +++ b/layout/style/nsRuleNode.cpp @@ -424,7 +424,7 @@ static nsSize CalcViewportUnitsScale(nsPresContext* aPresContext) nsIScrollableFrame* scrollFrame = aPresContext->PresShell()->GetRootScrollFrameAsScrollable(); if (scrollFrame) { - ScrollbarStyles styles(scrollFrame->GetScrollbarStyles()); + ScrollStyles styles(scrollFrame->GetScrollStyles()); if (styles.mHorizontal == NS_STYLE_OVERFLOW_SCROLL || styles.mVertical == NS_STYLE_OVERFLOW_SCROLL) { |