Home | History | Annotate | Download | only in editing

Lines Matching refs:startBlock

51 static Element* highestVisuallyEquivalentDiv(Element* startBlock)
53 Element* curBlock = startBlock;
167 Element* startBlock = static_cast<Element*>(startBlockNode);
170 || !startBlock->parentNode()
171 || isTableCell(startBlock)
172 || startBlock->hasTagName(formTag)
203 if (startBlock == startBlock->rootEditableElement()) {
206 } else if (shouldUseDefaultParagraphElement(startBlock))
209 blockToInsert = startBlock->cloneElementWithoutChildren();
221 appendNode(extraBlock, startBlock);
224 appendNode(blockToInsert, startBlock);
229 startBlock = static_cast<Element*>(highestBlockquote);
234 // Most of the time we want to stay at the nesting level of the startBlock (e.g., when nesting within lists). However,
236 Element* siblingNode = startBlock;
238 siblingNode = highestVisuallyEquivalentDiv(startBlock);
245 getAncestorsInsideBlock(insertionPosition.node(), startBlock, ancestors);
261 refNode = startBlock;
262 else if (insertionPosition.node() == startBlock && nestNewBlock) {
263 refNode = startBlock->childNode(insertionPosition.deprecatedEditingOffset());
276 getAncestorsInsideBlock(positionAvoidingSpecialElementBoundary(insertionPosition).node(), startBlock, ancestors);
309 getAncestorsInsideBlock(insertionPosition.node(), startBlock, ancestors);
336 appendNode(blockToInsert.get(), startBlock);
338 insertNodeAfter(blockToInsert.get(), startBlock);
352 if (insertionPosition.node() != startBlock) {
368 while (leftParent && leftParent != startBlock) {
397 applyStyleAfterInsertion(startBlock);