diff options
author | Moonchild <moonchild@palemoon.org> | 2021-01-06 23:57:26 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2021-01-06 23:57:26 +0000 |
commit | 65da2431f9ee9711e971002ae17043c1a3d36a3f (patch) | |
tree | c461f5694d915ce1dfa5151f2d655162afbf4c81 /layout/style/nsCSSProps.cpp | |
parent | 0e6a9cc60aeb754e00e466ce20052d2fa9ccb7f9 (diff) | |
download | UXP-65da2431f9ee9711e971002ae17043c1a3d36a3f.tar UXP-65da2431f9ee9711e971002ae17043c1a3d36a3f.tar.gz UXP-65da2431f9ee9711e971002ae17043c1a3d36a3f.tar.lz UXP-65da2431f9ee9711e971002ae17043c1a3d36a3f.tar.xz UXP-65da2431f9ee9711e971002ae17043c1a3d36a3f.zip |
Issue #1705 - Part 4: Add scrollbar-width CSS keyword to CSS parser.
This should be all parts needed to add a brand new enum keyword including
getting the computed style from it...
Diffstat (limited to 'layout/style/nsCSSProps.cpp')
-rw-r--r-- | layout/style/nsCSSProps.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/layout/style/nsCSSProps.cpp b/layout/style/nsCSSProps.cpp index e0cda2488..b6ffe7952 100644 --- a/layout/style/nsCSSProps.cpp +++ b/layout/style/nsCSSProps.cpp @@ -2009,6 +2009,12 @@ const KTableEntry nsCSSProps::kScrollSnapTypeKTable[] = { { eCSSKeyword_UNKNOWN, -1 } }; +const KTableEntry nsCSSProps::kScrollbarWidthKTable[] = { + { eCSSKeyword_auto, StyleScrollbarWidth::Auto }, + { eCSSKeyword_thin, StyleScrollbarWidth::Thin }, + { eCSSKeyword_none, StyleScrollbarWidth::None } +}; + const KTableEntry nsCSSProps::kStackSizingKTable[] = { { eCSSKeyword_ignore, NS_STYLE_STACK_SIZING_IGNORE }, { eCSSKeyword_stretch_to_fit, NS_STYLE_STACK_SIZING_STRETCH_TO_FIT }, |