Lines Matching refs:startBlock
48 static Element* highestVisuallyEquivalentDivBelowRoot(Element* startBlock)
50 Element* curBlock = startBlock;
166 RefPtr<Element> startBlock = enclosingBlock(insertionPosition.parentAnchoredEquivalent().containerNode());
168 if (!startBlock
169 || !startBlock->nonShadowBoundaryParentNode()
170 || isTableCell(startBlock.get())
171 || startBlock->hasTagName(formTag)
203 if (startBlock->isRootEditableElement()) {
206 } else if (shouldUseDefaultParagraphElement(startBlock.get()))
209 blockToInsert = startBlock->cloneElementWithoutChildren();
220 appendNode(extraBlock, startBlock);
223 appendNode(blockToInsert, startBlock);
229 startBlock = toElement(highestBlockquote);
232 // Most of the time we want to stay at the nesting level of the startBlock (e.g., when nesting within lists). However,
234 Element* siblingNode = startBlock.get();
236 siblingNode = highestVisuallyEquivalentDivBelowRoot(startBlock.get());
243 getAncestorsInsideBlock(positionOutsideTabSpan(insertionPosition).deprecatedNode(), startBlock.get(), ancestors);
262 refNode = startBlock.get();
264 // startBlock should always have children, otherwise isLastInBlock would be true and it's handled above.
265 ASSERT(startBlock->firstChild());
266 refNode = startBlock->firstChild();
268 else if (insertionPosition.deprecatedNode() == startBlock && nestNewBlock) {
269 refNode = startBlock->childNode(insertionPosition.deprecatedEditingOffset());
282 getAncestorsInsideBlock(positionAvoidingSpecialElementBoundary(positionOutsideTabSpan(insertionPosition)).deprecatedNode(), startBlock.get(), ancestors);
353 if (!startBlock->parentNode())
358 appendNode(blockToInsert.get(), startBlock);
360 insertNodeAfter(blockToInsert.get(), startBlock);
373 if (insertionPosition.containerNode() == startBlock)
378 splitTo = NodeTraversal::next(splitTo, startBlock.get());
380 splitTreeToNode(splitTo, startBlock.get());
382 for (n = startBlock->firstChild(); n; n = n->nextSibling()) {
405 applyStyleAfterInsertion(startBlock.get());