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

Unified Diff: third_party/WebKit/Source/core/html/parser/HTMLParserIdioms.cpp

Issue 2508033004: Reduce unnecessary usage of TextCaseSensitivity::TextCaseInsensitive. (Closed)
Patch Set: Created 4 years, 1 month 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/html/parser/HTMLParserIdioms.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLParserIdioms.cpp b/third_party/WebKit/Source/core/html/parser/HTMLParserIdioms.cpp
index 79583d0f0607ab309e475cc7eb355aa090bc12b2..4710b2b90d36e3a9bee53c138a051b2c302ac324 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLParserIdioms.cpp
+++ b/third_party/WebKit/Source/core/html/parser/HTMLParserIdioms.cpp
@@ -349,12 +349,13 @@ Vector<double> parseHTMLListOfFloatingPointNumbers(const String& input) {
static const char charsetString[] = "charset";
static const size_t charsetLength = sizeof("charset") - 1;
+// https://html.spec.whatwg.org/multipage/infrastructure.html#extracting-character-encodings-from-meta-elements
String extractCharset(const String& value) {
size_t pos = 0;
unsigned length = value.length();
while (pos < length) {
- pos = value.find(charsetString, pos, TextCaseInsensitive);
+ pos = value.find(charsetString, pos, TextCaseASCIIInsensitive);
if (pos == kNotFound)
break;

Powered by Google App Engine
This is Rietveld 408576698