Lines Matching refs:pastEndNode
681 Node* pastEndNode = end.deprecatedNode();
683 pastEndNode = NodeTraversal::nextSkippingChildren(end.deprecatedNode());
688 pastEndNode = NodeTraversal::next(start.deprecatedNode());
700 applyInlineStyleToNodeRange(style, startNode, pastEndNode);
718 InlineRunToApplyStyle(Node* start, Node* end, Node* pastEndNode)
721 , pastEndNode(pastEndNode)
733 RefPtr<Node> pastEndNode;
739 void ApplyStyleCommand::applyInlineStyleToNodeRange(EditingStyle* style, PassRefPtr<Node> startNode, PassRefPtr<Node> pastEndNode)
748 for (RefPtr<Node> next; node && node != pastEndNode; node = next) {
756 // pastEndNode is the node after the last fully selected node, so if it's inside node then
758 if (pastEndNode && pastEndNode->isDescendantOf(node.get()))
773 if (node->contains(pastEndNode.get()) || containsNonEditableRegion(node.get()) || !node->parentNode()->rendererIsEditable())
784 while (sibling && sibling != pastEndNode && !sibling->contains(pastEndNode.get())
792 Node* pastEndNode = NodeTraversal::nextSkippingChildren(runEnd);
793 if (!shouldApplyInlineStyleToRun(style, runStart, pastEndNode))
796 runs.append(InlineRunToApplyStyle(runStart, runEnd, pastEndNode));
800 removeConflictingInlineStyleFromRun(style, runs[i].start, runs[i].end, runs[i].pastEndNode);
824 bool ApplyStyleCommand::shouldApplyInlineStyleToRun(EditingStyle* style, Node* runStart, Node* pastEndNode)
828 for (Node* node = runStart; node && node != pastEndNode; node = NodeTraversal::next(node)) {
840 void ApplyStyleCommand::removeConflictingInlineStyleFromRun(EditingStyle* style, RefPtr<Node>& runStart, RefPtr<Node>& runEnd, PassRefPtr<Node> pastEndNode)
844 for (RefPtr<Node> node = next; node && node->inDocument() && node != pastEndNode; node = next) {
846 ASSERT(!node->contains(pastEndNode.get()));