Index: third_party/WebKit/Source/wtf/text/StringImpl.cpp |
diff --git a/third_party/WebKit/Source/wtf/text/StringImpl.cpp b/third_party/WebKit/Source/wtf/text/StringImpl.cpp |
index 303ee9d1ddd1707c356393bd1b2eabdde4c4fce9..56b81dabfe350d8e03258d5204c07c00f4dc51b7 100644 |
--- a/third_party/WebKit/Source/wtf/text/StringImpl.cpp |
+++ b/third_party/WebKit/Source/wtf/text/StringImpl.cpp |
@@ -682,7 +682,7 @@ static PassRefPtr<StringImpl> caseConvert(const UChar* source16, size_t length, |
targetLength = converter(data16, targetLength, source16, length, locale, &status); |
if (U_SUCCESS(status)) { |
if (length > 0) |
- output->truncateAssumingIsolated(targetLength); |
+ return output->substring(0, targetLength); |
return output.release(); |
} |
if (status != U_BUFFER_OVERFLOW_ERROR) |