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

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSParserToken.h

Issue 1636453002: Use ASCII case-insensitive matching for ident-likes in the CSS parser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Consistent indentation in test. Created 4 years, 11 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/CSSParserToken.h
diff --git a/third_party/WebKit/Source/core/css/parser/CSSParserToken.h b/third_party/WebKit/Source/core/css/parser/CSSParserToken.h
index 88d00dc7f257ee8f4b7a751997331e4774366a46..811db8560a21f1240262eb2c19e2972caf328920 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSParserToken.h
+++ b/third_party/WebKit/Source/core/css/parser/CSSParserToken.h
@@ -128,7 +128,8 @@ public:
ret.initRaw(m_valueDataCharRaw, m_valueLength, m_valueIs8Bit);
return ret;
}
- bool valueEqualsIgnoringCase(const char* str) const { return value().equalIgnoringCase(str); }
+ template<unsigned matchLength>
+ bool valueEqualsIgnoringASCIICase(const char (&match)[matchLength]) const { return value().equalIgnoringASCIICase<matchLength>(match); }
UChar delimiter() const;
NumericSign numericSign() const;

Powered by Google App Engine
This is Rietveld 408576698