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

Unified Diff: third_party/WebKit/Source/wtf/text/StringUTF8Adaptor.h

Issue 1424303002: Remove unused support for NFC normalization during text encoding (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@nfc-remove
Patch Set: Created 5 years, 2 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/wtf/text/TextEncoding.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/text/StringUTF8Adaptor.h
diff --git a/third_party/WebKit/Source/wtf/text/StringUTF8Adaptor.h b/third_party/WebKit/Source/wtf/text/StringUTF8Adaptor.h
index 07f2825bbb247d97da69ae3a8d5c6b540692d85a..567bb995d67b9eda9f0bc6849e168c447299dfba 100644
--- a/third_party/WebKit/Source/wtf/text/StringUTF8Adaptor.h
+++ b/third_party/WebKit/Source/wtf/text/StringUTF8Adaptor.h
@@ -42,12 +42,7 @@ namespace WTF {
// contain only ASCII characters.
class StringUTF8Adaptor {
public:
- enum ShouldNormalize {
- DoNotNormalize,
- Normalize
- };
-
- explicit StringUTF8Adaptor(const String& string, ShouldNormalize normalize = DoNotNormalize, UnencodableHandling handling = EntitiesForUnencodables)
+ explicit StringUTF8Adaptor(const String& string)
: m_data(0)
, m_length(0)
{
@@ -61,10 +56,7 @@ public:
m_data = reinterpret_cast<const char*>(string.characters8());
m_length = string.length();
} else {
- if (normalize == Normalize)
- m_utf8Buffer = UTF8Encoding().normalizeAndEncode(string, handling);
- else
- m_utf8Buffer = string.utf8();
+ m_utf8Buffer = string.utf8();
m_data = m_utf8Buffer.data();
m_length = m_utf8Buffer.length();
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/wtf/text/TextEncoding.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698