summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranklinDM <mrmineshafter17@gmail.com>2022-05-03 10:55:20 +0800
committerMoonchild <moonchild@palemoon.org>2022-05-03 09:14:47 +0000
commitab0be54f2dedc7c6d1aa047cb746ba9da183a4e3 (patch)
tree69928fc61f4d0e54a0d4b1fc29d8a09d243dc62b
parent6b4ef9af48d6e72811a253ce7f50e6eeb31894f7 (diff)
downloaduxp-ab0be54f2dedc7c6d1aa047cb746ba9da183a4e3.tar.gz
Issue #1853 - Follow-up: Add missing end of array marker to scrollbar width keyword table
This prevents the parser from accepting values outside the keyword table.
-rw-r--r--layout/style/nsCSSProps.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/layout/style/nsCSSProps.cpp b/layout/style/nsCSSProps.cpp
index da50e3cb4f..4aff3dc5bf 100644
--- a/layout/style/nsCSSProps.cpp
+++ b/layout/style/nsCSSProps.cpp
@@ -2009,7 +2009,8 @@ const KTableEntry nsCSSProps::kScrollSnapTypeKTable[] = {
const KTableEntry nsCSSProps::kScrollbarWidthKTable[] = {
{ eCSSKeyword_auto, StyleScrollbarWidth::Auto },
{ eCSSKeyword_thin, StyleScrollbarWidth::Thin },
- { eCSSKeyword_none, StyleScrollbarWidth::None }
+ { eCSSKeyword_none, StyleScrollbarWidth::None },
+ { eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kStackSizingKTable[] = {