HomeSort by relevance Sort by last modified time
    Searched full:visibleposition (Results 1 - 25 of 79) sorted by null

1 2 3 4

  /external/chromium_org/third_party/WebKit/Source/core/editing/
VisibleUnits.h 35 class VisiblePosition;
40 VisiblePosition startOfWord(const VisiblePosition &, EWordSide = RightWordIfOnBoundary);
41 VisiblePosition endOfWord(const VisiblePosition &, EWordSide = RightWordIfOnBoundary);
42 VisiblePosition previousWordPosition(const VisiblePosition &);
43 VisiblePosition nextWordPosition(const VisiblePosition &);
44 VisiblePosition rightWordPosition(const VisiblePosition&, bool skipsSpaceWhenMovingRight)
    [all...]
VisiblePosition.h 35 // VisiblePosition default affinity is downstream because
51 class VisiblePosition {
55 VisiblePosition() : m_affinity(VP_DEFAULT_AFFINITY) { }
56 VisiblePosition(const Position&, EAffinity = VP_DEFAULT_AFFINITY);
57 explicit VisiblePosition(const PositionWithAffinity&);
72 VisiblePosition next(EditingBoundaryCrossingRule = CanCrossEditingBoundary) const;
73 VisiblePosition previous(EditingBoundaryCrossingRule = CanCrossEditingBoundary) const;
74 VisiblePosition honorEditingBoundaryAtOrBefore(const VisiblePosition&) const;
75 VisiblePosition honorEditingBoundaryAtOrAfter(const VisiblePosition&) const
    [all...]
VisibleUnits.cpp 40 #include "core/editing/VisiblePosition.h"
80 static Position previousRootInlineBoxCandidatePosition(Node* node, const VisiblePosition& visiblePosition, EditableType editableType)
82 Node* highestRoot = highestEditableRoot(visiblePosition.deepEquivalent(), editableType);
85 while (previousNode && (!previousNode->renderer() || inSameLine(firstPositionInOrBeforeNode(previousNode), visiblePosition)))
103 static Position nextRootInlineBoxCandidatePosition(Node* node, const VisiblePosition& visiblePosition, EditableType editableType)
105 Node* highestRoot = highestEditableRoot(visiblePosition.deepEquivalent(), editableType);
107 while (nextNode && (!nextNode->renderer() || inSameLine(firstPositionInOrBeforeNode(nextNode), visiblePosition)))
205 static const InlineTextBox* logicallyPreviousBox(const VisiblePosition& visiblePosition, const InlineTextBox* textBox
    [all...]
VisiblePosition.cpp 28 #include "core/editing/VisiblePosition.h"
52 VisiblePosition::VisiblePosition(const Position &pos, EAffinity affinity)
57 VisiblePosition::VisiblePosition(const PositionWithAffinity& positionWithAffinity)
62 void VisiblePosition::init(const Position& position, EAffinity affinity)
69 if (m_affinity == UPSTREAM && (isNull() || inSameLine(VisiblePosition(position, DOWNSTREAM), *this)))
73 VisiblePosition VisiblePosition::next(EditingBoundaryCrossingRule rule) const
75 VisiblePosition next(nextVisuallyDistinctCandidate(m_deepPosition), m_affinity)
    [all...]
FrameSelection.h 50 class VisiblePosition;
91 void moveTo(const VisiblePosition&, EUserTriggered = NotUserTriggered, CursorAlignOnScroll = AlignCursorOnScrollIfNeeded);
92 void moveTo(const VisiblePosition&, const VisiblePosition&, EUserTriggered = NotUserTriggered);
119 void setStart(const VisiblePosition &, EUserTriggered = NotUserTriggered);
120 void setEnd(const VisiblePosition &, EUserTriggered = NotUserTriggered);
122 void setBase(const VisiblePosition&, EUserTriggered = NotUserTriggered);
124 void setExtent(const VisiblePosition&, EUserTriggered = NotUserTriggered);
216 VisiblePosition positionForPlatform(bool isGetStart) const;
217 VisiblePosition startForPlatform() const
    [all...]
VisibleSelection.h 31 #include "core/editing/VisiblePosition.h"
50 VisibleSelection(const VisiblePosition&, bool isDirectional = false);
51 VisibleSelection(const VisiblePosition&, const VisiblePosition&, bool isDirectional = false);
61 void setBase(const VisiblePosition&);
63 void setExtent(const VisiblePosition&);
70 VisiblePosition visibleStart() const { return VisiblePosition(m_start, isRange() ? DOWNSTREAM : affinity()); }
71 VisiblePosition visibleEnd() const { return VisiblePosition(m_end, isRange() ? UPSTREAM : affinity());
    [all...]
SurroundingText.cpp 37 #include "core/editing/VisiblePosition.h"
42 SurroundingText::SurroundingText(const VisiblePosition& visiblePosition, unsigned maxLength)
45 if (visiblePosition.isNull())
49 CharacterIterator forwardIterator(makeRange(visiblePosition, endOfDocument(visiblePosition)).get(), TextIteratorStopsOnFormControls);
53 Position position = visiblePosition.deepEquivalent().parentAnchoredEquivalent();
62 BackwardsCharacterIterator backwardsIterator(makeRange(startOfDocument(visiblePosition), visiblePosition).get(), TextIteratorStopsOnFormControls);
IndentOutdentCommand.h 49 void indentRegion(const VisiblePosition&, const VisiblePosition&);
50 void outdentRegion(const VisiblePosition&, const VisiblePosition&);
55 void formatSelection(const VisiblePosition& startOfSelection, const VisiblePosition& endOfSelection);
ApplyBlockElementCommand.h 44 virtual void formatSelection(const VisiblePosition& startOfSelection, const VisiblePosition& endOfSelection);
51 void rangeForParagraphSplittingTextNodesIfNeeded(const VisiblePosition&, Position&, Position&);
52 VisiblePosition endOfNextParagrahSplittingTextNodesIfNeeded(VisiblePosition&, Position&, Position&);
htmlediting.cpp 43 #include "core/editing/VisiblePosition.h"
109 int comparePositions(const VisiblePosition& a, const VisiblePosition& b)
259 VisiblePosition firstEditablePositionAfterPositionInRoot(const Position& position, Node* highestRoot)
270 return VisiblePosition();
279 return VisiblePosition();
281 return VisiblePosition(p);
284 VisiblePosition lastEditablePositionBeforePositionInRoot(const Position& position, Node* highestRoot)
295 return VisiblePosition();
304 return VisiblePosition();
    [all...]
CompositeEditCommand.h 116 void replaceCollapsibleWhitespaceWithNonBreakingSpaceIfNeeded(const VisiblePosition&);
155 void moveParagraph(const VisiblePosition&, const VisiblePosition&, const VisiblePosition&, bool preserveSelection = false, bool preserveStyle = true, Node* constrainingAncestor = 0);
156 void moveParagraphs(const VisiblePosition&, const VisiblePosition&, const VisiblePosition&, bool preserveSelection = false, bool preserveStyle = true, Node* constrainingAncestor = 0);
157 void moveParagraphWithClones(const VisiblePosition& startOfParagraphToMove, const VisiblePosition& endOfParagraphToMove, Element* blockElement, Node* outerNode);
159 void cleanupAfterDeletion(VisiblePosition destination = VisiblePosition())
    [all...]
VisibleSelection.cpp 75 VisibleSelection::VisibleSelection(const VisiblePosition& pos, bool isDirectional)
84 VisibleSelection::VisibleSelection(const VisiblePosition& base, const VisiblePosition& extent, bool isDirectional)
114 void VisibleSelection::setBase(const VisiblePosition& visiblePosition)
116 m_base = visiblePosition.deepEquivalent();
126 void VisibleSelection::setExtent(const VisiblePosition& visiblePosition)
128 m_extent = visiblePosition.deepEquivalent();
259 m_base = VisiblePosition(m_base, m_affinity).deepEquivalent()
    [all...]
IndentOutdentCommand.cpp 112 VisiblePosition startOfContents = start;
129 VisiblePosition visibleStartOfParagraph = startOfParagraph(endingSelection().visibleStart());
130 VisiblePosition visibleEndOfParagraph = endOfParagraph(visibleStartOfParagraph);
147 VisiblePosition positionInEnclosingBlock = VisiblePosition(firstPositionInNode(enclosingNode));
150 VisiblePosition startOfEnclosingBlock = (enclosingNode->renderer() && enclosingNode->renderer()->isInline()) ? positionInEnclosingBlock : startOfBlock(positionInEnclosingBlock);
151 VisiblePosition lastPositionInEnclosingBlock = VisiblePosition(lastPositionInNode(enclosingNode));
152 VisiblePosition endOfEnclosingBlock = endOfBlock(lastPositionInEnclosingBlock);
170 visibleStartOfParagraph = VisiblePosition(visibleStartOfParagraph.deepEquivalent())
    [all...]
ApplyBlockElementCommand.cpp 34 #include "core/editing/VisiblePosition.h"
63 VisiblePosition visibleEnd = endingSelection().visibleEnd();
64 VisiblePosition visibleStart = endingSelection().visibleStart();
80 VisiblePosition startOfSelection = selection.visibleStart();
81 VisiblePosition endOfSelection = selection.visibleEnd();
97 VisiblePosition start(visiblePositionForIndex(startIndex, startScope.get()));
98 VisiblePosition end(visiblePositionForIndex(endIndex, endScope.get()));
104 void ApplyBlockElementCommand::formatSelection(const VisiblePosition& startOfSelection, const VisiblePosition& endOfSelection)
119 VisiblePosition endOfCurrentParagraph = endOfParagraph(startOfSelection)
    [all...]
Caret.h 29 #include "core/editing/VisiblePosition.h"
50 bool updateCaretRect(Document*, const VisiblePosition& caretPosition);
87 const VisiblePosition& caretPosition() { return m_position; }
88 void setCaretPosition(const VisiblePosition&);
89 void clear() { setCaretPosition(VisiblePosition()); }
96 VisiblePosition m_position;
FormatBlockCommand.h 39 class VisiblePosition;
56 void formatSelection(const VisiblePosition& startOfSelection, const VisiblePosition& endOfSelection);
FrameSelection.cpp 121 void FrameSelection::moveTo(const VisiblePosition &pos, EUserTriggered userTriggered, CursorAlignOnScroll align)
127 void FrameSelection::moveTo(const VisiblePosition &base, const VisiblePosition &extent, EUserTriggered userTriggered)
154 static void adjustEndpointsAtBidiBoundary(VisiblePosition& visibleBase, VisiblePosition& visibleExtent)
197 VisiblePosition base = m_originalBase.isNotNull() ? m_originalBase : newSelection.visibleBase();
198 VisiblePosition newBase = base;
199 VisiblePosition extent = newSelection.visibleExtent();
200 VisiblePosition newExtent = extent;
489 VisiblePosition startPosition = m_selection.visibleStart()
    [all...]
InsertListCommand.cpp 86 VisiblePosition start = selection.visibleStart();
91 VisiblePosition end = startOfParagraph(selection.visibleEnd());
115 VisiblePosition visibleEnd = endingSelection().visibleEnd();
116 VisiblePosition visibleStart = endingSelection().visibleStart();
132 VisiblePosition startOfSelection = selection.visibleStart();
133 VisiblePosition endOfSelection = selection.visibleEnd();
134 VisiblePosition startOfLastParagraph = startOfParagraph(endOfSelection, CanSkipOverEditingBoundary);
142 VisiblePosition startOfCurrentParagraph = startOfSelection;
225 Node* firstChildInList = enclosingListChild(VisiblePosition(firstPositionInNode(listNode.get())).deepEquivalent().deprecatedNode(), listNode.get());
245 setEndingSelection(VisiblePosition(firstPositionInNode(newList.get())))
    [all...]
ReplaceSelectionCommand.h 80 bool shouldRemoveEndBR(Node*, const VisiblePosition&);
84 bool shouldMerge(const VisiblePosition&, const VisiblePosition&);
96 VisiblePosition positionAtStartOfInsertedContent() const;
97 VisiblePosition positionAtEndOfInsertedContent() const;
htmlediting.h 44 class VisiblePosition;
65 Node* enclosingEmptyListItem(const VisiblePosition&);
71 Node* isLastPositionBeforeTable(const VisiblePosition&);
72 Node* isFirstPositionAfterTable(const VisiblePosition&);
168 // VisiblePosition
171 // Functions returning VisiblePosition
173 VisiblePosition firstEditablePositionAfterPositionInRoot(const Position&, Node*);
174 VisiblePosition lastEditablePositionBeforePositionInRoot(const Position&, Node*);
175 VisiblePosition visiblePositionBeforeNode(Node*);
176 VisiblePosition visiblePositionAfterNode(Node*)
    [all...]
InsertListCommand.h 58 void unlistifyParagraph(const VisiblePosition& originalStart, HTMLElement* listNode, Node* listChildNode);
59 PassRefPtr<HTMLElement> listifyParagraph(const VisiblePosition& originalStart, const QualifiedName& listTag);
SurroundingText.h 39 class VisiblePosition;
44 SurroundingText(const VisiblePosition&, unsigned maxLength);
CompositeEditCommand.cpp 684 VisiblePosition visibleUpstreamPos(Position(textNode, upstream));
685 VisiblePosition visibleDownstreamPos(Position(textNode, downstream));
716 VisiblePosition visiblePos(position);
717 VisiblePosition previousVisiblePos(visiblePos.previous());
722 void CompositeEditCommand::replaceCollapsibleWhitespaceWithNonBreakingSpaceIfNeeded(const VisiblePosition& visiblePosition)
724 if (!isCollapsibleWhitespace(visiblePosition.characterAfter()))
726 Position pos = visiblePosition.deepEquivalent().downstream();
850 Position end = VisiblePosition(pos, VP_DEFAULT_AFFINITY).next().deepEquivalent().downstream();
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/html/
HTMLTextFormControlElement.h 35 class VisiblePosition;
59 VisiblePosition visiblePositionForIndex(int) const;
60 int indexForVisiblePosition(const VisiblePosition&) const;
  /external/chromium_org/third_party/WebKit/Source/web/
WebSurroundingText.cpp 34 #include "core/editing/VisiblePosition.h"
48 m_private.reset(new SurroundingText(VisiblePosition(node->renderer()->positionForPoint(static_cast<IntPoint>(nodePoint))), maxLength));

Completed in 240 milliseconds

1 2 3 4