| Index: Source/core/dom/Text.cpp
|
| diff --git a/Source/core/dom/Text.cpp b/Source/core/dom/Text.cpp
|
| index f0c0158df1b2d5b0b3c013523a22aa2b242301ce..ca6b808b967b35c706360f445e1d9dd1c0ab7888 100644
|
| --- a/Source/core/dom/Text.cpp
|
| +++ b/Source/core/dom/Text.cpp
|
| @@ -314,15 +314,15 @@ PassRefPtr<Text> Text::cloneWithData(const String& data)
|
| return create(document(), data);
|
| }
|
|
|
| -PassRefPtr<Text> Text::createWithLengthLimit(Document* document, const String& data, unsigned start, unsigned maxChars)
|
| +PassRefPtr<Text> Text::createWithLengthLimit(Document* document, const String& data, unsigned start, unsigned lengthLimit)
|
| {
|
| unsigned dataLength = data.length();
|
|
|
| - if (!start && dataLength <= maxChars)
|
| + if (!start && dataLength <= lengthLimit)
|
| return create(document, data);
|
|
|
| RefPtr<Text> result = Text::create(document, String());
|
| - result->parserAppendData(data, start, maxChars);
|
| + result->parserAppendData(data, start, lengthLimit);
|
|
|
| return result;
|
| }
|
|
|