Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp

Issue 2086283002: Convert CSSParserToken::valueEqualsIgnoringASCIICase to equalIgnoringASCIICase. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp b/third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp
index 806f0fcfaad8fd267e1a1ef90bb3ff9d7a5d10c8..3812e28f332de01fa2174a488be78f47dfb76f4e 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp
@@ -596,7 +596,7 @@ CSSSelector::RelationType CSSSelectorParser::consumeCombinator(CSSParserTokenRan
return fallbackResult;
range.consume();
const CSSParserToken& ident = range.consume();
- if (ident.type() != IdentToken || !ident.valueEqualsIgnoringASCIICase("deep"))
+ if (ident.type() != IdentToken || !equalIgnoringASCIICase(ident.value(), "deep"))
m_failedParsing = true;
const CSSParserToken& slash = range.consumeIncludingWhitespace();
if (slash.type() != DelimiterToken || slash.delimiter() != '/')
@@ -632,7 +632,7 @@ CSSSelector::AttributeMatchType CSSSelectorParser::consumeAttributeFlags(CSSPars
if (range.peek().type() != IdentToken)
return CSSSelector::CaseSensitive;
const CSSParserToken& flag = range.consumeIncludingWhitespace();
- if (flag.valueEqualsIgnoringASCIICase("i"))
+ if (equalIgnoringASCIICase(flag.value(), "i"))
return CSSSelector::CaseInsensitive;
m_failedParsing = true;
return CSSSelector::CaseSensitive;
@@ -646,11 +646,11 @@ bool CSSSelectorParser::consumeANPlusB(CSSParserTokenRange& range, std::pair<int
return true;
}
if (token.type() == IdentToken) {
- if (token.valueEqualsIgnoringASCIICase("odd")) {
+ if (equalIgnoringASCIICase(token.value(), "odd")) {
result = std::make_pair(2, 1);
return true;
}
- if (token.valueEqualsIgnoringASCIICase("even")) {
+ if (equalIgnoringASCIICase(token.value(), "even")) {
result = std::make_pair(2, 0);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698