summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranklinDM <mrmineshafter17@gmail.com>2022-05-03 09:01:58 -0500
committerMatt A. Tobin <email@mattatobin.com>2022-05-03 09:02:24 -0500
commit3666f2c937cc893ca6ac7c82ee7bf4840dbe829c (patch)
tree02d7e849556f300cae3ee243b46d1de639099b3b
parent87e8ddba66464d25ef4b6f68caaa181489545902 (diff)
downloadaura-central-3666f2c937cc893ca6ac7c82ee7bf4840dbe829c.tar.gz
[Layout:Style] Follow-up: Add missing end of array marker to scrollbar width keyword table
This prevents the parser from accepting values outside the keyword table. See GRE 3050 or UXP 1853
-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 da50e3cb4..4aff3dc5b 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[] = {