From 2b925c83589ae7b9dc3894a3a6aea81b16bfa9f3 Mon Sep 17 00:00:00 2001 From: Nick Gerleman Date: Thu, 16 Jan 2025 11:42:34 -0800 Subject: [PATCH] Fix unintentional fallthrough in keyword parsing (#48717) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/48717 tsia Changelog: [Internal] Reviewed By: rshest Differential Revision: D68246769 fbshipit-source-id: a5192880423cb00616981f4e1b24b7819062bc3b --- .../react-native/ReactCommon/react/renderer/css/CSSKeywords.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/react-native/ReactCommon/react/renderer/css/CSSKeywords.h b/packages/react-native/ReactCommon/react/renderer/css/CSSKeywords.h index f2e3b779b3b..0a92769bbd7 100644 --- a/packages/react-native/ReactCommon/react/renderer/css/CSSKeywords.h +++ b/packages/react-native/ReactCommon/react/renderer/css/CSSKeywords.h @@ -250,6 +250,7 @@ constexpr std::optional parseCSSKeyword(std::string_view ident) { if constexpr (detail::hasFixed) { return KeywordT::Fixed; } + break; case fnv1a("flex"): if constexpr (detail::hasFlex) { return KeywordT::Flex; @@ -399,6 +400,7 @@ constexpr std::optional parseCSSKeyword(std::string_view ident) { if constexpr (detail::hasStart) { return KeywordT::Start; } + break; case fnv1a("static"): if constexpr (detail::hasStatic) { return KeywordT::Static;