mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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
This commit is contained in:
committed by
Facebook GitHub Bot
parent
ddf68eb949
commit
2b925c8358
@@ -250,6 +250,7 @@ constexpr std::optional<KeywordT> parseCSSKeyword(std::string_view ident) {
|
||||
if constexpr (detail::hasFixed<KeywordT>) {
|
||||
return KeywordT::Fixed;
|
||||
}
|
||||
break;
|
||||
case fnv1a("flex"):
|
||||
if constexpr (detail::hasFlex<KeywordT>) {
|
||||
return KeywordT::Flex;
|
||||
@@ -399,6 +400,7 @@ constexpr std::optional<KeywordT> parseCSSKeyword(std::string_view ident) {
|
||||
if constexpr (detail::hasStart<KeywordT>) {
|
||||
return KeywordT::Start;
|
||||
}
|
||||
break;
|
||||
case fnv1a("static"):
|
||||
if constexpr (detail::hasStatic<KeywordT>) {
|
||||
return KeywordT::Static;
|
||||
|
||||
Reference in New Issue
Block a user