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/base/ScrollbarStyles.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/base/ScrollbarStyles.cpp')
-rw-r--r-- | layout/base/ScrollbarStyles.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/layout/base/ScrollbarStyles.cpp b/layout/base/ScrollbarStyles.cpp deleted file mode 100644 index cc9f0c57d..000000000 --- a/layout/base/ScrollbarStyles.cpp +++ /dev/null @@ -1,32 +0,0 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -#include "ScrollbarStyles.h" -#include "nsStyleStruct.h" // for nsStyleDisplay and nsStyleBackground::Position - -namespace mozilla { - - ScrollbarStyles::ScrollbarStyles(uint8_t aH, uint8_t aV, - const nsStyleDisplay* aDisplay) - : mHorizontal(aH), mVertical(aV), - mScrollBehavior(aDisplay->mScrollBehavior), - mScrollSnapTypeX(aDisplay->mScrollSnapTypeX), - mScrollSnapTypeY(aDisplay->mScrollSnapTypeY), - mScrollSnapPointsX(aDisplay->mScrollSnapPointsX), - mScrollSnapPointsY(aDisplay->mScrollSnapPointsY), - mScrollSnapDestinationX(aDisplay->mScrollSnapDestination.mXPosition), - mScrollSnapDestinationY(aDisplay->mScrollSnapDestination.mYPosition) {} - - ScrollbarStyles::ScrollbarStyles(const nsStyleDisplay* aDisplay) - : mHorizontal(aDisplay->mOverflowX), mVertical(aDisplay->mOverflowY), - mScrollBehavior(aDisplay->mScrollBehavior), - mScrollSnapTypeX(aDisplay->mScrollSnapTypeX), - mScrollSnapTypeY(aDisplay->mScrollSnapTypeY), - mScrollSnapPointsX(aDisplay->mScrollSnapPointsX), - mScrollSnapPointsY(aDisplay->mScrollSnapPointsY), - mScrollSnapDestinationX(aDisplay->mScrollSnapDestination.mXPosition), - mScrollSnapDestinationY(aDisplay->mScrollSnapDestination.mYPosition) {} - -} // namespace mozilla |