| Index: Source/core/dom/Text.cpp
|
| diff --git a/Source/core/dom/Text.cpp b/Source/core/dom/Text.cpp
|
| index 21cb569f9a70ef3fbd1ea7f3f8fca629cd5091b1..e14f88ec298de11db2d974005912a6676eda596d 100644
|
| --- a/Source/core/dom/Text.cpp
|
| +++ b/Source/core/dom/Text.cpp
|
| @@ -25,6 +25,7 @@
|
| #include "core/dom/ExceptionCode.h"
|
| #include "core/dom/ExceptionCodePlaceholder.h"
|
| #include "core/dom/NodeRenderingContext.h"
|
| +#include "core/dom/ScopedEventQueue.h"
|
| #include "core/dom/shadow/ShadowRoot.h"
|
| #include "core/rendering/RenderCombineText.h"
|
| #include "core/rendering/RenderText.h"
|
| @@ -69,6 +70,7 @@ PassRefPtr<Text> Text::splitText(unsigned offset, ExceptionCode& ec)
|
| return 0;
|
| }
|
|
|
| + EventQueueScope scope;
|
| String oldStr = data();
|
| RefPtr<Text> newText = cloneWithData(oldStr.substring(offset));
|
| setDataWithoutUpdate(oldStr.substring(0, offset));
|
|
|