Home
last modified time | relevance | path

Searched refs:deprecatedNode (Results 1 – 25 of 46) sorted by relevance

12

/external/webkit/Source/WebCore/editing/
DDeleteSelectionCommand.cpp115 if (start.deprecatedNode()->hasTagName(hrTag)) in initializeStartEnd()
116 start = positionBeforeNode(start.deprecatedNode()); in initializeStartEnd()
117 else if (end.deprecatedNode()->hasTagName(hrTag)) in initializeStartEnd()
118 end = positionAfterNode(end.deprecatedNode()); in initializeStartEnd()
280 …if (m_upstreamStart.deprecatedNode() == m_downstreamEnd.deprecatedNode() && m_upstreamStart.deprec… in saveTypingStyleState()
298 bool upstreamStartIsBR = m_upstreamStart.deprecatedNode()->hasTagName(brTag); in handleSpecialCaseBRDelete()
299 bool downstreamStartIsBR = m_downstreamStart.deprecatedNode()->hasTagName(brTag); in handleSpecialCaseBRDelete()
300 …artIsBR && downstreamStartIsBR && m_downstreamStart.deprecatedNode() == m_upstreamEnd.deprecatedNo… in handleSpecialCaseBRDelete()
302 removeNode(m_downstreamStart.deprecatedNode()); in handleSpecialCaseBRDelete()
433 Node* startNode = m_upstreamStart.deprecatedNode(); in handleGeneralDelete()
[all …]
DInsertLineBreakCommand.cpp59 Element* cb = pos.deprecatedNode()->enclosingBlockFlowElement(); in insertNodeAfterPosition()
60 if (cb == pos.deprecatedNode()) in insertNodeAfterPosition()
63 insertNodeAfter(node, pos.deprecatedNode()); in insertNodeAfterPosition()
71 Element* cb = pos.deprecatedNode()->enclosingBlockFlowElement(); in insertNodeBeforePosition()
72 if (cb == pos.deprecatedNode()) in insertNodeBeforePosition()
75 insertNodeBefore(node, pos.deprecatedNode()); in insertNodeBeforePosition()
85 …return p.deprecatedNode()->renderer() && !p.deprecatedNode()->renderer()->style()->preserveNewline… in shouldUseBreakElement()
116 …bool needExtraLineBreak = !pos.deprecatedNode()->hasTagName(hrTag) && !pos.deprecatedNode()->hasTa… in doApply()
125 } else if (pos.deprecatedEditingOffset() <= caretMinOffset(pos.deprecatedNode())) { in doApply()
135 …if (pos.deprecatedEditingOffset() >= caretMaxOffset(pos.deprecatedNode()) || !pos.deprecatedNode()… in doApply()
[all …]
Dhtmlediting.cpp97 Node* nodeA = a.deprecatedNode(); in comparePositions()
99 Node* nodeB = b.deprecatedNode(); in comparePositions()
137 Node* node = position.deprecatedNode(); in highestEditableRoot()
176 Node* node = p.deprecatedNode(); in isEditablePosition()
188 Node* node = pos.deprecatedNode(); in isAtUnsplittableElement()
195 Node* node = p.deprecatedNode(); in isRichlyEditablePosition()
207 Node* node = p.deprecatedNode(); in editableRootForPosition()
285 if (Node* shadowAncestor = p.deprecatedNode()->shadowAncestorNode()) in firstEditablePositionAfterPositionInRoot()
286 if (shadowAncestor != p.deprecatedNode()) in firstEditablePositionAfterPositionInRoot()
289 …while (p.deprecatedNode() && !isEditablePosition(p) && p.deprecatedNode()->isDescendantOf(highestR… in firstEditablePositionAfterPositionInRoot()
[all …]
DApplyBlockElementCommand.cpp185 …OnSameNode = renderStyleOfEnclosingTextNode(end) && start.deprecatedNode() == end.deprecatedNode(); in rangeForParagraphSplittingTextNodesIfNeeded()
186 …EnclosingTextNode(m_endOfLastParagraph) && start.deprecatedNode() == m_endOfLastParagraph.deprecat… in rangeForParagraphSplittingTextNodesIfNeeded()
195 splitTextNode(static_cast<Text*>(start.deprecatedNode()), startOffset); in rangeForParagraphSplittingTextNodesIfNeeded()
196 start = firstPositionInOrBeforeNode(start.deprecatedNode()); in rangeForParagraphSplittingTextNodesIfNeeded()
199 …end = Position(end.deprecatedNode(), end.offsetInContainerNode() - startOffset, Position::Position… in rangeForParagraphSplittingTextNodesIfNeeded()
203 …m_endOfLastParagraph = Position(m_endOfLastParagraph.deprecatedNode(), m_endOfLastParagraph.offset… in rangeForParagraphSplittingTextNodesIfNeeded()
211 …OfEnclosingTextNode(m_endOfLastParagraph) && end.deprecatedNode() == m_endOfLastParagraph.deprecat… in rangeForParagraphSplittingTextNodesIfNeeded()
217 … end = Position(end.deprecatedNode(), endOffset + 1, Position::PositionIsOffsetInAnchor); in rangeForParagraphSplittingTextNodesIfNeeded()
225 splitTextNode(static_cast<Text*>(end.deprecatedNode()), end.offsetInContainerNode()); in rangeForParagraphSplittingTextNodesIfNeeded()
227 start = firstPositionInOrBeforeNode(end.deprecatedNode()->previousSibling()); in rangeForParagraphSplittingTextNodesIfNeeded()
[all …]
DCompositeEditCommand.cpp163 Node* refChild = p.deprecatedNode(); in insertNodeAt()
483 Node* node = position.deprecatedNode(); in prepareWhitespaceAtPositionForSplit()
503 …eviousVisiblePos.characterAfter()) && previous.deprecatedNode()->isTextNode() && !previous.depreca… in prepareWhitespaceAtPositionForSplit()
504 …replaceTextInNode(static_cast<Text*>(previous.deprecatedNode()), previous.deprecatedEditingOffset(… in prepareWhitespaceAtPositionForSplit()
505 …space(visiblePos.characterAfter()) && position.deprecatedNode()->isTextNode() && !position.depreca… in prepareWhitespaceAtPositionForSplit()
506 …replaceTextInNode(static_cast<Text*>(position.deprecatedNode()), position.deprecatedEditingOffset(… in prepareWhitespaceAtPositionForSplit()
608 for (Node* node = start.deprecatedNode(); node; node = next) { in deleteInsignificantText()
612 int startOffset = node == start.deprecatedNode() ? start.deprecatedEditingOffset() : 0; in deleteInsignificantText()
613 …int endOffset = node == end.deprecatedNode() ? end.deprecatedEditingOffset() : static_cast<int>(te… in deleteInsignificantText()
616 if (node == end.deprecatedNode()) in deleteInsignificantText()
[all …]
DInsertParagraphSeparatorCommand.cpp174 …|| (!canonicalPos.isNull() && canonicalPos.deprecatedNode()->renderer() && canonicalPos.deprecated… in doApply()
175 || (!canonicalPos.isNull() && canonicalPos.deprecatedNode()->hasTagName(hrTag))) { in doApply()
242 …getAncestorsInsideBlock(positionOutsideTabSpan(insertionPosition).deprecatedNode(), startBlock, an… in doApply()
262 else if (insertionPosition.deprecatedNode() == startBlock && nestNewBlock) { in doApply()
266 refNode = insertionPosition.deprecatedNode(); in doApply()
276 …ingSpecialElementBoundary(positionOutsideTabSpan(insertionPosition)).deprecatedNode(), startBlock,… in doApply()
312 if (leadingWhitespace.isNotNull() && leadingWhitespace.deprecatedNode()->isTextNode()) { in doApply()
313 Text* textNode = static_cast<Text*>(leadingWhitespace.deprecatedNode()); in doApply()
319 if (insertionPosition.deprecatedNode()->isTextNode()) { in doApply()
320 Text* textNode = static_cast<Text*>(insertionPosition.deprecatedNode()); in doApply()
[all …]
DReplaceSelectionCommand.cpp114 if (editingIgnoresContent(pos.deprecatedNode())) in positionAvoidingPrecedingNodes()
121 Node* stopNode = pos.deprecatedNode()->enclosingBlockFlowElement(); in positionAvoidingPrecedingNodes()
122 while (stopNode != pos.deprecatedNode() && VisiblePosition(pos) == VisiblePosition(pos.next())) in positionAvoidingPrecedingNodes()
156 Node* styleNode = selection.base().deprecatedNode(); in ReplacementFragment()
386 && !startOfInsertedContent.deepEquivalent().deprecatedNode()->hasTagName(brTag) in shouldMergeStart()
399 && !endOfInsertedContent.deepEquivalent().deprecatedNode()->hasTagName(brTag) in shouldMergeEnd()
457 Node* sourceNode = source.deepEquivalent().deprecatedNode(); in shouldMerge()
458 Node* destinationNode = destination.deepEquivalent().deprecatedNode(); in shouldMerge()
744 insertNodeBefore(placeholder, startOfParagraphToMove.deepEquivalent().deprecatedNode()); in mergeEndIfNeeded()
755 m_lastLeafInserted = destination.previous().deepEquivalent().deprecatedNode(); in mergeEndIfNeeded()
[all …]
DApplyStyleCommand.cpp257 Node* scope = highestAncestor(visibleStart.deepEquivalent().deprecatedNode()); in applyBlockStyle()
269 RefPtr<Node> block = enclosingBlock(paragraphStart.deepEquivalent().deprecatedNode()); in applyBlockStyle()
312 if (start.deprecatedNode()->isTextNode()) { in applyRelativeFontStyleChange()
313 joinChildTextNodes(start.deprecatedNode()->parentNode(), start, end); in applyRelativeFontStyleChange()
317 …if (end.deprecatedNode()->isTextNode() && start.deprecatedNode()->parentNode() != end.deprecatedNo… in applyRelativeFontStyleChange()
318 joinChildTextNodes(end.deprecatedNode()->parentNode(), start, end); in applyRelativeFontStyleChange()
340 if (start.deprecatedNode()->isDescendantOf(end.deprecatedNode())) in applyRelativeFontStyleChange()
341 beyondEnd = end.deprecatedNode()->traverseNextSibling(); in applyRelativeFontStyleChange()
343 beyondEnd = end.deprecatedNode()->traverseNextNode(); in applyRelativeFontStyleChange()
346 Node* startNode = start.deprecatedNode(); in applyRelativeFontStyleChange()
[all …]
DIndentOutdentCommand.cpp62 Node* lastNodeInSelectedParagraph = start.deprecatedNode(); in tryIndentingAsListItem()
97 else if (enclosingList(start.deprecatedNode())) in indentIntoBlockquote()
98 nodeToSplitTo = enclosingBlock(start.deprecatedNode()); in indentIntoBlockquote()
105 …<Node> outerBlock = (start.deprecatedNode() == nodeToSplitTo) ? start.deprecatedNode() : splitTree… in indentIntoBlockquote()
169 …de* enclosingBlockFlow = enclosingBlock(visibleStartOfParagraph.deepEquivalent().deprecatedNode()); in outdentParagraph()
175 …t(static_cast<Element*>(enclosingNode), visibleStartOfParagraph.deepEquivalent().deprecatedNode()); in outdentParagraph()
DInsertListCommand.cpp87 if (!enclosingList(start.deepEquivalent().deprecatedNode())) in selectionHasListOfType()
92 Element* listNode = enclosingList(start.deepEquivalent().deprecatedNode()); in selectionHasListOfType()
194 Node* selectionNode = endingSelection().start().deprecatedNode(); in doApplyForSingleParagraph()
220 …isiblePosition(firstPositionInNode(listNode.get())).deepEquivalent().deprecatedNode(), listNode.ge… in doApplyForSingleParagraph()
268 nextListChild = enclosingListChild(end.next().deepEquivalent().deprecatedNode(), listNode); in unlistifyParagraph()
270 …previousListChild = enclosingListChild(start.previous().deepEquivalent().deprecatedNode(), listNod… in unlistifyParagraph()
311 Element* listNode = outermostEnclosingList(adjacentPos.deepEquivalent().deprecatedNode()); in adjacentEnclosingList()
320 || listNode->contains(pos.deepEquivalent().deprecatedNode()) in adjacentEnclosingList()
322 || enclosingList(listNode) != enclosingList(pos.deepEquivalent().deprecatedNode())) in adjacentEnclosingList()
354 if (start == end && isBlock(start.deepEquivalent().deprecatedNode())) { in listifyParagraph()
[all …]
DTypingCommand.cpp175 Node* startNode = selectionForInsertion.start().deprecatedNode(); in insertText()
509 if (isEmptyTableCell(visibleStart.deepEquivalent().deprecatedNode())) in deleteKeyPressed()
528 …aracterGranularity && selectionToDelete.end().deprecatedNode() == selectionToDelete.start().deprec… in deleteKeyPressed()
595 …if (downstreamEnd.deprecatedNode() && downstreamEnd.deprecatedNode()->renderer() && downstreamEnd. in forwardDeleteKeyPressed()
596 …leSelection(endingSelection().end(), positionAfterNode(downstreamEnd.deprecatedNode()), DOWNSTREAM… in forwardDeleteKeyPressed()
613 if (extent.deprecatedNode() != selectionToDelete.end().deprecatedNode()) in forwardDeleteKeyPressed()
617 … if (selectionToDelete.start().deprecatedNode() == selectionToDelete.end().deprecatedNode()) in forwardDeleteKeyPressed()
621 …extent = Position(extent.deprecatedNode(), extent.deprecatedEditingOffset() + extraCharacters, Pos… in forwardDeleteKeyPressed()
Dvisible_units.cpp72 forwardsScanRange->setStart(end.deprecatedNode(), end.deprecatedEditingOffset(), ec); in previousBoundary()
86 searchRange->setStart(start.deprecatedNode(), start.deprecatedEditingOffset(), ec); in previousBoundary()
87 searchRange->setEnd(end.deprecatedNode(), end.deprecatedEditingOffset(), ec); in previousBoundary()
95 …bool inTextSecurityMode = start.deprecatedNode() && start.deprecatedNode()->renderer() && start.de… in previousBoundary()
151 backwardsScanRange->setEnd(start.deprecatedNode(), start.deprecatedEditingOffset(), ec); in nextBoundary()
166 searchRange->setStart(start.deprecatedNode(), start.deprecatedEditingOffset(), ec); in nextBoundary()
169 …bool inTextSecurityMode = start.deprecatedNode() && start.deprecatedNode()->renderer() && start.de… in nextBoundary()
321 Node* node = p.deprecatedNode(); in rootBoxForLine()
356 …if (p.deprecatedNode()->renderer() && p.deprecatedNode()->renderer()->isRenderBlock() && !p.deprec… in startPositionForLine()
404 …if (p.deprecatedNode()->renderer() && p.deprecatedNode()->renderer()->isRenderBlock() && !p.deprec… in endPositionForLine()
[all …]
DFormatBlockCommand.cpp63 Node* nodeToSplitTo = enclosingBlockToSplitTreeTo(start.deprecatedNode()); in formatRange()
64 …<Node> outerBlock = (start.deprecatedNode() == nodeToSplitTo) ? start.deprecatedNode() : splitTree… in formatRange()
DVisiblePosition.cpp416 if (highestRoot && !pos.deepEquivalent().deprecatedNode()->isDescendantOf(highestRoot)) in honorEditableBoundaryAtOrBefore()
442 if (highestRoot && !pos.deepEquivalent().deprecatedNode()->isDescendantOf(highestRoot)) in honorEditableBoundaryAtOrAfter()
502 Node* nextNode = next.deprecatedNode(); in canonicalPosition()
503 Node* prevNode = prev.deprecatedNode(); in canonicalPosition()
514 …if ((editingRoot && editingRoot->hasTagName(htmlTag)) || position.deprecatedNode()->isDocumentNode… in canonicalPosition()
611 …fprintf(stderr, "Position [%s]: %s, ", msg, m_deepPosition.deprecatedNode()->nodeName().utf8().dat… in debugPosition()
675 return visiblePosition.deepEquivalent().deprecatedNode()->enclosingBlockFlowElement(); in enclosingBlockFlowElement()
687 return previous.isNull() || !previous.deepEquivalent().deprecatedNode()->isDescendantOf(node); in isFirstVisiblePositionInNode()
699 return next.isNull() || !next.deepEquivalent().deprecatedNode()->isDescendantOf(node); in isLastVisiblePositionInNode()
DEditor.cpp107 Node* selectionStart = selection.start().deprecatedNode(); in selectionForCommand()
270 …if (previous.isNull() || previous.deepEquivalent().deprecatedNode()->rootEditableElement() != star… in canDeleteRange()
503 Node* node = endingSelection.start().deprecatedNode(); in respondToChangedContents()
539 Node* startNode = range->editingStartPosition().deprecatedNode(); in fontForSelection()
574 Node* node = position.deprecatedNode(); in textDirectionForSelection()
605 node = m_frame->selection()->selection().visibleStart().deepEquivalent().deprecatedNode(); in textDirectionForSelection()
642 if (m_frame->selection()->isRange() && !end.deprecatedNode()->isDescendantOf(node)) in textDirectionForSelection()
658 startNode = m_frame->selection()->selection().start().downstream().deprecatedNode(); in hasBidiSelection()
659 Node* endNode = m_frame->selection()->selection().end().upstream().deprecatedNode(); in hasBidiSelection()
663 … startNode = m_frame->selection()->selection().visibleStart().deepEquivalent().deprecatedNode(); in hasBidiSelection()
[all …]
DVisibleSelection.cpp196 Node* n = pos.deprecatedNode(); in makeSearchRange()
300 if (isEndOfParagraph(originalEnd) && !isEmptyTableCell(m_start.deprecatedNode())) { in setStartAndEndFromBaseAndExtentRespectingGranularity()
578 return start().deprecatedNode() ? start().deprecatedNode()->shadowTreeRootNode() : 0; in shadowTreeRootNode()
DSelectionController.cpp1051 ASSERT(pos.deepEquivalent().deprecatedNode()->renderer()); in updateCaretRect()
1085 Node* node = m_selection.start().deprecatedNode(); in caretRenderer()
1622 RenderObject* startRenderer = startPos.deprecatedNode()->renderer(); in updateAppearance()
1623 RenderObject* endRenderer = endPos.deprecatedNode()->renderer(); in updateAppearance()
1798 start = this->start().deprecatedNode(); in currentForm()
1829 ASSERT(start.deprecatedNode()); in revealSelection()
1830 if (start.deprecatedNode() && start.deprecatedNode()->renderer()) { in revealSelection()
1834 if (RenderLayer* layer = start.deprecatedNode()->renderer()->enclosingLayer()) { in revealSelection()
DVisiblePosition.h82 …Element() const { return m_deepPosition.isNotNull() ? m_deepPosition.deprecatedNode()->rootEditabl… in rootEditableElement()
/external/webkit/Source/WebCore/dom/
DPosition.cpp242 Node* n = deprecatedNode(); in previous()
281 Node* n = deprecatedNode(); in next()
335 …return m_anchorType == PositionIsAfterAnchor || m_offset >= lastOffsetForEditing(deprecatedNode()); in atLastEditingPositionForNode()
348 …if (atFirstEditingPositionForNode() && nextPosition.isNotNull() && !nextPosition.deprecatedNode()-… in atEditingBoundary()
352 …if (atLastEditingPositionForNode() && prevPosition.isNotNull() && !prevPosition.deprecatedNode()->… in atEditingBoundary()
355 return nextPosition.isNotNull() && !nextPosition.deprecatedNode()->rendererIsEditable() in atEditingBoundary()
356 && prevPosition.isNotNull() && !prevPosition.deprecatedNode()->rendererIsEditable(); in atEditingBoundary()
380 return !deprecatedNode()->parentNode() && m_offset <= 0; in atStartOfTree()
387 return !deprecatedNode()->parentNode() && m_offset >= lastOffsetForEditing(deprecatedNode()); in atEndOfTree()
392 if (!deprecatedNode()->isTextNode()) in renderedOffset()
[all …]
DPosition.h109 Node* deprecatedNode() const { return m_anchorNode.get(); } in deprecatedNode() function
/external/webkit/Source/WebCore/editing/chromium/
DSelectionControllerChromium.cpp44 …document->axObjectCache()->postNotification(m_selection.start().deprecatedNode()->renderer(), AXOb… in notifyAccessibilityForSelectionChange()
/external/webkit/Source/WebCore/editing/gtk/
DSelectionControllerGtk.cpp87 RenderObject* focusedNode = m_selection.end().deprecatedNode()->renderer(); in notifyAccessibilityForSelectionChange()
/external/webkit/Source/WebCore/accessibility/
DAccessibilityObject.cpp227 if (!p.deprecatedNode()) in updateAXLineStartForVisiblePosition()
229 renderer = p.deprecatedNode()->renderer(); in updateAXLineStartForVisiblePosition()
323 RenderObject* renderer = visiblePos.deepEquivalent().deprecatedNode()->renderer(); in startOfStyleRange()
346 RenderObject* renderer = visiblePos.deepEquivalent().deprecatedNode()->renderer(); in endOfStyleRange()
649 RenderObject* obj = visiblePos.deepEquivalent().deprecatedNode()->renderer(); in accessibilityObjectForPosition()
DAXObjectCache.cpp589 RenderObject* renderer = deepPos.deprecatedNode()->renderer(); in visiblePositionForTextMarkerData()
597 …if (deepPos.deprecatedNode() != textMarkerData.node || deepPos.deprecatedEditingOffset() != textMa… in visiblePositionForTextMarkerData()
613 Node* domNode = deepPos.deprecatedNode(); in textMarkerDataForVisiblePosition()
/external/webkit/Source/WebCore/rendering/
DRenderTextControl.cpp261 …tartPosition.deepEquivalent().deprecatedNode()->shadowAncestorNode() == node && endPosition.deepEq… in setSelectionRange()
350 if (!RenderTextControl::isSelectableElement(innerTextElement, indexPosition.deprecatedNode())) in indexForVisiblePosition()
356 range->setEnd(indexPosition.deprecatedNode(), indexPosition.deprecatedEditingOffset(), ec); in indexForVisiblePosition()

12