Index: third_party/WebKit/Source/wtf/text/StringBuffer.h |
diff --git a/third_party/WebKit/Source/wtf/text/StringBuffer.h b/third_party/WebKit/Source/wtf/text/StringBuffer.h |
index 5e780e63d8090594318186c60f3d38fd1bacda0e..f38e0cf3b74bce9f400574e87fe36f8be01f557d 100644 |
--- a/third_party/WebKit/Source/wtf/text/StringBuffer.h |
+++ b/third_party/WebKit/Source/wtf/text/StringBuffer.h |
@@ -70,7 +70,7 @@ void StringBuffer<CharType>::shrink(unsigned newLength) |
ASSERT(m_data); |
if (m_data->length() == newLength) |
return; |
- m_data->truncateAssumingIsolated(newLength); |
+ m_data = m_data->substring(0, newLength); |
} |
} // namespace WTF |