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.
This commit is contained in:
FranklinDM 2023-05-14 18:31:21 +08:00 committed by roytam1
commit 6ae0a69ac7

View file

@ -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;
}