Home | History | Annotate | Download | only in editing

Lines Matching refs:startNode

358     Node* startNode = start.deprecatedNode();
359 if (startNode->isTextNode() && start.deprecatedEditingOffset() >= caretMaxOffset(startNode)) // Move out of text node if range does not include its characters.
360 startNode = NodeTraversal::next(startNode);
365 for (Node *node = startNode; node != beyondEnd; node = NodeTraversal::next(node))
372 for (Node* node = startNode; node != beyondEnd; node = NodeTraversal::next(node)) {
528 static Node* highestEmbeddingAncestor(Node* startNode, Node* enclosingNode)
530 for (Node* n = startNode; n && n != enclosingNode; n = n->parentNode()) {
673 Node* startNode = start.deprecatedNode();
676 startNode = NodeTraversal::next(startNode);
677 if (!startNode || comparePositions(end, firstPositionInOrBeforeNode(startNode)) < 0)
693 RefPtr<Range> range = Range::create(startNode->document(), start, end);
694 Element* editableRoot = startNode->rootEditableElement();
695 if (startNode != editableRoot) {
696 while (editableRoot && startNode->parentNode() != editableRoot && isNodeVisiblyContainedWithin(startNode->parentNode(), range.get()))
697 startNode = startNode->parentNode();
700 applyInlineStyleToNodeRange(style, startNode, pastEndNode);
739 void ApplyStyleCommand::applyInlineStyleToNodeRange(EditingStyle* style, PassRefPtr<Node> startNode, PassRefPtr<Node> pastEndNode)
747 RefPtr<Node> node = startNode;
1256 Node* startNode = start.containerNode();
1261 if (isAtomicNode(startNode)) {
1264 if (startNode->previousSibling())
1267 startNode = startNode->parentNode();
1271 if (!startNode->isElementNode())
1274 Node* previousSibling = startNode->previousSibling();
1276 if (previousSibling && areIdenticalElements(startNode, previousSibling)) {
1278 Element* element = toElement(startNode);
1284 int endOffsetAdjustment = startNode == end.deprecatedNode() ? startOffsetAdjustment : 0;
1285 updateStartEnd(Position(startNode, startOffsetAdjustment, Position::PositionIsOffsetInAnchor),
1334 RefPtr<Node> startNode = passedStartNode;
1337 insertNodeBefore(element, startNode);
1339 RefPtr<Node> node = startNode;
1402 Position ApplyStyleCommand::positionToComputeInlineStyleChange(PassRefPtr<Node> startNode, RefPtr<Node>& dummyElement)
1404 // It's okay to obtain the style at the startNode because we've removed all relevant styles from the current run.
1406 if (!startNode->isElementNode()) {
1408 insertNodeAt(dummyElement, positionBeforeNode(startNode.get()));
1412 return firstPositionInOrBeforeNode(startNode.get());
1417 RefPtr<Node> startNode = passedStart;
1419 ASSERT(startNode->inDocument());
1425 for (Node* container = startNode.get(); container && startNode == endNode; container = container->firstChild()) {
1433 startNode = container->firstChild();
1454 surroundNodeRangeWithElement(startNode, endNode, fontElement.get());
1473 surroundNodeRangeWithElement(startNode, endNode, styleElement.release());
1478 surroundNodeRangeWithElement(startNode, endNode, createHTMLElement(document(), bTag));
1481 surroundNodeRangeWithElement(startNode, endNode, createHTMLElement(document(), iTag));
1484 surroundNodeRangeWithElement(startNode, endNode, createHTMLElement(document(), uTag));
1487 surroundNodeRangeWithElement(startNode, endNode, createHTMLElement(document(), strikeTag));
1490 surroundNodeRangeWithElement(startNode, endNode, createHTMLElement(document(), subTag));
1492 surroundNodeRangeWithElement(startNode, endNode, createHTMLElement(document(), supTag));
1495 surroundNodeRangeWithElement(startNode, endNode, m_styledInlineElement->cloneElementWithoutChildren());