summaryrefslogtreecommitdiff
path: root/layout
diff options
context:
space:
mode:
authorFranklinDM <mrmineshafter17@gmail.com>2023-05-14 18:31:21 +0800
committerFranklinDM <mrmineshafter17@gmail.com>2023-05-14 18:31:21 +0800
commitddf3f39070c662bf92320fdd0cafcdaff22ab377 (patch)
tree2e54b1eb05e58f82b2d9b14f6324961aa6a77aa2 /layout
parente56b7b826d6f4f8cb1fc4bcd06fce7786540784c (diff)
downloaduxp-ddf3f39070c662bf92320fdd0cafcdaff22ab377.tar.gz
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.
Diffstat (limited to 'layout')
-rw-r--r--layout/style/nsCSSParser.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/layout/style/nsCSSParser.cpp b/layout/style/nsCSSParser.cpp
index 14a935c321..f66415ea9e 100644
--- a/layout/style/nsCSSParser.cpp
+++ b/layout/style/nsCSSParser.cpp
@@ -5433,8 +5433,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;
}