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

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSParserImpl.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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/parser/CSSParserToken.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp b/third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp
index afe156ff6fe91d11d73fa6bf05a3841d2ef3f674..15e1ebd78a637a3f6477afea6b48323b65db6ea6 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp
@@ -440,7 +440,7 @@ static AtomicString consumeStringOrURI(CSSParserTokenRange& range)
if (token.type() == StringToken || token.type() == UrlToken)
return range.consumeIncludingWhitespace().value().toAtomicString();
- if (token.type() != FunctionToken || !token.valueEqualsIgnoringASCIICase("url"))
+ if (token.type() != FunctionToken || !equalIgnoringASCIICase(token.value(), "url"))
return AtomicString();
CSSParserTokenRange contents = range.consumeBlock();
@@ -762,7 +762,7 @@ void CSSParserImpl::consumeDeclaration(CSSParserTokenRange range, StyleRule::Rul
const CSSParserToken* last = range.end() - 1;
while (last->type() == WhitespaceToken)
--last;
- if (last->type() == IdentToken && last->valueEqualsIgnoringASCIICase("important")) {
+ if (last->type() == IdentToken && equalIgnoringASCIICase(last->value(), "important")) {
--last;
while (last->type() == WhitespaceToken)
--last;
@@ -813,9 +813,9 @@ std::unique_ptr<Vector<double>> CSSParserImpl::consumeKeyframeKeyList(CSSParserT
const CSSParserToken& token = range.consumeIncludingWhitespace();
if (token.type() == PercentageToken && token.numericValue() >= 0 && token.numericValue() <= 100)
result->append(token.numericValue() / 100);
- else if (token.type() == IdentToken && token.valueEqualsIgnoringASCIICase("from"))
+ else if (token.type() == IdentToken && equalIgnoringASCIICase(token.value(), "from"))
result->append(0);
- else if (token.type() == IdentToken && token.valueEqualsIgnoringASCIICase("to"))
+ else if (token.type() == IdentToken && equalIgnoringASCIICase(token.value(), "to"))
result->append(1);
else
return nullptr; // Parser error, invalid value in keyframe selector
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/parser/CSSParserToken.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698