| Index: Source/core/html/forms/TextFieldInputType.cpp
|
| diff --git a/Source/core/html/forms/TextFieldInputType.cpp b/Source/core/html/forms/TextFieldInputType.cpp
|
| index 22b6e1385719922354961482252a0759f871c986..1a73c970f2acce3ae339f7565f35be29cd22498f 100644
|
| --- a/Source/core/html/forms/TextFieldInputType.cpp
|
| +++ b/Source/core/html/forms/TextFieldInputType.cpp
|
| @@ -399,15 +399,6 @@ static bool isASCIILineBreak(UChar c)
|
| static String limitLength(const String& string, unsigned maxLength)
|
| {
|
| unsigned newLength = std::min(maxLength, string.length());
|
| - // FIXME: We should not truncate the string at a control character. It's not
|
| - // compatible with IE and Firefox.
|
| - for (unsigned i = 0; i < newLength; ++i) {
|
| - const UChar current = string[i];
|
| - if (current < ' ' && current != '\t') {
|
| - newLength = i;
|
| - break;
|
| - }
|
| - }
|
| if (newLength == string.length())
|
| return string;
|
| if (newLength > 0 && U16_IS_LEAD(string[newLength - 1]))
|
|
|