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

Side by Side Diff: Source/core/html/FormDataList.cpp

Issue 19845004: Do not normalize into NFC the values of form fields (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 5 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2005, 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2005, 2006, 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 14 matching lines...) Expand all
25 25
26 namespace WebCore { 26 namespace WebCore {
27 27
28 FormDataList::FormDataList(const WTF::TextEncoding& c) 28 FormDataList::FormDataList(const WTF::TextEncoding& c)
29 : m_encoding(c) 29 : m_encoding(c)
30 { 30 {
31 } 31 }
32 32
33 void FormDataList::appendString(const String& string) 33 void FormDataList::appendString(const String& string)
34 { 34 {
35 CString encodedString = m_encoding.encode(string, WTF::EntitiesForUnencodabl es); 35 CString encodedString = m_encoding.encode(string, WTF::NoNormalization, WTF: :EntitiesForUnencodables);
36 m_items.append(normalizeLineEndingsToCRLF(encodedString)); 36 m_items.append(normalizeLineEndingsToCRLF(encodedString));
37 } 37 }
38 38
39 void FormDataList::appendString(const CString& string) 39 void FormDataList::appendString(const CString& string)
40 { 40 {
41 m_items.append(string); 41 m_items.append(string);
42 } 42 }
43 43
44 void FormDataList::appendBlob(PassRefPtr<Blob> blob, const String& filename) 44 void FormDataList::appendBlob(PassRefPtr<Blob> blob, const String& filename)
45 { 45 {
46 m_items.append(Item(blob, filename)); 46 m_items.append(Item(blob, filename));
47 } 47 }
48 48
49 } // namespace 49 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698