/external/chromium_org/third_party/WebKit/Source/core/editing/ |
D | VisibleSelection.cpp | 79 : m_base(pos.deepEquivalent()) in VisibleSelection() 80 , m_extent(pos.deepEquivalent()) in VisibleSelection() 89 : m_base(base.deepEquivalent()) in VisibleSelection() 90 , m_extent(extent.deepEquivalent()) in VisibleSelection() 162 m_base = visiblePosition.deepEquivalent(); in setBase() 180 m_extent = visiblePosition.deepEquivalent(); in setExtent() 333 m_base = VisiblePosition(m_base, m_affinity).deepEquivalent(); in setBaseAndExtentToDeepEquivalents() 338 m_extent = VisiblePosition(m_extent, m_affinity).deepEquivalent(); in setBaseAndExtentToDeepEquivalents() 378 m_start = startOfWord(start, side).deepEquivalent(); in setStartAndEndFromBaseAndExtentRespectingGranularity() 405 m_end = end.deepEquivalent(); in setStartAndEndFromBaseAndExtentRespectingGranularity() [all …]
|
D | VisiblePosition.cpp | 460 ContainerNode* highestRoot = highestEditableRoot(deepEquivalent()); in honorEditingBoundaryAtOrBefore() 463 if (highestRoot && !pos.deepEquivalent().deprecatedNode()->isDescendantOf(highestRoot)) in honorEditingBoundaryAtOrBefore() 469 if (highestEditableRoot(pos.deepEquivalent()) == highestRoot) in honorEditingBoundaryAtOrBefore() 478 return lastEditableVisiblePositionBeforePositionInRoot(pos.deepEquivalent(), highestRoot); in honorEditingBoundaryAtOrBefore() 486 ContainerNode* highestRoot = highestEditableRoot(deepEquivalent()); in honorEditingBoundaryAtOrAfter() 489 if (highestRoot && !pos.deepEquivalent().deprecatedNode()->isDescendantOf(highestRoot)) in honorEditingBoundaryAtOrAfter() 495 if (highestEditableRoot(pos.deepEquivalent()) == highestRoot) in honorEditingBoundaryAtOrAfter() 504 return firstEditableVisiblePositionAfterPositionInRoot(pos.deepEquivalent(), highestRoot); in honorEditingBoundaryAtOrAfter() 512 ContainerNode* highestRoot = highestEditableRoot(deepEquivalent()); in skipToStartOfEditingBoundary() 513 ContainerNode* highestRootOfPos = highestEditableRoot(pos.deepEquivalent()); in skipToStartOfEditingBoundary() [all …]
|
D | InsertListCommand.cpp | 90 if (!enclosingList(start.deepEquivalent().deprecatedNode())) in selectionHasListOfType() 95 HTMLElement* listElement = enclosingList(start.deepEquivalent().deprecatedNode()); in selectionHasListOfType() 162 if (!startOfLastParagraph.deepEquivalent().inDocument()) in doApply() 234 …ingListChild(VisiblePosition(firstPositionInNode(listElement.get())).deepEquivalent().deprecatedNo… in doApplyForSingleParagraph() 282 … nextListChild = enclosingListChild(end.next().deepEquivalent().deprecatedNode(), listElement); in unlistifyParagraph() 284 …previousListChild = enclosingListChild(start.previous().deepEquivalent().deprecatedNode(), listEle… in unlistifyParagraph() 326 … HTMLElement* listElement = outermostEnclosingList(adjacentPos.deepEquivalent().deprecatedNode()); in adjacentEnclosingList() 331 Element* previousCell = enclosingTableCell(pos.deepEquivalent()); in adjacentEnclosingList() 332 Element* currentCell = enclosingTableCell(adjacentPos.deepEquivalent()); in adjacentEnclosingList() 335 || listElement->contains(pos.deepEquivalent().deprecatedNode()) in adjacentEnclosingList() [all …]
|
D | Caret.cpp | 60 return isRichlyEditablePosition(m_position.deepEquivalent()); in isContentRichlyEditable() 69 if (Node* node = m_position.deepEquivalent().deprecatedNode()) in setCaretPosition() 74 if (Node* node = m_position.deepEquivalent().deprecatedNode()) { in setCaretPosition() 106 if (!removingNodeRemovesPosition(node, m_position.deepEquivalent())) in nodeWillBeRemoved() 109 m_position.deepEquivalent().document()->renderView()->clearSelection(); in nodeWillBeRemoved() 191 …return updateCaretRect(document, PositionWithAffinity(caretPosition.deepEquivalent(), caretPositio… in updateCaretRect() 196 return CaretBase::caretRenderer(m_position.deepEquivalent().deprecatedNode()); in caretRenderer() 291 if (m_position.deepEquivalent().deprecatedNode()->document().frame() == frame) in paintDragCaret() 292 paintCaret(m_position.deepEquivalent().deprecatedNode(), p, paintOffset, clipRect); in paintDragCaret()
|
D | IndentOutdentCommand.cpp | 139 …gElement = toHTMLElement(enclosingNodeOfType(visibleStartOfParagraph.deepEquivalent(), &isHTMLList… in outdentParagraph() 177 visibleStartOfParagraph = VisiblePosition(visibleStartOfParagraph.deepEquivalent()); in outdentParagraph() 178 visibleEndOfParagraph = VisiblePosition(visibleEndOfParagraph.deepEquivalent()); in outdentParagraph() 180 insertNodeAt(createBreakElement(document()), visibleStartOfParagraph.deepEquivalent()); in outdentParagraph() 182 insertNodeAt(createBreakElement(document()), visibleEndOfParagraph.deepEquivalent()); in outdentParagraph() 187 …if (Element* enclosingBlockFlow = enclosingBlock(visibleStartOfParagraph.deepEquivalent().deprecat… in outdentParagraph() 192 …ghestInlineNode = highestEnclosingNodeOfType(visibleStartOfParagraph.deepEquivalent(), isInline, C… in outdentParagraph() 193 …ent, highestInlineNode ? highestInlineNode : visibleStartOfParagraph.deepEquivalent().deprecatedNo… in outdentParagraph() 231 if (endAfterSelection.isNotNull() && !endAfterSelection.deepEquivalent().inDocument()) in outdentRegion() 234 if (endOfNextParagraph.isNotNull() && !endOfNextParagraph.deepEquivalent().inDocument()) { in outdentRegion()
|
D | ApplyBlockElementCommand.cpp | 113 Position start = startOfSelection.deepEquivalent().downstream(); in formatSelection() 127 m_endOfLastParagraph = endOfLastParagraph.deepEquivalent(); in formatSelection() 132 if (endOfCurrentParagraph.deepEquivalent() == m_endOfLastParagraph) in formatSelection() 145 …if (enclosingCell && enclosingCell != enclosingNodeOfType(endOfNextParagraph.deepEquivalent(), &is… in formatSelection() 151 if (endAfterSelection.isNotNull() && !endAfterSelection.deepEquivalent().inDocument()) in formatSelection() 155 if (endOfNextParagraph.isNotNull() && !endOfNextParagraph.deepEquivalent().inDocument()) in formatSelection() 185 start = startOfParagraph(endOfCurrentParagraph).deepEquivalent(); in rangeForParagraphSplittingTextNodesIfNeeded() 186 end = endOfCurrentParagraph.deepEquivalent(); in rangeForParagraphSplittingTextNodesIfNeeded() 197 start = startOfParagraph(VisiblePosition(end.previous())).deepEquivalent(); in rangeForParagraphSplittingTextNodesIfNeeded() 249 Position position = endOfNextParagraph.deepEquivalent(); in endOfNextParagrahSplittingTextNodesIfNeeded()
|
D | VisiblePosition.h | 67 Position deepEquivalent() const { return m_deepPosition; } in deepEquivalent() function 68 … Position toParentAnchoredPosition() const { return deepEquivalent().parentAnchoredEquivalent(); } in toParentAnchoredPosition() 126 return a.deepEquivalent() == b.deepEquivalent();
|
D | VisibleUnits.cpp | 84 … ContainerNode* highestRoot = highestEditableRoot(visiblePosition.deepEquivalent(), editableType); in previousRootInlineBoxCandidatePosition() 107 … ContainerNode* highestRoot = highestEditableRoot(visiblePosition.deepEquivalent(), editableType); in nextRootInlineBoxCandidatePosition() 354 TextDirection blockDirection = directionOfEnclosingBlock(visiblePosition.deepEquivalent()); in visualWordPosition() 369 … adjacentCharacterPosition.deepEquivalent().getInlineBoxAndOffset(UPSTREAM, box, offsetInBox); in visualWordPosition() 425 if (leftWordBreak.isNull() && isEditablePosition(visiblePosition.deepEquivalent())) { in leftWordPosition() 426 TextDirection blockDirection = directionOfEnclosingBlock(visiblePosition.deepEquivalent()); in leftWordPosition() 438 if (rightWordBreak.isNull() && isEditablePosition(visiblePosition.deepEquivalent())) { in rightWordPosition() 439 TextDirection blockDirection = directionOfEnclosingBlock(visiblePosition.deepEquivalent()); in rightWordPosition() 452 Position pos = c.deepEquivalent(); in previousBoundary() 529 Position pos = c.deepEquivalent(); in nextBoundary() [all …]
|
D | ReplaceSelectionCommand.cpp | 391 Position existing = endOfExistingContent.deepEquivalent(); in hasMatchingQuoteLevel() 392 Position inserted = endOfInsertedContent.deepEquivalent(); in hasMatchingQuoteLevel() 418 && !isHTMLBRElement(*startOfInsertedContent.deepEquivalent().deprecatedNode()) in shouldMergeStart() 431 && !isHTMLBRElement(*endOfInsertedContent.deepEquivalent().deprecatedNode()) in shouldMergeEnd() 470 Node* sourceNode = source.deepEquivalent().deprecatedNode(); in shouldMerge() 471 Node* destinationNode = destination.deepEquivalent().deprecatedNode(); in shouldMerge() 474 … return !enclosingNodeOfType(source.deepEquivalent(), &isMailPasteAsQuotationHTMLBlockQuoteElement) in shouldMerge() 477 … && enclosingTableCell(source.deepEquivalent()) == enclosingTableCell(destination.deepEquivalent()) in shouldMerge() 851 insertNodeBefore(placeholder, startOfParagraphToMove.deepEquivalent().deprecatedNode()); in mergeEndIfNeeded() 860 m_startOfInsertedContent = endingSelection().visibleStart().deepEquivalent(); in mergeEndIfNeeded() [all …]
|
D | CompositeEditCommand.cpp | 708 Position pos = visiblePosition.deepEquivalent().downstream(); in replaceCollapsibleWhitespaceWithNonBreakingSpaceIfNeeded() 831 Position end = VisiblePosition(pos, VP_DEFAULT_AFFINITY).next().deepEquivalent().downstream(); in deleteInsignificantTextDownstream() 919 Position upstreamStart = visibleParagraphStart.deepEquivalent().upstream(); in moveParagraphContentsToNewBlockIfNecessary() 920 Position upstreamEnd = visibleEnd.deepEquivalent().upstream(); in moveParagraphContentsToNewBlockIfNecessary() 957 bool endWasBr = isHTMLBRElement(*visibleParagraphEnd.deepEquivalent().deprecatedNode()); in moveParagraphContentsToNewBlockIfNecessary() 1074 Node* destinationNode = destination.deepEquivalent().anchorNode(); in cleanupAfterDeletion() 1077 Position position = caretAfterDelete.deepEquivalent().downstream(); in cleanupAfterDeletion() 1095 if (!position.rendersInDifferentPosition(destination.deepEquivalent())) { in cleanupAfterDeletion() 1129 Position start = startOfParagraphToMove.deepEquivalent().downstream(); in moveParagraphWithClones() 1130 …ParagraphToMove == endOfParagraphToMove ? start : endOfParagraphToMove.deepEquivalent().upstream(); in moveParagraphWithClones() [all …]
|
D | DeleteSelectionCommand.cpp | 224 … Position pos = VisiblePosition(m_upstreamStart, m_selectionToDelete.affinity()).deepEquivalent(); in initializePositionData() 233 pos = visiblePos.deepEquivalent(); in initializePositionData() 248 pos = VisiblePosition(m_downstreamEnd, VP_DEFAULT_AFFINITY).next().deepEquivalent(); in initializePositionData() 623 …lock->contains(startOfParagraphToMove.deepEquivalent().deprecatedNode()) || !startOfParagraphToMov… in mergeParagraphs() 629 …deepEquivalent().deprecatedNode() || (!mergeDestination.deepEquivalent().deprecatedNode()->isDesce… in mergeParagraphs() 649 m_endingPosition = mergeDestination.deepEquivalent(); in mergeParagraphs() 656 if (isHTMLBRElement(*mergeDestination.deepEquivalent().downstream().deprecatedNode())) { in mergeParagraphs() 657 … removeNodeAndPruneAncestors(mergeDestination.deepEquivalent().downstream().deprecatedNode()); in mergeParagraphs() 658 m_endingPosition = startOfParagraphToMove.deepEquivalent(); in mergeParagraphs() 666 …if (isRenderedAsNonInlineTableImageOrHR(startOfParagraphToMove.deepEquivalent().deprecatedNode()) … in mergeParagraphs()
|
D | htmlediting.cpp | 114 return comparePositions(a.deepEquivalent(), b.deepEquivalent()); in comparePositions() 514 Position upstream(visiblePosition.deepEquivalent().upstream()); in isFirstPositionAfterTable() 523 Position downstream(visiblePosition.deepEquivalent().downstream()); in isLastPositionBeforeTable() 556 …selectedRange->setStart(start.deepEquivalent().containerNode(), start.deepEquivalent().computeOffs… in createRange() 558 …selectedRange->setEnd(end.deepEquivalent().containerNode(), end.deepEquivalent().computeOffsetInCo… in createRange() 714 Node* listChildNode = enclosingListChild(visiblePos.deepEquivalent().deprecatedNode()); in enclosingEmptyListItem() 1050 return lineBreakExistsAtPosition(visiblePosition.deepEquivalent().downstream()); in lineBreakExistsAtVisiblePosition() 1086 if (startOfSelection.deepEquivalent().deprecatedNode()->isDescendantOf(table)) in selectionForParagraphIteration() 1094 if (endOfSelection.deepEquivalent().deprecatedNode()->isDescendantOf(table)) in selectionForParagraphIteration() 1111 Position p(visiblePosition.deepEquivalent()); in indexForVisiblePosition() [all …]
|
D | FrameSelection.cpp | 138 …setSelection(VisibleSelection(pos.deepEquivalent(), pos.deepEquivalent(), pos.affinity(), m_select… in moveTo() 145 …setSelection(VisibleSelection(base.deepEquivalent(), extent.deepEquivalent(), base.affinity(), sel… in moveTo() 603 …if (Node* rootUserSelectAll = Position::rootUserSelectAllForNode(pos.deepEquivalent().anchorNode()… in adjustPositionForUserSelectAll() 679 if (isEditablePosition(pos.deepEquivalent())) in modifyExtendingForward() 762 if (isEditablePosition(pos.deepEquivalent())) in modifyMovingForward() 847 if (isEditablePosition(pos.deepEquivalent())) in modifyExtendingBackward() 924 if (isEditablePosition(pos.deepEquivalent())) in modifyMovingBackward() 1205 …setSelection(VisibleSelection(pos.deepEquivalent(), m_selection.extent(), pos.affinity(), selectio… in setBase() 1211 …setSelection(VisibleSelection(m_selection.base(), pos.deepEquivalent(), pos.affinity(), selectionH… in setExtent() 1308 Position start(m_selection.visibleStart().deepEquivalent()); in contains() [all …]
|
D | InsertParagraphSeparatorCommand.cpp | 172 Position canonicalPos = VisiblePosition(insertionPosition).deepEquivalent(); in doApply() 322 if (visiblePos.deepEquivalent().anchorNode()->renderer()->isBR()) { in doApply() 335 insertionPosition = positionOutsideTabSpan(VisiblePosition(insertionPosition).deepEquivalent()); in doApply()
|
D | TypingCommand.cpp | 454 Node* enclosingTableCell = enclosingNodeOfType(visibleStart.deepEquivalent(), &isTableCell); in deleteKeyPressed() 543 Node* enclosingTableCell = enclosingNodeOfType(visibleEnd.deepEquivalent(), &isTableCell); in forwardDeleteKeyPressed() 547 … downstreamEnd = visibleEnd.next(CannotCrossEditingBoundary).deepEquivalent().downstream(); in forwardDeleteKeyPressed()
|
D | InsertLineBreakCommand.cpp | 80 Position pos(caret.deepEquivalent()); in doApply()
|
D | PlainTextRange.cpp | 114 Position runEnd = VisiblePosition(textRunStartPosition).next().deepEquivalent(); in createRangeFor()
|
D | SpellChecker.cpp | 195 …siblePositionAfterPositionInRoot(position, frame().document()->documentElement()).deepEquivalent(); in advanceToNextMisspelling() 737 …ordRange = Range::create(*document, startOfFirstWord.deepEquivalent(), endOfLastWord.deepEquivalen… in updateMarkersForWordsAffectedByEditing() 881 …e->renderer())->textFormControlElement()->visiblePositionForIndex(1).deepEquivalent().deprecatedNo… in findFirstMarkable()
|
D | ApplyStyleCommand.cpp | 262 …Node& scope = NodeTraversal::highestAncestorOrSelf(*visibleStart.deepEquivalent().deprecatedNode()… in applyBlockStyle() 263 … Range::create(document(), firstPositionInNode(&scope), visibleStart.deepEquivalent().parentAnchor… in applyBlockStyle() 264 … = Range::create(document(), firstPositionInNode(&scope), visibleEnd.deepEquivalent().parentAnchor… in applyBlockStyle() 272 StyleChange styleChange(style, paragraphStart.deepEquivalent()); in applyBlockStyle() 274 …RefPtrWillBeRawPtr<Element> block = enclosingBlock(paragraphStart.deepEquivalent().deprecatedNode(… in applyBlockStyle() 275 const Position& paragraphStartToMove = paragraphStart.deepEquivalent(); in applyBlockStyle()
|
D | Editor.cpp | 265 …if (previous.isNull() || previous.deepEquivalent().deprecatedNode()->rootEditableElement() != star… in canDeleteRange() 1098 …CaretRect = RenderedPosition(VisiblePosition(range->startPosition()).deepEquivalent(), DOWNSTREAM)… in firstRectForRange() 1102 …IntRect endCaretRect = RenderedPosition(VisiblePosition(range->endPosition()).deepEquivalent(), UP… in firstRectForRange() 1137 …typingStyle->prepareToApplyAt(frame().selection().selection().visibleStart().deepEquivalent(), Edi… in computeAndSetTypingStyle()
|
D | InsertTextCommand.cpp | 232 Position insertPos = VisiblePosition(pos, DOWNSTREAM).deepEquivalent(); in insertTab()
|
D | RenderedPosition.cpp | 81 m_renderer = rendererFromPosition(position.deepEquivalent()); in RenderedPosition()
|
D | markup.cpp | 492 Node* upstreamNode = next.deepEquivalent().upstream().deprecatedNode(); in needInterchangeNewlineAfter() 493 Node* downstreamNode = v.deepEquivalent().downstream().deprecatedNode(); in needInterchangeNewlineAfter() 598 startNode = visibleStart.next().deepEquivalent().deprecatedNode(); in createMarkupInternal()
|
/external/chromium_org/third_party/WebKit/Source/web/ |
D | WebSurroundingText.cpp | 46 …ode->renderer()->positionForPoint(static_cast<IntPoint>(nodePoint))).deepEquivalent().parentAnchor… in initialize()
|
/external/chromium_org/third_party/WebKit/Source/core/dom/ |
D | Range.cpp | 1700 …setStart(start.deepEquivalent().containerNode(), start.deepEquivalent().computeOffsetInContainerNo… in expand() 1701 …setEnd(end.deepEquivalent().containerNode(), end.deepEquivalent().computeOffsetInContainerNode(), … in expand()
|