| Index: Source/core/dom/Document.cpp
|
| diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
|
| index a8a92c88fd49e58fd81d6a096f9c22cfb38f67fc..3fd961e86d03e1820894c8b54787d47a83847328 100644
|
| --- a/Source/core/dom/Document.cpp
|
| +++ b/Source/core/dom/Document.cpp
|
| @@ -3853,6 +3853,16 @@ void Document::didMergeTextNodes(Text& oldNode, unsigned offset)
|
| // FIXME: This should update markers for spelling and grammar checking.
|
| }
|
|
|
| +void Document::didMoveNodeToNewDocument(const Node&)
|
| +{
|
| + if (!m_ranges.isEmpty()) {
|
| + AttachedRangeSet ranges = m_ranges;
|
| + AttachedRangeSet::const_iterator end = ranges.end();
|
| + for (AttachedRangeSet::const_iterator it = ranges.begin(); it != end; ++it)
|
| + (*it)->updateOwnerDocumentIfNeeded();
|
| + }
|
| +}
|
| +
|
| void Document::didSplitTextNode(Text& oldNode)
|
| {
|
| if (!m_ranges.isEmpty()) {
|
|
|