Lines Matching refs:startNode
346 Node* startNode = start.deprecatedNode();
347 if (startNode->isTextNode() && start.deprecatedEditingOffset() >= caretMaxOffset(startNode)) // Move out of text node if range does not include its characters.
348 startNode = startNode->traverseNextNode();
353 for (Node *node = startNode; node != beyondEnd; node = node->traverseNextNode())
360 for (Node* node = startNode; node != beyondEnd; node = node->traverseNextNode()) {
518 static Node* highestEmbeddingAncestor(Node* startNode, Node* enclosingNode)
520 for (Node* n = startNode; n && n != enclosingNode; n = n->parentNode()) {
661 Node* startNode = start.deprecatedNode();
664 startNode = startNode->traverseNextNode();
665 if (!startNode || comparePositions(end, firstPositionInOrBeforeNode(startNode)) < 0)
681 RefPtr<Range> range = Range::create(startNode->document(), start, end);
682 Element* editableRoot = startNode->rootEditableElement();
683 if (startNode != editableRoot) {
684 while (editableRoot && startNode->parentNode() != editableRoot && isNodeVisiblyContainedWithin(startNode->parentNode(), range.get()))
685 startNode = startNode->parentNode();
688 applyInlineStyleToNodeRange(style, startNode, pastEndNode);
1231 Node* startNode = start.containerNode();
1236 if (isAtomicNode(startNode)) {
1239 if (startNode->previousSibling())
1242 startNode = startNode->parentNode();
1246 if (!startNode->isElementNode())
1249 Node* previousSibling = startNode->previousSibling();
1251 if (previousSibling && areIdenticalElements(startNode, previousSibling)) {
1253 Element* element = static_cast<Element*>(startNode);
1259 int endOffsetAdjustment = startNode == end.deprecatedNode() ? startOffsetAdjustment : 0;
1260 updateStartEnd(Position(startNode, startOffsetAdjustment, Position::PositionIsOffsetInAnchor),
1311 RefPtr<Node> startNode = passedStartNode;
1314 insertNodeBefore(element, startNode);
1316 RefPtr<Node> node = startNode;
1364 RefPtr<Node> startNode = passedStart;
1367 // It's okay to obtain the style at the startNode because we've removed all relevant styles from the current run.
1370 if (!startNode->isElementNode()) {
1372 insertNodeAt(dummyElement, positionBeforeNode(startNode.get()));
1375 positionForStyleComparison = firstPositionInOrBeforeNode(startNode.get());
1385 for (Node* container = startNode.get(); container && startNode == endNode; container = container->firstChild()) {
1393 startNode = container->firstChild();
1414 surroundNodeRangeWithElement(startNode, endNode, fontElement.get());
1428 surroundNodeRangeWithElement(startNode, endNode, styleElement.release());
1433 surroundNodeRangeWithElement(startNode, endNode, createHTMLElement(document(), bTag));
1436 surroundNodeRangeWithElement(startNode, endNode, createHTMLElement(document(), iTag));
1439 surroundNodeRangeWithElement(startNode, endNode, createHTMLElement(document(), uTag));
1442 surroundNodeRangeWithElement(startNode, endNode, createHTMLElement(document(), strikeTag));
1445 surroundNodeRangeWithElement(startNode, endNode, createHTMLElement(document(), subTag));
1447 surroundNodeRangeWithElement(startNode, endNode, createHTMLElement(document(), supTag));
1450 surroundNodeRangeWithElement(startNode, endNode, m_styledInlineElement->cloneElementWithoutChildren());