| Index: Source/core/html/parser/HTMLConstructionSite.cpp
|
| diff --git a/Source/core/html/parser/HTMLConstructionSite.cpp b/Source/core/html/parser/HTMLConstructionSite.cpp
|
| index fc0e957f39f2071c2c293e7163669f342930eed9..ce433e64edc719652337a2b9c33a18a8b8580982 100644
|
| --- a/Source/core/html/parser/HTMLConstructionSite.cpp
|
| +++ b/Source/core/html/parser/HTMLConstructionSite.cpp
|
| @@ -555,11 +555,11 @@ void HTMLConstructionSite::insertTextNode(const String& characters, WhitespaceMo
|
| }
|
|
|
| while (currentPosition < characters.length()) {
|
| - RefPtr<Text> textNode = Text::createWithLengthLimit(&task.parent->document(), shouldUseAtomicString ? AtomicString(characters).string() : characters, currentPosition, lengthLimit);
|
| + RefPtr<Text> textNode = Text::createWithLengthLimit(task.parent->document(), shouldUseAtomicString ? AtomicString(characters).string() : characters, currentPosition, lengthLimit);
|
| // If we have a whole string of unbreakable characters the above could lead to an infinite loop. Exceeding the length limit is the lesser evil.
|
| if (!textNode->length()) {
|
| String substring = characters.substring(currentPosition);
|
| - textNode = Text::create(&task.parent->document(), shouldUseAtomicString ? AtomicString(substring).string() : substring);
|
| + textNode = Text::create(task.parent->document(), shouldUseAtomicString ? AtomicString(substring).string() : substring);
|
| }
|
|
|
| currentPosition += textNode->length();
|
|
|