From 6ae0a69ac7d9cf49f06d24ccd8162e786042fe52 Mon Sep 17 00:00:00 2001 From: FranklinDM Date: Sun, 14 May 2023 18:31:21 +0800 Subject: [PATCH] Issue #1765 - Part 3: Provided token type should be used in LookForTokenType I didn't realize this immediately after moving the code into a method. Oops. --- layout/style/nsCSSParser.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/layout/style/nsCSSParser.cpp b/layout/style/nsCSSParser.cpp index 247d351464..494d8f6aa6 100644 --- a/layout/style/nsCSSParser.cpp +++ b/layout/style/nsCSSParser.cpp @@ -5427,8 +5427,7 @@ CSSParserImpl::LookForTokenType(nsCSSTokenType aType) { const char16_t stopChars[] = { ';', '!', '}', 0 }; nsDependentString stopSymbolChars(stopChars); while (GetToken(true)) { - // The current function has percentage values. - if (mToken.mType == eCSSToken_Percentage) { + if (mToken.mType == aType) { rv = true; break; }