From 3666f2c937cc893ca6ac7c82ee7bf4840dbe829c Mon Sep 17 00:00:00 2001 From: FranklinDM Date: Tue, 3 May 2022 09:01:58 -0500 Subject: [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 --- layout/style/nsCSSProps.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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[] = { -- cgit v1.2.3