/external/chromium_org/third_party/WebKit/Source/core/editing/ |
IndentOutdentCommand.cpp | 139 HTMLElement* enclosingElement = toHTMLElement(enclosingNodeOfType(visibleStartOfParagraph.deepEquivalent(), &isHTMLListOrBlockquoteElement)); 177 visibleStartOfParagraph = VisiblePosition(visibleStartOfParagraph.deepEquivalent()); 178 visibleEndOfParagraph = VisiblePosition(visibleEndOfParagraph.deepEquivalent()); 180 insertNodeAt(createBreakElement(document()), visibleStartOfParagraph.deepEquivalent()); 182 insertNodeAt(createBreakElement(document()), visibleEndOfParagraph.deepEquivalent()); 187 if (Element* enclosingBlockFlow = enclosingBlock(visibleStartOfParagraph.deepEquivalent().deprecatedNode())) { 192 Node* highestInlineNode = highestEnclosingNodeOfType(visibleStartOfParagraph.deepEquivalent(), isInline, CannotCrossEditingBoundary, enclosingBlockFlow); 193 splitElement(enclosingElement, highestInlineNode ? highestInlineNode : visibleStartOfParagraph.deepEquivalent().deprecatedNode()); 231 if (endAfterSelection.isNotNull() && !endAfterSelection.deepEquivalent().inDocument()) 234 if (endOfNextParagraph.isNotNull() && !endOfNextParagraph.deepEquivalent().inDocument()) [all...] |
Caret.cpp | 60 return isRichlyEditablePosition(m_position.deepEquivalent()); 69 if (Node* node = m_position.deepEquivalent().deprecatedNode()) 74 if (Node* node = m_position.deepEquivalent().deprecatedNode()) { 106 if (!removingNodeRemovesPosition(node, m_position.deepEquivalent())) 109 m_position.deepEquivalent().document()->renderView()->clearSelection(); 191 return updateCaretRect(document, PositionWithAffinity(caretPosition.deepEquivalent(), caretPosition.affinity())); 196 return CaretBase::caretRenderer(m_position.deepEquivalent().deprecatedNode()); 291 if (m_position.deepEquivalent().deprecatedNode()->document().frame() == frame) 292 paintCaret(m_position.deepEquivalent().deprecatedNode(), p, paintOffset, clipRect);
|
VisiblePosition.h | 67 Position deepEquivalent() const { return m_deepPosition; } 68 Position toParentAnchoredPosition() const { return deepEquivalent().parentAnchoredEquivalent(); } 126 return a.deepEquivalent() == b.deepEquivalent();
|
VisiblePosition.cpp | 460 ContainerNode* highestRoot = highestEditableRoot(deepEquivalent()); 463 if (highestRoot && !pos.deepEquivalent().deprecatedNode()->isDescendantOf(highestRoot)) 469 if (highestEditableRoot(pos.deepEquivalent()) == highestRoot) 478 return lastEditableVisiblePositionBeforePositionInRoot(pos.deepEquivalent(), highestRoot); 486 ContainerNode* highestRoot = highestEditableRoot(deepEquivalent()); 489 if (highestRoot && !pos.deepEquivalent().deprecatedNode()->isDescendantOf(highestRoot)) 495 if (highestEditableRoot(pos.deepEquivalent()) == highestRoot) 504 return firstEditableVisiblePositionAfterPositionInRoot(pos.deepEquivalent(), highestRoot); 512 ContainerNode* highestRoot = highestEditableRoot(deepEquivalent()); 513 ContainerNode* highestRootOfPos = highestEditableRoot(pos.deepEquivalent()); [all...] |
InsertListCommand.cpp | 90 if (!enclosingList(start.deepEquivalent().deprecatedNode())) 95 HTMLElement* listElement = enclosingList(start.deepEquivalent().deprecatedNode()); 162 if (!startOfLastParagraph.deepEquivalent().inDocument()) 234 Node* firstChildInList = enclosingListChild(VisiblePosition(firstPositionInNode(listElement.get())).deepEquivalent().deprecatedNode(), listElement.get()); 282 nextListChild = enclosingListChild(end.next().deepEquivalent().deprecatedNode(), listElement); 284 previousListChild = enclosingListChild(start.previous().deepEquivalent().deprecatedNode(), listElement); 326 HTMLElement* listElement = outermostEnclosingList(adjacentPos.deepEquivalent().deprecatedNode()); 331 Element* previousCell = enclosingTableCell(pos.deepEquivalent()); 332 Element* currentCell = enclosingTableCell(adjacentPos.deepEquivalent()); 335 || listElement->contains(pos.deepEquivalent().deprecatedNode() [all...] |
ApplyBlockElementCommand.cpp | 113 Position start = startOfSelection.deepEquivalent().downstream(); 127 m_endOfLastParagraph = endOfLastParagraph.deepEquivalent(); 132 if (endOfCurrentParagraph.deepEquivalent() == m_endOfLastParagraph) 145 if (enclosingCell && enclosingCell != enclosingNodeOfType(endOfNextParagraph.deepEquivalent(), &isTableCell)) 151 if (endAfterSelection.isNotNull() && !endAfterSelection.deepEquivalent().inDocument()) 153 // Sanity check: Make sure our moveParagraph calls didn't remove endOfNextParagraph.deepEquivalent().deprecatedNode() 155 if (endOfNextParagraph.isNotNull() && !endOfNextParagraph.deepEquivalent().inDocument()) 185 start = startOfParagraph(endOfCurrentParagraph).deepEquivalent(); 186 end = endOfCurrentParagraph.deepEquivalent(); 197 start = startOfParagraph(VisiblePosition(end.previous())).deepEquivalent(); [all...] |
VisibleSelection.cpp | 79 : m_base(pos.deepEquivalent()) 80 , m_extent(pos.deepEquivalent()) 89 : m_base(base.deepEquivalent()) 90 , m_extent(extent.deepEquivalent()) 162 m_base = visiblePosition.deepEquivalent(); 180 m_extent = visiblePosition.deepEquivalent(); 333 m_base = VisiblePosition(m_base, m_affinity).deepEquivalent(); 338 m_extent = VisiblePosition(m_extent, m_affinity).deepEquivalent(); 378 m_start = startOfWord(start, side).deepEquivalent(); 405 m_end = end.deepEquivalent(); [all...] |
ReplaceSelectionCommand.cpp | 391 Position existing = endOfExistingContent.deepEquivalent(); 392 Position inserted = endOfInsertedContent.deepEquivalent(); 418 && !isHTMLBRElement(*startOfInsertedContent.deepEquivalent().deprecatedNode()) 431 && !isHTMLBRElement(*endOfInsertedContent.deepEquivalent().deprecatedNode()) 470 Node* sourceNode = source.deepEquivalent().deprecatedNode(); 471 Node* destinationNode = destination.deepEquivalent().deprecatedNode(); 474 return !enclosingNodeOfType(source.deepEquivalent(), &isMailPasteAsQuotationHTMLBlockQuoteElement) 477 && enclosingTableCell(source.deepEquivalent()) == enclosingTableCell(destination.deepEquivalent()) [all...] |
VisibleUnits.cpp | 84 ContainerNode* highestRoot = highestEditableRoot(visiblePosition.deepEquivalent(), editableType); 107 ContainerNode* highestRoot = highestEditableRoot(visiblePosition.deepEquivalent(), editableType); 354 TextDirection blockDirection = directionOfEnclosingBlock(visiblePosition.deepEquivalent()); 369 adjacentCharacterPosition.deepEquivalent().getInlineBoxAndOffset(UPSTREAM, box, offsetInBox); 425 if (leftWordBreak.isNull() && isEditablePosition(visiblePosition.deepEquivalent())) { 426 TextDirection blockDirection = directionOfEnclosingBlock(visiblePosition.deepEquivalent()); 438 if (rightWordBreak.isNull() && isEditablePosition(visiblePosition.deepEquivalent())) { 439 TextDirection blockDirection = directionOfEnclosingBlock(visiblePosition.deepEquivalent()); 452 Position pos = c.deepEquivalent(); 529 Position pos = c.deepEquivalent(); [all...] |
CompositeEditCommand.cpp | 708 Position pos = visiblePosition.deepEquivalent().downstream(); 831 Position end = VisiblePosition(pos, VP_DEFAULT_AFFINITY).next().deepEquivalent().downstream(); [all...] |
DeleteSelectionCommand.cpp | 224 Position pos = VisiblePosition(m_upstreamStart, m_selectionToDelete.affinity()).deepEquivalent(); 233 pos = visiblePos.deepEquivalent(); 248 pos = VisiblePosition(m_downstreamEnd, VP_DEFAULT_AFFINITY).next().deepEquivalent(); 623 if (!endBlock || !endBlock->contains(startOfParagraphToMove.deepEquivalent().deprecatedNode()) || !startOfParagraphToMove.deepEquivalent().deprecatedNode()) { 629 if (!mergeDestination.deepEquivalent().deprecatedNode() || (!mergeDestination.deepEquivalent().deprecatedNode()->isDescendantOf(enclosingBlock(m_upstreamStart.containerNode())) && (!mergeDestination.deepEquivalent().anchorNode()->hasChildren() || !m_upstreamStart.containerNode()->hasChildren())) || (m_startsAtEmptyLine && mergeDestination != startOfParagraphToMove)) { 649 m_endingPosition = mergeDestination.deepEquivalent(); [all...] |
htmlediting.cpp | 114 return comparePositions(a.deepEquivalent(), b.deepEquivalent()); 514 Position upstream(visiblePosition.deepEquivalent().upstream()); 523 Position downstream(visiblePosition.deepEquivalent().downstream()); 556 selectedRange->setStart(start.deepEquivalent().containerNode(), start.deepEquivalent().computeOffsetInContainerNode(), exceptionState); 558 selectedRange->setEnd(end.deepEquivalent().containerNode(), end.deepEquivalent().computeOffsetInContainerNode(), exceptionState); 714 Node* listChildNode = enclosingListChild(visiblePos.deepEquivalent().deprecatedNode()); [all...] |
InsertLineBreakCommand.cpp | 80 Position pos(caret.deepEquivalent());
|
FrameSelection.cpp | 138 setSelection(VisibleSelection(pos.deepEquivalent(), pos.deepEquivalent(), pos.affinity(), m_selection.isDirectional()), options, align); 145 setSelection(VisibleSelection(base.deepEquivalent(), extent.deepEquivalent(), base.affinity(), selectionHasDirection), options); 603 if (Node* rootUserSelectAll = Position::rootUserSelectAllForNode(pos.deepEquivalent().anchorNode())) 679 if (isEditablePosition(pos.deepEquivalent())) 762 if (isEditablePosition(pos.deepEquivalent())) [all...] |
InsertParagraphSeparatorCommand.cpp | 172 Position canonicalPos = VisiblePosition(insertionPosition).deepEquivalent(); 322 if (visiblePos.deepEquivalent().anchorNode()->renderer()->isBR()) { 335 insertionPosition = positionOutsideTabSpan(VisiblePosition(insertionPosition).deepEquivalent());
|
PlainTextRange.cpp | 114 Position runEnd = VisiblePosition(textRunStartPosition).next().deepEquivalent();
|
TypingCommand.cpp | 454 Node* enclosingTableCell = enclosingNodeOfType(visibleStart.deepEquivalent(), &isTableCell); 543 Node* enclosingTableCell = enclosingNodeOfType(visibleEnd.deepEquivalent(), &isTableCell); 547 downstreamEnd = visibleEnd.next(CannotCrossEditingBoundary).deepEquivalent().downstream();
|
InsertTextCommand.cpp | 232 Position insertPos = VisiblePosition(pos, DOWNSTREAM).deepEquivalent();
|
RenderedPosition.cpp | 81 m_renderer = rendererFromPosition(position.deepEquivalent());
|
SpellChecker.cpp | 195 position = firstEditableVisiblePositionAfterPositionInRoot(position, frame().document()->documentElement()).deepEquivalent(); [all...] |
ApplyStyleCommand.cpp | 262 Node& scope = NodeTraversal::highestAncestorOrSelf(*visibleStart.deepEquivalent().deprecatedNode()); 263 RefPtrWillBeRawPtr<Range> startRange = Range::create(document(), firstPositionInNode(&scope), visibleStart.deepEquivalent().parentAnchoredEquivalent()); 264 RefPtrWillBeRawPtr<Range> endRange = Range::create(document(), firstPositionInNode(&scope), visibleEnd.deepEquivalent().parentAnchoredEquivalent()); 272 StyleChange styleChange(style, paragraphStart.deepEquivalent()); 274 RefPtrWillBeRawPtr<Element> block = enclosingBlock(paragraphStart.deepEquivalent().deprecatedNode()); 275 const Position& paragraphStartToMove = paragraphStart.deepEquivalent(); [all...] |
Editor.cpp | 265 if (previous.isNull() || previous.deepEquivalent().deprecatedNode()->rootEditableElement() != startContainer->rootEditableElement()) [all...] |
markup.cpp | 492 Node* upstreamNode = next.deepEquivalent().upstream().deprecatedNode(); 493 Node* downstreamNode = v.deepEquivalent().downstream().deprecatedNode(); 598 startNode = visibleStart.next().deepEquivalent().deprecatedNode(); [all...] |
/external/chromium_org/third_party/WebKit/Source/web/ |
WebSurroundingText.cpp | 46 m_private.reset(new SurroundingText(VisiblePosition(node->renderer()->positionForPoint(static_cast<IntPoint>(nodePoint))).deepEquivalent().parentAnchoredEquivalent(), maxLength));
|
/external/chromium_org/third_party/WebKit/Source/core/dom/ |
Range.cpp | [all...] |