From ab0be54f2dedc7c6d1aa047cb746ba9da183a4e3 Mon Sep 17 00:00:00 2001 From: FranklinDM Date: Tue, 3 May 2022 10:55:20 +0800 Subject: 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. --- 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 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[] = { -- cgit v1.2.3