Home
last modified time | relevance | path

Searched refs:VisiblePosition (Results 1 – 25 of 112) sorted by relevance

12345

/external/webkit/Source/WebCore/editing/
Dvisible_units.h36 class VisiblePosition; variable
41 VisiblePosition startOfWord(const VisiblePosition &, EWordSide = RightWordIfOnBoundary);
42 VisiblePosition endOfWord(const VisiblePosition &, EWordSide = RightWordIfOnBoundary);
43 VisiblePosition previousWordPosition(const VisiblePosition &);
44 VisiblePosition nextWordPosition(const VisiblePosition &);
45 VisiblePosition rightWordPosition(const VisiblePosition&);
46 VisiblePosition leftWordPosition(const VisiblePosition&);
49 VisiblePosition startOfSentence(const VisiblePosition &);
50 VisiblePosition endOfSentence(const VisiblePosition &);
51 VisiblePosition previousSentencePosition(const VisiblePosition &);
[all …]
Dvisible_units.cpp53 static VisiblePosition previousBoundary(const VisiblePosition& c, BoundarySearchFunction searchFunc… in previousBoundary()
58 return VisiblePosition(); in previousBoundary()
91 return VisiblePosition(); in previousBoundary()
120 return VisiblePosition(it.atEnd() ? it.range()->startPosition() : pos, DOWNSTREAM); in previousBoundary()
125 return VisiblePosition(Position(node, next), DOWNSTREAM); in previousBoundary()
131 return VisiblePosition(charIt.range()->endPosition(), DOWNSTREAM); in previousBoundary()
134 static VisiblePosition nextBoundary(const VisiblePosition& c, BoundarySearchFunction searchFunction) in nextBoundary()
139 return VisiblePosition(); in nextBoundary()
205 VisiblePosition visPos = VisiblePosition(pos); in nextBoundary()
206 if (visPos == VisiblePosition(characterRange->startPosition())) { in nextBoundary()
[all …]
DVisiblePosition.h51 class VisiblePosition {
55 VisiblePosition() : m_affinity(VP_DEFAULT_AFFINITY) { } in VisiblePosition() function
56 VisiblePosition(const Position&, EAffinity = VP_DEFAULT_AFFINITY);
71 VisiblePosition next(EditingBoundaryCrossingRule = CanCrossEditingBoundary) const;
72 VisiblePosition previous(EditingBoundaryCrossingRule = CanCrossEditingBoundary) const;
73 VisiblePosition honorEditableBoundaryAtOrBefore(const VisiblePosition&) const;
74 VisiblePosition honorEditableBoundaryAtOrAfter(const VisiblePosition&) const;
76 VisiblePosition left(bool stayInEditableContent = false) const;
77 VisiblePosition right(bool stayInEditableContent = false) const;
120 inline bool operator==(const VisiblePosition& a, const VisiblePosition& b)
[all …]
DVisiblePosition.cpp47 VisiblePosition::VisiblePosition(const Position &pos, EAffinity affinity) in VisiblePosition() function in WebCore::VisiblePosition
52 void VisiblePosition::init(const Position& position, EAffinity affinity) in init()
59 …if (m_affinity == UPSTREAM && (isNull() || inSameLine(VisiblePosition(position, DOWNSTREAM), *this… in init()
63 VisiblePosition VisiblePosition::next(EditingBoundaryCrossingRule rule) const in next()
67 VisiblePosition next(nextVisuallyDistinctCandidate(m_deepPosition), m_affinity); in next()
75 VisiblePosition VisiblePosition::previous(EditingBoundaryCrossingRule rule) const in previous()
84 return VisiblePosition(); in previous()
86 VisiblePosition prev = VisiblePosition(pos, DOWNSTREAM); in previous()
93 VisiblePosition temp = prev; in previous()
105 Position VisiblePosition::leftVisuallyDistinctCandidate() const in leftVisuallyDistinctCandidate()
[all …]
DSelectionController.h47 class VisiblePosition; variable
73 …void moveTo(const VisiblePosition&, bool userTriggered = false, CursorAlignOnScroll = AlignCursorO…
74 void moveTo(const VisiblePosition&, const VisiblePosition&, bool userTriggered = false);
98 void setStart(const VisiblePosition &, bool userTriggered = false);
99 void setEnd(const VisiblePosition &, bool userTriggered = false);
101 void setBase(const VisiblePosition&, bool userTriggered = false);
103 void setExtent(const VisiblePosition&, bool userTriggered = false);
192 VisiblePosition positionForPlatform(bool isGetStart) const;
193 VisiblePosition startForPlatform() const;
194 VisiblePosition endForPlatform() const;
[all …]
DIndentOutdentCommand.cpp119 VisiblePosition visibleStartOfParagraph = startOfParagraph(endingSelection().visibleStart()); in outdentParagraph()
120 VisiblePosition visibleEndOfParagraph = endOfParagraph(visibleStartOfParagraph); in outdentParagraph()
137 VisiblePosition positionInEnclosingBlock = VisiblePosition(firstPositionInNode(enclosingNode)); in outdentParagraph()
140VisiblePosition startOfEnclosingBlock = (enclosingNode->renderer() && enclosingNode->renderer()->i… in outdentParagraph()
141VisiblePosition lastPositionInEnclosingBlock = VisiblePosition(lastPositionInNode(enclosingNode)); in outdentParagraph()
142 VisiblePosition endOfEnclosingBlock = endOfBlock(lastPositionInEnclosingBlock); in outdentParagraph()
160 visibleStartOfParagraph = VisiblePosition(visibleStartOfParagraph.deepEquivalent()); in outdentParagraph()
161 visibleEndOfParagraph = VisiblePosition(visibleEndOfParagraph.deepEquivalent()); in outdentParagraph()
183 void IndentOutdentCommand::outdentRegion(const VisiblePosition& startOfSelection, const VisiblePosi… in outdentRegion()
185 VisiblePosition endOfLastParagraph = endOfParagraph(endOfSelection); in outdentRegion()
[all …]
DVisibleSelection.cpp66 VisibleSelection::VisibleSelection(const VisiblePosition& pos) in VisibleSelection()
74 VisibleSelection::VisibleSelection(const VisiblePosition& base, const VisiblePosition& extent) in VisibleSelection()
102 void VisibleSelection::setBase(const VisiblePosition& visiblePosition) in setBase()
114 void VisibleSelection::setExtent(const VisiblePosition& visiblePosition) in setExtent()
247 m_base = VisiblePosition(m_base, m_affinity).deepEquivalent(); in setBaseAndExtentToDeepEquivalents()
252 m_extent = VisiblePosition(m_extent, m_affinity).deepEquivalent(); in setBaseAndExtentToDeepEquivalents()
287 VisiblePosition start = VisiblePosition(m_start, m_affinity); in setStartAndEndFromBaseAndExtentRespectingGranularity()
288 VisiblePosition originalEnd(m_end, m_affinity); in setStartAndEndFromBaseAndExtentRespectingGranularity()
297 VisiblePosition wordEnd(endOfWord(originalEnd, side)); in setStartAndEndFromBaseAndExtentRespectingGranularity()
298 VisiblePosition end(wordEnd); in setStartAndEndFromBaseAndExtentRespectingGranularity()
[all …]
Dhtmlediting.h45 class VisiblePosition; variable
64 Node* enclosingEmptyListItem(const VisiblePosition&);
70 Node* isLastPositionBeforeTable(const VisiblePosition&);
71 Node* isFirstPositionAfterTable(const VisiblePosition&);
157 VisiblePosition firstEditablePositionAfterPositionInRoot(const Position&, Node*);
158 VisiblePosition lastEditablePositionBeforePositionInRoot(const Position&, Node*);
159 VisiblePosition visiblePositionBeforeNode(Node*);
160 VisiblePosition visiblePositionAfterNode(Node*);
162 bool lineBreakExistsAtVisiblePosition(const VisiblePosition&);
164 int comparePositions(const VisiblePosition&, const VisiblePosition&);
[all …]
DInsertListCommand.cpp85 VisiblePosition start = selection.visibleStart(); in selectionHasListOfType()
90 VisiblePosition end = selection.visibleEnd(); in selectionHasListOfType()
114 VisiblePosition visibleEnd = endingSelection().visibleEnd(); in doApply()
115 VisiblePosition visibleStart = endingSelection().visibleStart(); in doApply()
131 VisiblePosition startOfSelection = selection.visibleStart(); in doApply()
132 VisiblePosition endOfSelection = selection.visibleEnd(); in doApply()
133VisiblePosition startOfLastParagraph = startOfParagraph(endOfSelection, CanSkipOverEditingBoundary… in doApply()
139 VisiblePosition startOfCurrentParagraph = startOfSelection; in doApply()
220 …Node* firstChildInList = enclosingListChild(VisiblePosition(firstPositionInNode(listNode.get())).d… in doApplyForSingleParagraph()
241 setEndingSelection(VisiblePosition(firstPositionInNode(newList.get()))); in doApplyForSingleParagraph()
[all …]
DVisibleSelection.h50 VisibleSelection(const VisiblePosition&);
51 VisibleSelection(const VisiblePosition&, const VisiblePosition&);
61 void setBase(const VisiblePosition&);
63 void setExtent(const VisiblePosition&);
70VisiblePosition visibleStart() const { return VisiblePosition(m_start, isRange() ? DOWNSTREAM : af… in visibleStart()
71VisiblePosition visibleEnd() const { return VisiblePosition(m_end, isRange() ? UPSTREAM : affinity… in visibleEnd()
DIndentOutdentCommand.h49 void indentRegion(const VisiblePosition&, const VisiblePosition&);
50 void outdentRegion(const VisiblePosition&, const VisiblePosition&);
55 …void formatSelection(const VisiblePosition& startOfSelection, const VisiblePosition& endOfSelectio…
DCompositeEditCommand.h108 …void moveParagraph(const VisiblePosition&, const VisiblePosition&, const VisiblePosition&, bool pr…
109 …void moveParagraphs(const VisiblePosition&, const VisiblePosition&, const VisiblePosition&, bool p…
110 …void moveParagraphWithClones(const VisiblePosition& startOfParagraphToMove, const VisiblePosition&…
112 void cleanupAfterDeletion(VisiblePosition destination = VisiblePosition());
DSelectionController.cpp92 void SelectionController::moveTo(const VisiblePosition &pos, bool userTriggered, CursorAlignOnScrol… in moveTo()
100 void SelectionController::moveTo(const VisiblePosition &base, const VisiblePosition &extent, bool u… in moveTo()
394 VisiblePosition SelectionController::positionForPlatform(bool isGetStart) const in positionForPlatform()
407 VisiblePosition SelectionController::startForPlatform() const in startForPlatform()
412 VisiblePosition SelectionController::endForPlatform() const in endForPlatform()
417 VisiblePosition SelectionController::modifyExtendingRight(TextGranularity granularity) in modifyExtendingRight()
419 VisiblePosition pos(m_selection.extent(), m_selection.affinity()); in modifyExtendingRight()
460 VisiblePosition SelectionController::modifyExtendingForward(TextGranularity granularity) in modifyExtendingForward()
462 VisiblePosition pos(m_selection.extent(), m_selection.affinity()); in modifyExtendingForward()
502 VisiblePosition SelectionController::modifyMovingRight(TextGranularity granularity) in modifyMovingRight()
[all …]
DApplyBlockElementCommand.h43 …virtual void formatSelection(const VisiblePosition& startOfSelection, const VisiblePosition& endOf…
50 void rangeForParagraphSplittingTextNodesIfNeeded(const VisiblePosition&, Position&, Position&);
51VisiblePosition endOfNextParagrahSplittingTextNodesIfNeeded(VisiblePosition&, Position&, Position&…
DApplyBlockElementCommand.cpp64 VisiblePosition visibleEnd = endingSelection().visibleEnd(); in doApply()
65 VisiblePosition visibleStart = endingSelection().visibleStart(); in doApply()
78 VisiblePosition startOfSelection = selection.visibleStart(); in doApply()
79 VisiblePosition endOfSelection = selection.visibleEnd(); in doApply()
95 …ApplyBlockElementCommand::formatSelection(const VisiblePosition& startOfSelection, const VisiblePo… in formatSelection()
110 VisiblePosition endOfCurrentParagraph = endOfParagraph(startOfSelection); in formatSelection()
111 VisiblePosition endAfterSelection = endOfParagraph(endOfParagraph(endOfSelection).next()); in formatSelection()
125VisiblePosition endOfNextParagraph = endOfNextParagrahSplittingTextNodesIfNeeded(endOfCurrentParag… in formatSelection()
177 void ApplyBlockElementCommand::rangeForParagraphSplittingTextNodesIfNeeded(const VisiblePosition& e… in rangeForParagraphSplittingTextNodesIfNeeded()
240 VisiblePosition ApplyBlockElementCommand::endOfNextParagrahSplittingTextNodesIfNeeded(VisiblePositi… in endOfNextParagrahSplittingTextNodesIfNeeded()
[all …]
Dhtmlediting.cpp130 int comparePositions(const VisiblePosition& a, const VisiblePosition& b) in comparePositions()
277 VisiblePosition firstEditablePositionAfterPositionInRoot(const Position& position, Node* highestRoo… in firstEditablePositionAfterPositionInRoot()
293 return VisiblePosition(); in firstEditablePositionAfterPositionInRoot()
295 return VisiblePosition(p); in firstEditablePositionAfterPositionInRoot()
298 VisiblePosition lastEditablePositionBeforePositionInRoot(const Position& position, Node* highestRoo… in lastEditablePositionBeforePositionInRoot()
315 return VisiblePosition(); in lastEditablePositionBeforePositionInRoot()
317 return VisiblePosition(p); in lastEditablePositionBeforePositionInRoot()
438 VisiblePosition vPos = VisiblePosition(pos, DOWNSTREAM); in firstInSpecialElement()
439VisiblePosition firstInElement = VisiblePosition(firstPositionInOrBeforeNode(n), DOWNSTREAM); in firstInSpecialElement()
454 VisiblePosition vPos = VisiblePosition(pos, DOWNSTREAM); in lastInSpecialElement()
[all …]
DCompositeEditCommand.cpp467VisiblePosition visibleUpstreamPos(Position(textNode, upstream, Position::PositionIsOffsetInAnchor… in rebalanceWhitespaceOnTextSubstring()
468VisiblePosition visibleDownstreamPos(Position(textNode, downstream, Position::PositionIsOffsetInAn… in rebalanceWhitespaceOnTextSubstring()
499 VisiblePosition visiblePos(position); in prepareWhitespaceAtPositionForSplit()
500 VisiblePosition previousVisiblePos(visiblePos.previous()); in prepareWhitespaceAtPositionForSplit()
623 Position end = VisiblePosition(pos, VP_DEFAULT_AFFINITY).next().deepEquivalent().downstream(); in deleteInsignificantTextDownstream()
707 VisiblePosition visiblePos(pos, VP_DEFAULT_AFFINITY); in moveParagraphContentsToNewBlockIfNecessary()
708 VisiblePosition visibleParagraphStart(startOfParagraph(visiblePos)); in moveParagraphContentsToNewBlockIfNecessary()
709 VisiblePosition visibleParagraphEnd = endOfParagraph(visiblePos); in moveParagraphContentsToNewBlockIfNecessary()
710 VisiblePosition next = visibleParagraphEnd.next(); in moveParagraphContentsToNewBlockIfNecessary()
711 VisiblePosition visibleEnd = next.isNotNull() ? next : visibleParagraphEnd; in moveParagraphContentsToNewBlockIfNecessary()
[all …]
DReplaceSelectionCommand.h68 bool shouldRemoveEndBR(Node*, const VisiblePosition&);
72 bool shouldMerge(const VisiblePosition&, const VisiblePosition&);
86 VisiblePosition positionAtStartOfInsertedContent();
87 VisiblePosition positionAtEndOfInsertedContent();
DReplaceSelectionCommand.cpp122 while (stopNode != pos.deprecatedNode() && VisiblePosition(pos) == VisiblePosition(pos.next())) in positionAvoidingPrecedingNodes()
357 static bool hasMatchingQuoteLevel(VisiblePosition endOfExistingContent, VisiblePosition endOfInsert… in hasMatchingQuoteLevel()
370 VisiblePosition startOfInsertedContent(positionAtStartOfInsertedContent()); in shouldMergeStart()
371 VisiblePosition prev = startOfInsertedContent.previous(CannotCrossEditingBoundary); in shouldMergeStart()
392 VisiblePosition endOfInsertedContent(positionAtEndOfInsertedContent()); in shouldMergeEnd()
393 VisiblePosition next = endOfInsertedContent.next(CannotCrossEditingBoundary); in shouldMergeEnd()
452 bool ReplaceSelectionCommand::shouldMerge(const VisiblePosition& source, const VisiblePosition& des… in shouldMerge()
536 VisiblePosition ReplaceSelectionCommand::positionAtEndOfInsertedContent() in positionAtEndOfInsertedContent()
546 VisiblePosition ReplaceSelectionCommand::positionAtStartOfInsertedContent() in positionAtStartOfInsertedContent()
549 return VisiblePosition(nextCandidate(positionInParentBeforeNode(m_firstNodeInserted.get()))); in positionAtStartOfInsertedContent()
[all …]
DDeleteSelectionCommand.cpp55 return VisiblePosition(firstPositionInNode(cell)) == VisiblePosition(lastPositionInNode(cell)); in isTableCellEmpty()
134 …if (VisiblePosition(start) != m_selectionToDelete.visibleStart() || VisiblePosition(end) != m_sele… in initializeStartEnd()
162 VisiblePosition newBase; in setStartingSelectionOnSmartDelete()
163 VisiblePosition newExtent; in setStartingSelectionOnSmartDelete()
202 VisiblePosition visibleEnd(m_downstreamEnd); in initializePositionData()
215 && isStartOfParagraph(visibleEnd) && isStartOfParagraph(VisiblePosition(start)) in initializePositionData()
228 … Position pos = VisiblePosition(m_upstreamStart, m_selectionToDelete.affinity()).deepEquivalent(); in initializePositionData()
236VisiblePosition visiblePos = VisiblePosition(m_upstreamStart, VP_DEFAULT_AFFINITY).previous(); in initializePositionData()
252 pos = VisiblePosition(m_downstreamEnd, VP_DEFAULT_AFFINITY).next().deepEquivalent(); in initializePositionData()
395 …if (node == m_startBlock && !isEndOfBlock(VisiblePosition(firstPositionInNode(m_startBlock.get()))… in removeNode()
[all …]
DInsertParagraphSeparatorCommand.cpp78 VisiblePosition visiblePos(pos, VP_DEFAULT_AFFINITY); in calculateStyleBeforeInsertion()
166 Position canonicalPos = VisiblePosition(insertionPosition).deepEquivalent(); in doApply()
187 VisiblePosition visiblePos(insertionPosition, affinity); in doApply()
305 insertionPosition = positionOutsideTabSpan(VisiblePosition(insertionPosition).deepEquivalent()); in doApply()
325 visiblePos = VisiblePosition(insertionPosition); in doApply()
345 …if (VisiblePosition(insertionPosition) != VisiblePosition(positionBeforeNode(blockToInsert.get()))… in doApply()
353 … if (comparePositions(VisiblePosition(insertionPosition), positionBeforeNode(n)) <= 0) in doApply()
/external/webkit/Source/WebCore/accessibility/
DAccessibilityObject.cpp172 …t::visiblePositionRangeForUnorderedPositions(const VisiblePosition& visiblePos1, const VisiblePosi… in visiblePositionRangeForUnorderedPositions()
177 VisiblePosition startPos; in visiblePositionRangeForUnorderedPositions()
178 VisiblePosition endPos; in visiblePositionRangeForUnorderedPositions()
200 VisiblePositionRange AccessibilityObject::positionOfLeftWord(const VisiblePosition& visiblePos) con… in positionOfLeftWord()
202 VisiblePosition startPosition = startOfWord(visiblePos, LeftWordIfOnBoundary); in positionOfLeftWord()
203 VisiblePosition endPosition = endOfWord(startPosition); in positionOfLeftWord()
207 VisiblePositionRange AccessibilityObject::positionOfRightWord(const VisiblePosition& visiblePos) co… in positionOfRightWord()
209 VisiblePosition startPosition = startOfWord(visiblePos, RightWordIfOnBoundary); in positionOfRightWord()
210 VisiblePosition endPosition = endOfWord(startPosition); in positionOfRightWord()
214 static VisiblePosition updateAXLineStartForVisiblePosition(const VisiblePosition& visiblePosition) in updateAXLineStartForVisiblePosition()
[all …]
DAccessibilityObject.h230 VisiblePosition start;
231 VisiblePosition end;
235 VisiblePositionRange(const VisiblePosition& s, const VisiblePosition& e) in VisiblePositionRange()
495 …ionRange visiblePositionRangeForUnorderedPositions(const VisiblePosition&, const VisiblePosition&)…
496 VisiblePositionRange positionOfLeftWord(const VisiblePosition&) const;
497 VisiblePositionRange positionOfRightWord(const VisiblePosition&) const;
498 VisiblePositionRange leftLineVisiblePositionRange(const VisiblePosition&) const;
499 VisiblePositionRange rightLineVisiblePositionRange(const VisiblePosition&) const;
500 VisiblePositionRange sentenceForPosition(const VisiblePosition&) const;
501 VisiblePositionRange paragraphForPosition(const VisiblePosition&) const;
[all …]
/external/webkit/Source/WebCore/page/
DDOMSelection.cpp215 m_frame->selection()->moveTo(VisiblePosition(Position(node, offset), DOWNSTREAM)); in collapse()
230 m_frame->selection()->moveTo(VisiblePosition(selection.end(), DOWNSTREAM)); in collapseToEnd()
245 m_frame->selection()->moveTo(VisiblePosition(selection.start(), DOWNSTREAM)); in collapseToStart()
269 VisiblePosition visibleBase = VisiblePosition(Position(baseNode, baseOffset), DOWNSTREAM); in setBaseAndExtent()
270 VisiblePosition visibleExtent = VisiblePosition(Position(extentNode, extentOffset), DOWNSTREAM); in setBaseAndExtent()
288 m_frame->selection()->moveTo(VisiblePosition(Position(node, offset), DOWNSTREAM)); in setPosition()
362 m_frame->selection()->setExtent(VisiblePosition(Position(node, offset), DOWNSTREAM)); in extend()
/external/webkit/Source/WebCore/dom/
DDOMTextContentWalker.h35 class VisiblePosition; variable
42 DOMTextContentWalker(const VisiblePosition& position, unsigned maxLength);

12345