| Index: third_party/WebKit/Source/core/dom/CharacterData.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/CharacterData.cpp b/third_party/WebKit/Source/core/dom/CharacterData.cpp
|
| index 3024fd7737df8b0ddca23201883caeb624a27449..b945ce571632c0f3af78a6b40b190c9a70f87bbb 100644
|
| --- a/third_party/WebKit/Source/core/dom/CharacterData.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/CharacterData.cpp
|
| @@ -29,7 +29,6 @@
|
| #include "core/dom/MutationRecord.h"
|
| #include "core/dom/ProcessingInstruction.h"
|
| #include "core/dom/Text.h"
|
| -#include "core/editing/FrameSelection.h"
|
| #include "core/events/MutationEvent.h"
|
| #include "core/inspector/InspectorInstrumentation.h"
|
| #include "wtf/CheckedNumeric.h"
|
| @@ -176,29 +175,22 @@ void CharacterData::setDataAndUpdate(const String& newData,
|
| unsigned oldLength,
|
| unsigned newLength,
|
| UpdateSource source) {
|
| - if (source != UpdateFromParser)
|
| - document().dataWillChange(*this);
|
| -
|
| String oldData = m_data;
|
| m_data = newData;
|
|
|
| - DCHECK(!layoutObject() || isTextNode());
|
| - if (isTextNode())
|
| - toText(this)->updateTextLayoutObject(offsetOfReplacedData, oldLength);
|
| -
|
| + document().incDOMTreeVersion();
|
| if (source != UpdateFromParser) {
|
| if (getNodeType() == kProcessingInstructionNode)
|
| toProcessingInstruction(this)->didAttributeChanged();
|
|
|
| document().notifyUpdateCharacterData(this, offsetOfReplacedData, oldLength,
|
| newLength);
|
| -
|
| - if (document().frame())
|
| - document().frame()->selection().didUpdateCharacterData(
|
| - this, offsetOfReplacedData, oldLength, newLength);
|
| }
|
|
|
| - document().incDOMTreeVersion();
|
| + DCHECK(!layoutObject() || isTextNode());
|
| + if (isTextNode())
|
| + toText(this)->updateTextLayoutObject(offsetOfReplacedData, oldLength);
|
| +
|
| didModifyData(oldData, source);
|
| }
|
|
|
|
|