Home | History | Annotate | Download | only in editing

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;
1362 RefPtr<Node> startNode = passedStart;
1365 // It's okay to obtain the style at the startNode because we've removed all relevant styles from the current run.
1368 if (!startNode->isElementNode()) {
1370 insertNodeAt(dummyElement, positionBeforeNode(startNode.get()));
1373 positionForStyleComparison = firstPositionInOrBeforeNode(startNode.get());
1383 for (Node* container = startNode.get(); container && startNode == endNode; container = container->firstChild()) {
1391 startNode = container->firstChild();
1412 surroundNodeRangeWithElement(startNode, endNode, fontElement.get());
1426 surroundNodeRangeWithElement(startNode, endNode, styleElement.release());
1431 surroundNodeRangeWithElement(startNode, endNode, createHTMLElement(document(), bTag));
1434 surroundNodeRangeWithElement(startNode, endNode, createHTMLElement(document(), iTag));
1437 surroundNodeRangeWithElement(startNode, endNode, createHTMLElement(document(), uTag));
1440 surroundNodeRangeWithElement(startNode, endNode, createHTMLElement(document(), strikeTag));
1443 surroundNodeRangeWithElement(startNode, endNode, createHTMLElement(document(), subTag));
1445 surroundNodeRangeWithElement(startNode, endNode, createHTMLElement(document(), supTag));
1448 surroundNodeRangeWithElement(startNode, endNode, m_styledInlineElement->cloneElementWithoutChildren());