Home | History | Annotate | Download | only in editing

Lines Matching refs:startNode

367     Node* startNode = start.deprecatedNode();
368 ASSERT(startNode);
372 if (startNode == beyondEnd)
375 if (startNode->isTextNode() && start.deprecatedEditingOffset() >= caretMaxOffset(startNode)) // Move out of text node if range does not include its characters.
376 startNode = NodeTraversal::next(*startNode);
381 for (Node* node = startNode; node != beyondEnd; node = NodeTraversal::next(*node)) {
390 for (Node* node = startNode; node != beyondEnd; node = NodeTraversal::next(*node)) {
544 static HTMLElement* highestEmbeddingAncestor(Node* startNode, Node* enclosingNode)
546 for (Node* n = startNode; n && n != enclosingNode; n = n->parentNode()) {
689 Node* startNode = start.deprecatedNode();
690 ASSERT(startNode);
693 startNode = NodeTraversal::next(*startNode);
694 if (!startNode || comparePositions(end, firstPositionInOrBeforeNode(startNode)) < 0)
710 RefPtrWillBeRawPtr<Range> range = Range::create(startNode->document(), start, end);
711 Element* editableRoot = startNode->rootEditableElement();
712 if (startNode != editableRoot) {
713 while (editableRoot && startNode->parentNode() != editableRoot && isNodeVisiblyContainedWithin(*startNode->parentNode(), *range))
714 startNode = startNode->parentNode();
717 applyInlineStyleToNodeRange(style, startNode, pastEndNode);
773 void ApplyStyleCommand::applyInlineStyleToNodeRange(EditingStyle* style, PassRefPtrWillBeRawPtr<Node> startNode, PassRefPtrWillBeRawPtr<Node> pastEndNode)
781 RefPtrWillBeRawPtr<Node> node = startNode;
1277 Node* startNode = start.containerNode();
1282 if (isAtomicNode(startNode)) {
1285 if (startNode->previousSibling())
1288 startNode = startNode->parentNode();
1291 if (!startNode->isElementNode())
1294 Node* previousSibling = startNode->previousSibling();
1296 if (previousSibling && areIdenticalElements(startNode, previousSibling)) {
1298 Element* element = toElement(startNode);
1304 int endOffsetAdjustment = startNode == end.deprecatedNode() ? startOffsetAdjustment : 0;
1305 updateStartEnd(Position(startNode, startOffsetAdjustment, Position::PositionIsOffsetInAnchor),
1421 Position ApplyStyleCommand::positionToComputeInlineStyleChange(PassRefPtrWillBeRawPtr<Node> startNode, RefPtrWillBeMember<HTMLSpanElement>& dummyElement)
1423 // It's okay to obtain the style at the startNode because we've removed all relevant styles from the current run.
1424 if (!startNode->isElementNode()) {
1426 insertNodeAt(dummyElement, positionBeforeNode(startNode.get()));
1430 return firstPositionInOrBeforeNode(startNode.get());
1435 RefPtrWillBeRawPtr<Node> startNode = passedStart;
1437 ASSERT(startNode->inDocument());
1443 for (Node* container = startNode.get(); container && startNode == endNode; container = container->firstChild()) {
1454 startNode = container->firstChild();
1475 surroundNodeRangeWithElement(startNode, endNode, fontElement.get());
1495 surroundNodeRangeWithElement(startNode, endNode, styleElement.release());
1500 surroundNodeRangeWithElement(startNode, endNode, createHTMLElement(document(), bTag));
1503 surroundNodeRangeWithElement(startNode, endNode, createHTMLElement(document(), iTag));
1506 surroundNodeRangeWithElement(startNode, endNode, createHTMLElement(document(), uTag));
1509 surroundNodeRangeWithElement(startNode, endNode, createHTMLElement(document(), strikeTag));
1512 surroundNodeRangeWithElement(startNode, endNode, createHTMLElement(document(), subTag));
1514 surroundNodeRangeWithElement(startNode
1517 surroundNodeRangeWithElement(startNode, endNode, m_styledInlineElement->cloneElementWithoutChildren());