Home
last modified time | relevance | path

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

/external/webkit/Source/WebCore/editing/
DApplyBlockElementCommand.cpp151 if (position.anchorType() != Position::PositionIsOffsetInAnchor) in isNewLineAtPosition()
169 if (position.anchorType() != Position::PositionIsOffsetInAnchor in renderStyleOfEnclosingTextNode()
199 …d.deprecatedNode(), end.offsetInContainerNode() - startOffset, Position::PositionIsOffsetInAnchor); in rangeForParagraphSplittingTextNodesIfNeeded()
204 Position::PositionIsOffsetInAnchor); in rangeForParagraphSplittingTextNodesIfNeeded()
217 … end = Position(end.deprecatedNode(), endOffset + 1, Position::PositionIsOffsetInAnchor); in rangeForParagraphSplittingTextNodesIfNeeded()
233 Position::PositionIsOffsetInAnchor); in rangeForParagraphSplittingTextNodesIfNeeded()
250 … || !isNewLineAtPosition(Position(containerNode.get(), 0, Position::PositionIsOffsetInAnchor))) in endOfNextParagrahSplittingTextNodesIfNeeded()
258 …if (start.anchorType() == Position::PositionIsOffsetInAnchor && containerNode.get() == start.conta… in endOfNextParagrahSplittingTextNodesIfNeeded()
260 …ntainerNode->previousSibling(), start.offsetInContainerNode(), Position::PositionIsOffsetInAnchor); in endOfNextParagrahSplittingTextNodesIfNeeded()
262 …if (end.anchorType() == Position::PositionIsOffsetInAnchor && containerNode.get() == end.container… in endOfNextParagrahSplittingTextNodesIfNeeded()
[all …]
DMoveSelectionCommand.cpp50 …(pos.anchorType() == Position::PositionIsOffsetInAnchor && selectionEnd.anchorType() == Position:: in doApply()
55 …if (selectionStart.anchorType() == Position::PositionIsOffsetInAnchor && selectionStart.containerN… in doApply()
DInsertTextCommand.cpp82 ASSERT(start.anchorType() == Position::PositionIsOffsetInAnchor); in performTrivialReplace()
83 ASSERT(end.anchorType() == Position::PositionIsOffsetInAnchor); in performTrivialReplace()
163 ASSERT(startPosition.anchorType() == Position::PositionIsOffsetInAnchor); in input()
172 … endPosition = Position(textNode, offset + text.length(), Position::PositionIsOffsetInAnchor); in input()
215 return Position(node, offset + 1, Position::PositionIsOffsetInAnchor); in insertTab()
DApplyStyleCommand.cpp1121 ASSERT(start.anchorType() == Position::PositionIsOffsetInAnchor); in splitTextAtStart()
1124 …if (end.anchorType() == Position::PositionIsOffsetInAnchor && start.containerNode() == end.contain… in splitTextAtStart()
1125 …, end.offsetInContainerNode() - start.offsetInContainerNode(), Position::PositionIsOffsetInAnchor); in splitTextAtStart()
1136 ASSERT(end.anchorType() == Position::PositionIsOffsetInAnchor); in splitTextAtEnd()
1138 …bool shouldUpdateStart = start.anchorType() == Position::PositionIsOffsetInAnchor && start.contain… in splitTextAtEnd()
1144 …rt ? Position(prevNode, start.offsetInContainerNode(), Position::PositionIsOffsetInAnchor) : start; in splitTextAtEnd()
1150 ASSERT(start.anchorType() == Position::PositionIsOffsetInAnchor); in splitTextElementAtStart()
1153 …if (end.anchorType() == Position::PositionIsOffsetInAnchor && start.containerNode() == end.contain… in splitTextElementAtStart()
1154 …, end.offsetInContainerNode() - start.offsetInContainerNode(), Position::PositionIsOffsetInAnchor); in splitTextElementAtStart()
1160 …)->parentNode(), start.deprecatedNode()->nodeIndex(), Position::PositionIsOffsetInAnchor), newEnd); in splitTextElementAtStart()
[all …]
Dvisible_units.cpp382 …ode, static_cast<InlineTextBox *>(startBox)->start(), Position::PositionIsOffsetInAnchor), DOWNSTR… in startPositionForLine()
437 pos = Position(endNode, endOffset, Position::PositionIsOffsetInAnchor); in endPositionForLine()
786 type = Position::PositionIsOffsetInAnchor; in startOfParagraph()
795 … return VisiblePosition(Position(n, i + 1, Position::PositionIsOffsetInAnchor), DOWNSTREAM); in startOfParagraph()
808 if (type == Position::PositionIsOffsetInAnchor) in startOfParagraph()
861 type = Position::PositionIsOffsetInAnchor; in endOfParagraph()
867 … return VisiblePosition(Position(n, i, Position::PositionIsOffsetInAnchor), DOWNSTREAM); in endOfParagraph()
880 if (type == Position::PositionIsOffsetInAnchor) in endOfParagraph()
1067 …(logicalStartNode, logicalStartBox->caretMinOffset(), Position::PositionIsOffsetInAnchor), DOWNSTR… in logicalStartPositionForLine()
1110 pos = Position(logicalEndNode, endOffset, Position::PositionIsOffsetInAnchor); in logicalEndPositionForLine()
[all …]
DVisiblePosition.cpp546 …e() == Position::PositionIsBeforeAnchor || pos.anchorType() == Position::PositionIsOffsetInAnchor); in characterAfter()
548 …unsigned offset = pos.anchorType() == Position::PositionIsOffsetInAnchor ? pos.offsetInContainerNo… in characterAfter()
641 …startContainer(exception), r->startOffset(exception), Position::PositionIsOffsetInAnchor), affinit… in startVisiblePosition()
647 …(r->endContainer(exception), r->endOffset(exception), Position::PositionIsOffsetInAnchor), affinit… in endVisiblePosition()
DSelectionController.cpp284 …() || position.anchorNode() != node || position.anchorType() != Position::PositionIsOffsetInAnchor) in shouldRemovePositionAfterAdoptingTextReplacement()
1387 …Position(Position(ownerElementParent, ownerElementNodeIndex, Position::PositionIsOffsetInAnchor))); in selectFrameElementInParentIfFullySelected()
1388 …sition(ownerElementParent, ownerElementNodeIndex + 1, Position::PositionIsOffsetInAnchor), VP_UPST… in selectFrameElementInParentIfFullySelected()
1459 …on visibleStart(Position(startContainer, startOffset, Position::PositionIsOffsetInAnchor), collaps… in setSelectedRange()
1460 …VisiblePosition visibleEnd(Position(endContainer, endOffset, Position::PositionIsOffsetInAnchor), … in setSelectedRange()
1470 ASSERT(start().isNull() || start().anchorType() == Position::PositionIsOffsetInAnchor in isInPasswordField()
DInsertParagraphSeparatorCommand.cpp369 if (insertionPosition.anchorType() == Position::PositionIsOffsetInAnchor) in doApply()
DDeleteSelectionCommand.cpp321 case Position::PositionIsOffsetInAnchor: in updatePositionForNodeRemoval()
410 …if (position.anchorType() != Position::PositionIsOffsetInAnchor || position.containerNode() != nod… in updatePositionForTextRemoval()
DReplaceSelectionCommand.cpp1324 ASSERT(start.anchorType() == Position::PositionIsOffsetInAnchor); in performTrivialReplace()
1325 ASSERT(end.anchorType() == Position::PositionIsOffsetInAnchor); in performTrivialReplace()
1332 …ontainerNode(), start.offsetInContainerNode() + text.length(), Position::PositionIsOffsetInAnchor); in performTrivialReplace()
DCompositeEditCommand.cpp416 if (position.anchorType() != Position::PositionIsOffsetInAnchor || !node || !node->isTextNode()) in canRebalance()
467 …siblePosition visibleUpstreamPos(Position(textNode, upstream, Position::PositionIsOffsetInAnchor)); in rebalanceWhitespaceOnTextSubstring()
468 …ePosition visibleDownstreamPos(Position(textNode, downstream, Position::PositionIsOffsetInAnchor)); in rebalanceWhitespaceOnTextSubstring()
DSpellingCorrectionController.cpp383 if (position.anchorType() != Position::PositionIsOffsetInAnchor) in respondToChangedSelection()
DTypingCommand.cpp621 …tedNode(), extent.deprecatedEditingOffset() + extraCharacters, Position::PositionIsOffsetInAnchor); in forwardDeleteKeyPressed()
Dhtmlediting.cpp455 …nt = VisiblePosition(Position(n, n->childNodeCount(), Position::PositionIsOffsetInAnchor), DOWNSTR… in lastInSpecialElement()
DTextIterator.cpp910 …blePosition(Position(m_startContainer, m_startOffset, Position::PositionIsOffsetInAnchor), DOWNSTR… in shouldRepresentNodeOffsetZero()
DEditor.cpp267 …tart(Position(startContainer, range->startOffset(ec), Position::PositionIsOffsetInAnchor), DOWNSTR… in canDeleteRange()
/external/webkit/Source/WebCore/dom/
DPosition.h55 PositionIsOffsetInAnchor, enumerator
62 , m_anchorType(PositionIsOffsetInAnchor) in Position()
77 …void clear() { m_anchorNode.clear(); m_offset = 0; m_anchorType = PositionIsOffsetInAnchor; m_isLe… in clear()
88 ASSERT(anchorType() == PositionIsOffsetInAnchor); in offsetInContainerNode()
218 return Position(node->parentNode(), node->nodeIndex(), Position::PositionIsOffsetInAnchor); in positionInParentBeforeNode()
224 return Position(node->parentNode(), node->nodeIndex() + 1, Position::PositionIsOffsetInAnchor); in positionInParentAfterNode()
248 return Position(anchorNode, 0, Position::PositionIsOffsetInAnchor); in firstPositionInNode()
253 return Position(anchorNode, lastOffsetInNode(anchorNode), Position::PositionIsOffsetInAnchor); in lastPositionInNode()
DPosition.cpp88 ASSERT(anchorType != PositionIsOffsetInAnchor); in Position()
98 ASSERT(anchorType == PositionIsOffsetInAnchor); in Position()
104 ASSERT(anchorType() == PositionIsOffsetInAnchor || m_isLegacyEditingPosition); in moveToPosition()
112 ASSERT(anchorType() == PositionIsOffsetInAnchor || m_isLegacyEditingPosition); in moveToOffset()
124 case PositionIsOffsetInAnchor: in containerNode()
140 case PositionIsOffsetInAnchor: in computeOffsetInContainerNode()
176 return Position(containerNode(), computeOffsetInContainerNode(), PositionIsOffsetInAnchor); in parentAnchoredEquivalent()
185 case PositionIsOffsetInAnchor: in computeNodeBeforePosition()
202 case PositionIsOffsetInAnchor: in computeNodeAfterPosition()
220 return Position::PositionIsOffsetInAnchor; in anchorTypeForLegacyEditingPosition()
[all …]
DRange.cpp1577 …iblePosition = Position(m_start.container(), m_start.offset(), Position::PositionIsOffsetInAnchor); in editingStartPosition()
/external/webkit/Source/WebCore/rendering/
DRenderTextControl.cpp333 …return VisiblePosition(Position(m_innerText.get(), 0, Position::PositionIsOffsetInAnchor), DOWNSTR… in visiblePositionForIndex()
344 …return VisiblePosition(Position(endContainer, endOffset, Position::PositionIsOffsetInAnchor), UPST… in visiblePositionForIndex()
/external/webkit/Source/WebKit/mac/WebView/
DWebTextCompletionController.mm208 …[wholeWord startContainer]), [wholeWord startOffset], Position::PositionIsOffsetInAnchor) affinity…
/external/webkit/Source/WebCore/accessibility/
DAccessibilityRenderObject.cpp2054 …n()->setSelection(VisibleSelection(Position(node, range.start, Position::PositionIsOffsetInAnchor), in setSelectedTextRange()
2055 … Position(node, range.start + range.length, Position::PositionIsOffsetInAnchor), DOWNSTREAM)); in setSelectedTextRange()
2487 …range()->endContainer(ec), it.range()->endOffset(ec), Position::PositionIsOffsetInAnchor), UPSTREA… in visiblePositionForIndex()
/external/webkit/Source/WebKit/chromium/src/
DWebViewImpl.cpp1261 Position::PositionIsOffsetInAnchor); in setFocus()
/external/webkit/Source/WebCore/
DChangeLog-2011-02-165752 adding the PositionIsOffsetInAnchor symbol. If we must create VisiblePositions
DChangeLog56296 adding the PositionIsOffsetInAnchor symbol. If we must create VisiblePositions