Home | History | Annotate | Download | only in editing

Lines Matching refs:deprecatedNode

109     if (isHTMLHRElement(*start.deprecatedNode()))
110 start = positionBeforeNode(start.deprecatedNode());
111 else if (isHTMLHRElement(*end.deprecatedNode()))
112 end = positionAfterNode(end.deprecatedNode());
278 if (m_upstreamStart.deprecatedNode() == m_downstreamEnd.deprecatedNode() && m_upstreamStart.deprecatedNode()->isTextNode())
447 Node* startNode = m_upstreamStart.deprecatedNode();
475 if (startNode == m_downstreamEnd.deprecatedNode()) {
492 bool startNodeWasDescendantOfEndNode = m_upstreamStart.deprecatedNode()->isDescendantOf(m_downstreamEnd.deprecatedNode());
505 } else if (startNode == m_upstreamEnd.deprecatedNode() && startNode->isTextNode()) {
506 Text* text = toText(m_upstreamEnd.deprecatedNode());
511 while (node && node != m_downstreamEnd.deprecatedNode()) {
515 } else if (!m_downstreamEnd.deprecatedNode()->isDescendantOf(node.get())) {
524 if (m_downstreamEnd.deprecatedNode() == n && m_downstreamEnd.deprecatedEditingOffset() >= caretMaxOffset(&n)) {
533 if (m_downstreamEnd.deprecatedNode() != startNode && !m_upstreamStart.deprecatedNode()->isDescendantOf(m_downstreamEnd.deprecatedNode()) && m_downstreamEnd.inDocument() && m_downstreamEnd.deprecatedEditingOffset() >= caretMinOffset(m_downstreamEnd.deprecatedNode())) {
534 if (m_downstreamEnd.atLastEditingPositionForNode() && !canHaveChildrenForEditing(m_downstreamEnd.deprecatedNode())) {
536 removeNode(m_downstreamEnd.deprecatedNode());
538 if (m_downstreamEnd.deprecatedNode()->isTextNode()) {
540 Text* text = toText(m_downstreamEnd.deprecatedNode());
544 // Remove children of m_downstreamEnd.deprecatedNode() that come after m_upstreamStart.
545 // Don't try to remove children if m_upstreamStart was inside m_downstreamEnd.deprecatedNode()
552 if (m_upstreamStart.deprecatedNode()->isDescendantOf(m_downstreamEnd.deprecatedNode())) {
553 Node* n = m_upstreamStart.deprecatedNode();
554 while (n && n->parentNode() != m_downstreamEnd.deprecatedNode())
559 removeChildrenInRange(m_downstreamEnd.deprecatedNode(), offset, m_downstreamEnd.deprecatedEditingOffset());
560 m_downstreamEnd = createLegacyEditingPosition(m_downstreamEnd.deprecatedNode(), offset);
571 if (m_leadingWhitespace.isNotNull() && !m_leadingWhitespace.isRenderedCharacter() && m_leadingWhitespace.deprecatedNode()->isTextNode()) {
572 Text* textNode = toText(m_leadingWhitespace.deprecatedNode());
576 if (m_trailingWhitespace.isNotNull() && !m_trailingWhitespace.isRenderedCharacter() && m_trailingWhitespace.deprecatedNode()->isTextNode()) {
577 Text* textNode = toText(m_trailingWhitespace.deprecatedNode());
618 Element* endBlock = enclosingBlock(m_downstreamEnd.deprecatedNode());
619 if (!endBlock || !endBlock->contains(startOfParagraphToMove.deepEquivalent().deprecatedNode()) || !startOfParagraphToMove.deepEquivalent().deprecatedNode()) {
620 removeNode(enclosingBlock(m_downstreamEnd.deprecatedNode()));
625 if (!mergeDestination.deepEquivalent().deprecatedNode() || (!mergeDestination.deepEquivalent().deprecatedNode()->isDescendantOf(enclosingBlock(m_upstreamStart.containerNode())) && (!mergeDestination.deepEquivalent().anchorNode()->firstChild() || !m_upstreamStart.containerNode()->firstChild())) || (m_startsAtEmptyLine && mergeDestination != startOfParagraphToMove)) {
652 if (isHTMLBRElement(*mergeDestination.deepEquivalent().downstream().deprecatedNode())) {
653 removeNodeAndPruneAncestors(mergeDestination.deepEquivalent().downstream().deprecatedNode());
662 if (isRenderedAsNonInlineTableImageOrHR(startOfParagraphToMove.deepEquivalent().deprecatedNode()) && !isStartOfParagraph(mergeDestination)) {
705 if (!m_endingPosition.deprecatedNode()->isDescendantOf(m_endTableRow.get())) {
799 if (m_selectionToDelete.end().deprecatedNode()->isDescendantOf(table))