Chromium Code Reviews| Index: src/api.cc |
| =================================================================== |
| --- src/api.cc (revision 3975) |
| +++ src/api.cc (working copy) |
| @@ -2615,7 +2615,7 @@ |
| StringTracker::RecordWrite(str); |
| // Flatten the string for efficiency. This applies whether we are |
| // using StringInputBuffer or Get(i) to access the characters. |
| - str->TryFlattenIfNotFlat(); |
| + str->TryFlatten(); |
| int end = length; |
| if ( (length == -1) || (length > str->length() - start) ) |
| end = str->length() - start; |