Lines Matching full:node
55 void InsertLineBreakCommand::insertNodeAfterPosition(Node* node, const Position& pos)
60 Element* cb = pos.node()->enclosingBlockFlowElement();
61 if (cb == pos.node())
62 appendNode(node, cb);
64 insertNodeAfter(node, pos.node());
67 void InsertLineBreakCommand::insertNodeBeforePosition(Node* node, const Position& pos)
72 Element* cb = pos.node()->enclosingBlockFlowElement();
73 if (cb == pos.node())
74 appendNode(node, cb);
76 insertNodeBefore(node, pos.node());
86 return p.node()->renderer() && !p.node()->renderer()->style()->preserveNewline();
103 RefPtr<Node> nodeToInsert;
112 bool needExtraLineBreak = !pos.node()->hasTagName(hrTag) && !pos.node()->hasTagName(tableTag);
121 } else if (pos.deprecatedEditingOffset() <= caretMinOffset(pos.node())) {
129 // If we're inserting after all of the rendered text in a text node, or into a non-text node,
131 } else if (pos.deprecatedEditingOffset() >= caretMaxOffset(pos.node()) || !pos.node()->isTextNode()) {
135 // Split a text node
136 ASSERT(pos.node()->isTextNode());
139 Text* textNode = static_cast<Text*>(pos.node());