Lines Matching refs:oldNode

1629 static inline void boundaryTextNodesMerged(RangeBoundaryPoint& boundary, const NodeWithIndex& oldNode, unsigned offset)
1631 if (boundary.container() == oldNode.node())
1632 boundary.set(oldNode.node().previousSibling(), boundary.offset() + offset, 0);
1633 else if (boundary.container() == oldNode.node().parentNode() && boundary.offset() == oldNode.index())
1634 boundary.set(oldNode.node().previousSibling(), offset, 0);
1637 void Range::didMergeTextNodes(const NodeWithIndex& oldNode, unsigned offset)
1639 ASSERT(oldNode.node().document() == m_ownerDocument);
1640 ASSERT(oldNode.node().parentNode());
1641 ASSERT(oldNode.node().isTextNode());
1642 ASSERT(oldNode.node().previousSibling());
1643 ASSERT(oldNode.node().previousSibling()->isTextNode());
1644 boundaryTextNodesMerged(m_start, oldNode, offset);
1645 boundaryTextNodesMerged(m_end, oldNode, offset);
1661 static inline void boundaryTextNodeSplit(RangeBoundaryPoint& boundary, Text& oldNode)
1665 if (boundary.childBefore() == &oldNode)
1666 boundary.set(boundaryContainer, boundaryOffset + 1, oldNode.nextSibling());
1667 else if (boundary.container() == &oldNode && boundaryOffset > oldNode.length())
1668 boundary.set(oldNode.nextSibling(), boundaryOffset - oldNode.length(), 0);
1671 void Range::didSplitTextNode(Text& oldNode)
1673 ASSERT(oldNode.document() == m_ownerDocument);
1674 ASSERT(oldNode.parentNode());
1675 ASSERT(oldNode.nextSibling());
1676 ASSERT(oldNode.nextSibling()->isTextNode());
1677 boundaryTextNodeSplit(m_start, oldNode);
1678 boundaryTextNodeSplit(m_end, oldNode);