Home | History | Annotate | Download | only in editing

Lines Matching refs:startNode

108     // startNode is the first node that we need to move to the new blockquote.
109 Node* startNode = pos.deprecatedNode();
110 ASSERT(startNode);
113 if (startNode->isTextNode()) {
114 Text* textNode = toText(startNode);
116 startNode = NodeTraversal::next(*startNode);
117 ASSERT(startNode);
121 Node* childAtOffset = NodeTraversal::childAt(*startNode, pos.deprecatedEditingOffset());
122 startNode = childAtOffset ? childAtOffset : NodeTraversal::next(*startNode);
123 ASSERT(startNode);
127 if (!startNode->isDescendantOf(topBlockquote)) {
128 setEndingSelection(VisibleSelection(VisiblePosition(firstPositionInOrBeforeNode(startNode)), endingSelection().isDirectional()));
134 for (Element* node = startNode->parentElement(); node && node != topBlockquote; node = node->parentElement())
141 // Clone startNode's ancestors into the cloned blockquote.
150 Node* listChildNode = i > 1 ? ancestors[i - 2].get() : startNode;
163 moveRemainingSiblingsToNewParent(startNode, 0, clonedAncestor);
177 // If the startNode's original parent is now empty, remove it