Home
last modified time | relevance | path

Searched refs:offsetInContainerNode (Results 1 – 21 of 21) sorted by relevance

/external/webkit/Source/WebCore/editing/
DApplyBlockElementCommand.cpp155 int offset = position.offsetInContainerNode(); in isNewLineAtPosition()
189 …neAtPosition(start) && !isNewLineAtPosition(start.previous()) && start.offsetInContainerNode() > 0) in rangeForParagraphSplittingTextNodesIfNeeded()
193 if (!startStyle->collapseWhiteSpace() && start.offsetInContainerNode() > 0) { in rangeForParagraphSplittingTextNodesIfNeeded()
194 int startOffset = start.offsetInContainerNode(); in rangeForParagraphSplittingTextNodesIfNeeded()
198 ASSERT(end.offsetInContainerNode() >= startOffset); in rangeForParagraphSplittingTextNodesIfNeeded()
199 …end = Position(end.deprecatedNode(), end.offsetInContainerNode() - startOffset, Position::Position… in rangeForParagraphSplittingTextNodesIfNeeded()
202 ASSERT(m_endOfLastParagraph.offsetInContainerNode() >= startOffset); in rangeForParagraphSplittingTextNodesIfNeeded()
203 …ition(m_endOfLastParagraph.deprecatedNode(), m_endOfLastParagraph.offsetInContainerNode() - startO… in rangeForParagraphSplittingTextNodesIfNeeded()
214 && end.offsetInContainerNode() < end.containerNode()->maxCharacterOffset()) { in rangeForParagraphSplittingTextNodesIfNeeded()
215 int endOffset = end.offsetInContainerNode(); in rangeForParagraphSplittingTextNodesIfNeeded()
[all …]
DMoveSelectionCommand.cpp51 …ainerNode() == pos.containerNode() && selectionEnd.offsetInContainerNode() < pos.offsetInContainer… in doApply()
52 pos.moveToOffset(pos.offsetInContainerNode() - selectionEnd.offsetInContainerNode()); in doApply()
56 pos.moveToOffset(pos.offsetInContainerNode() + selectionStart.offsetInContainerNode()); in doApply()
DInsertTextCommand.cpp88 …xt*>(start.containerNode()), start.offsetInContainerNode(), end.offsetInContainerNode() - start.of… in performTrivialReplace()
90 Position endPosition(start.containerNode(), start.offsetInContainerNode() + text.length()); in performTrivialReplace()
169 const unsigned offset = startPosition.offsetInContainerNode(); in input()
183 …tespaceOnTextSubstring(textNode, startPosition.offsetInContainerNode(), endPosition.offsetInContai… in input()
DApplyStyleCommand.cpp1073 … ASSERT(s.anchorType() == Position::PositionIsBeforeAnchor || s.offsetInContainerNode() <= 0); in removeInlineStyle()
1081 || s.offsetInContainerNode() >= lastOffsetInNode(s.containerNode())); in removeInlineStyle()
1125 …newEnd = Position(end.containerNode(), end.offsetInContainerNode() - start.offsetInContainerNode()… in splitTextAtStart()
1130 splitTextNode(text, start.offsetInContainerNode()); in splitTextAtStart()
1140 splitTextNode(text, end.offsetInContainerNode()); in splitTextAtEnd()
1144 …Position newStart = shouldUpdateStart ? Position(prevNode, start.offsetInContainerNode(), Position… in splitTextAtEnd()
1154 …newEnd = Position(end.containerNode(), end.offsetInContainerNode() - start.offsetInContainerNode()… in splitTextElementAtStart()
1173 …Position newStart = shouldUpdateStart ? Position(prevNode, start.offsetInContainerNode(), Position… in splitTextElementAtEnd()
1190 int offsetInText = position.offsetInContainerNode(); in isValidCaretPositionInTextNode()
1298 …updateStartEnd(shouldUpdateStart ? Position(nextElement, start.offsetInContainerNode(), Position::… in mergeEndWithNextIfIdentical()
[all …]
DVisiblePosition.cpp548 … offset = pos.anchorType() == Position::PositionIsOffsetInAnchor ? pos.offsetInContainerNode() : 0; in characterAfter()
635 …erNode()->document(), s.containerNode(), s.offsetInContainerNode(), e.containerNode(), e.offsetInC… in makeRange()
656 r->setStart(p.containerNode(), p.offsetInContainerNode(), code); in setStart()
666 r->setEnd(p.containerNode(), p.offsetInContainerNode(), code); in setEnd()
DDeleteSelectionCommand.cpp322 …nerNode() == node->parentNode() && static_cast<unsigned>(position.offsetInContainerNode()) > node-… in updatePositionForNodeRemoval()
323 position.moveToOffset(position.offsetInContainerNode() - 1); in updatePositionForNodeRemoval()
413 if (position.offsetInContainerNode() > offset + count) in updatePositionForTextRemoval()
414 position.moveToOffset(position.offsetInContainerNode() - count); in updatePositionForTextRemoval()
415 else if (position.offsetInContainerNode() > offset) in updatePositionForTextRemoval()
DReplaceSelectionCommand.cpp956 …if (insertionPos.containerNode()->isTextNode() && insertionPos.offsetInContainerNode() && !inserti… in doApply()
957 …ingElement(static_cast<Text*>(insertionPos.containerNode()), insertionPos.offsetInContainerNode()); in doApply()
1265 int textNodeOffset = insertPos.offsetInContainerNode(); in insertAsListItems()
1330 …xt*>(start.containerNode()), start.offsetInContainerNode(), end.offsetInContainerNode() - start.of… in performTrivialReplace()
1332 …end = Position(start.containerNode(), start.offsetInContainerNode() + text.length(), Position::Pos… in performTrivialReplace()
DCompositeEditCommand.cpp355 if (pos.offsetInContainerNode() <= caretMinOffset(pos.containerNode())) in positionOutsideTabSpan()
358 if (pos.offsetInContainerNode() >= caretMaxOffset(pos.containerNode())) in positionOutsideTabSpan()
361 …itTextNodeContainingElement(static_cast<Text *>(pos.containerNode()), pos.offsetInContainerNode()); in positionOutsideTabSpan()
446 …TextSubstring(static_cast<Text*>(node), position.offsetInContainerNode(), position.offsetInContain… in rebalanceWhitespaceAt()
684 deleteTextFromNode(static_cast<Text*>(p.anchorNode()), p.offsetInContainerNode(), 1); in removePlaceholderAt()
DSpellingCorrectionController.cpp387 int endOffset = position.offsetInContainerNode(); in respondToChangedSelection()
DVisibleSelection.cpp212 searchRange->setStart(start.containerNode(), start.offsetInContainerNode(), ec); in makeSearchRange()
DSelectionController.cpp287 ASSERT(position.offsetInContainerNode() >= 0); in shouldRemovePositionAfterAdoptingTextReplacement()
288 unsigned positionOffset = static_cast<unsigned>(position.offsetInContainerNode()); in shouldRemovePositionAfterAdoptingTextReplacement()
Dhtmlediting.cpp1008 unsigned offset = position.offsetInContainerNode(); in lineBreakExistsAtPosition()
/external/webkit/Source/WebCore/page/
DDOMSelection.cpp113 return anchorPosition(visibleSelection()).offsetInContainerNode(); in anchorOffset()
131 return focusPosition(visibleSelection()).offsetInContainerNode(); in focusOffset()
149 return basePosition(visibleSelection()).offsetInContainerNode(); in baseOffset()
167 return extentPosition(visibleSelection()).offsetInContainerNode(); in extentOffset()
/external/webkit/Source/WebCore/dom/
DPosition.h86 int offsetInContainerNode() const in offsetInContainerNode() function
/external/webkit/Source/WebKit/qt/Api/
Dqwebpage.cpp1110 int cursorPos = frame->selection()->extent().offsetInContainerNode(); in inputMethodEvent()
1414 return QVariant(frame->selection()->end().offsetInContainerNode()); in inputMethodQuery()
1415 return QVariant(frame->selection()->extent().offsetInContainerNode()); in inputMethodQuery()
1422 …text.remove(range->startPosition().offsetInContainerNode(), TextIterator::rangeLength(range.get())… in inputMethodQuery()
1429 int start = frame->selection()->start().offsetInContainerNode(); in inputMethodQuery()
1430 int end = frame->selection()->end().offsetInContainerNode(); in inputMethodQuery()
1439 return QVariant(frame->selection()->start().offsetInContainerNode()); in inputMethodQuery()
1440 return QVariant(frame->selection()->base().offsetInContainerNode()); in inputMethodQuery()
/external/webkit/Source/WebKit/mac/WebView/
DWebFrame.mm757 range->setStart(newStart.containerNode(), newStart.offsetInContainerNode(), exception);
758 range->setEnd(newStart.containerNode(), newStart.offsetInContainerNode(), exception);
/external/webkit/Source/WebKit/mac/
DChangeLog1982 use containerNode() and offsetInContainerNode() instead of deprecated member functions.
/external/webkit/Source/WebCore/
DChangeLog50384 …(WebCore::makeSearchRange): Call containerNode() and offsetInContainerNode() instead of deprecated…
50390 …* page/DOMSelection.cpp: Call containerNode() and offsetInContainerNode() instead of deprecatedNod…
DChangeLog-2009-06-16198 offsetInContainerNode to return the caret offset, since the former
23724 (WebCore::Position::offsetInContainerNode):
DChangeLog-2010-01-2912453 offsetInContainerNode(), since we are not sure this is always
DChangeLog-2010-12-0610360 So far we were using offsetInContainerNode() to calculate the