summaryrefslogtreecommitdiffstats
path: root/layout/xul/nsListBoxBodyFrame.cpp
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2021-01-06 16:31:36 +0000
committerMoonchild <moonchild@palemoon.org>2021-01-06 16:31:36 +0000
commit0e6a9cc60aeb754e00e466ce20052d2fa9ccb7f9 (patch)
treeec4cb347e7cb522e098115abf09e7d2652366148 /layout/xul/nsListBoxBodyFrame.cpp
parent4681e04dc5263a6cbb3f76ae20b0e44509bfee7b (diff)
downloadUXP-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/xul/nsListBoxBodyFrame.cpp')
-rw-r--r--layout/xul/nsListBoxBodyFrame.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/layout/xul/nsListBoxBodyFrame.cpp b/layout/xul/nsListBoxBodyFrame.cpp
index 8c4a5e2fd..0ff07bd91 100644
--- a/layout/xul/nsListBoxBodyFrame.cpp
+++ b/layout/xul/nsListBoxBodyFrame.cpp
@@ -296,7 +296,7 @@ nsListBoxBodyFrame::GetXULMinSizeForScrollArea(nsBoxLayoutState& aBoxLayoutState
result.height = 0;
nsIScrollableFrame* scrollFrame = nsLayoutUtils::GetScrollableFrameFor(this);
if (scrollFrame &&
- scrollFrame->GetScrollbarStyles().mVertical == NS_STYLE_OVERFLOW_AUTO) {
+ scrollFrame->GetScrollStyles().mVertical == NS_STYLE_OVERFLOW_AUTO) {
nsMargin scrollbars =
scrollFrame->GetDesiredScrollbarSizes(&aBoxLayoutState);
result.width += scrollbars.left + scrollbars.right;
@@ -316,7 +316,7 @@ nsListBoxBodyFrame::GetXULPrefSize(nsBoxLayoutState& aBoxLayoutState)
nsIScrollableFrame* scrollFrame = nsLayoutUtils::GetScrollableFrameFor(this);
if (scrollFrame &&
- scrollFrame->GetScrollbarStyles().mVertical == NS_STYLE_OVERFLOW_AUTO) {
+ scrollFrame->GetScrollStyles().mVertical == NS_STYLE_OVERFLOW_AUTO) {
nsMargin scrollbars = scrollFrame->GetDesiredScrollbarSizes(&aBoxLayoutState);
pref.width += scrollbars.left + scrollbars.right;
}