Home
last modified time | relevance | path

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

/external/chromium_org/third_party/WebKit/Source/core/editing/
DApplyBlockElementCommand.cpp164 int offset = position.offsetInContainerNode(); in isNewLineAtPosition()
196 …neAtPosition(start) && !isNewLineAtPosition(start.previous()) && start.offsetInContainerNode() > 0) in rangeForParagraphSplittingTextNodesIfNeeded()
200 if (!startStyle->collapseWhiteSpace() && start.offsetInContainerNode() > 0) { in rangeForParagraphSplittingTextNodesIfNeeded()
201 int startOffset = start.offsetInContainerNode(); in rangeForParagraphSplittingTextNodesIfNeeded()
206 ASSERT(end.offsetInContainerNode() >= startOffset); in rangeForParagraphSplittingTextNodesIfNeeded()
207 end = Position(startText, end.offsetInContainerNode() - startOffset); in rangeForParagraphSplittingTextNodesIfNeeded()
210 ASSERT(m_endOfLastParagraph.offsetInContainerNode() >= startOffset); in rangeForParagraphSplittingTextNodesIfNeeded()
211 …m_endOfLastParagraph = Position(startText, m_endOfLastParagraph.offsetInContainerNode() - startOff… in rangeForParagraphSplittingTextNodesIfNeeded()
221 …if (endStyle->preserveNewline() && start == end && end.offsetInContainerNode() < end.containerNode… in rangeForParagraphSplittingTextNodesIfNeeded()
222 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()
DPlainTextRange.cpp125 …xtRunStartPosition.containerNode(), offset + textRunStartPosition.offsetInContainerNode(), IGNORE_… in createRangeFor()
128 …tStart(textRunStartPosition.containerNode(), textRunStartPosition.offsetInContainerNode(), IGNORE_… in createRangeFor()
130 …->setStart(textRunEndPosition.containerNode(), textRunEndPosition.offsetInContainerNode(), IGNORE_… in createRangeFor()
137 …xtRunStartPosition.containerNode(), offset + textRunStartPosition.offsetInContainerNode(), IGNORE_… in createRangeFor()
140 …setEnd(textRunStartPosition.containerNode(), textRunStartPosition.offsetInContainerNode(), IGNORE_… in createRangeFor()
142 …ge->setEnd(textRunEndPosition.containerNode(), textRunEndPosition.offsetInContainerNode(), IGNORE_… in createRangeFor()
154 …ge->setEnd(textRunEndPosition.containerNode(), textRunEndPosition.offsetInContainerNode(), IGNORE_… in createRangeFor()
DInsertTextCommand.cpp108 unsigned count = std::min(text.length(), textNode->length() - start.offsetInContainerNode()); in performOverwrite()
112 replaceTextInNode(textNode, start.offsetInContainerNode(), count, text); in performOverwrite()
114 …Position endPosition = Position(textNode.release(), start.offsetInContainerNode() + text.length()); in performOverwrite()
199 const unsigned offset = startPosition.offsetInContainerNode(); in doApply()
213 …tespaceOnTextSubstring(textNode, startPosition.offsetInContainerNode(), endPosition.offsetInContai… in doApply()
237 unsigned offset = node->isTextNode() ? insertPos.offsetInContainerNode() : 0; in insertTab()
DApplyStyleCommand.cpp1161 …eAnchor || s.anchorType() == Position::PositionIsBeforeChildren || s.offsetInContainerNode() <= 0); in removeInlineStyle()
1168 …osition::PositionIsAfterAnchor || !offsetIsBeforeLastNodeOffset(s.offsetInContainerNode(), s.conta… in removeInlineStyle()
1201 …newEnd = Position(end.containerText(), end.offsetInContainerNode() - start.offsetInContainerNode()… in splitTextAtStart()
1206 splitTextNode(text, start.offsetInContainerNode()); in splitTextAtStart()
1216 splitTextNode(text, end.offsetInContainerNode()); in splitTextAtEnd()
1222 …Position newStart = shouldUpdateStart ? Position(toText(prevNode), start.offsetInContainerNode()) … in splitTextAtEnd()
1232 …newEnd = Position(end.containerText(), end.offsetInContainerNode() - start.offsetInContainerNode()… in splitTextElementAtStart()
1236 splitTextNodeContainingElement(start.containerText(), start.offsetInContainerNode()); in splitTextElementAtStart()
1245 splitTextNodeContainingElement(end.containerText(), end.offsetInContainerNode()); in splitTextElementAtEnd()
1254 …Start = shouldUpdateStart ? Position(toText(firstTextNode), start.offsetInContainerNode()) : start; in splitTextElementAtEnd()
[all …]
DInsertParagraphSeparatorCommand.cpp361 …bool atEnd = static_cast<unsigned>(insertionPosition.offsetInContainerNode()) >= textNode->length(… in doApply()
363 splitTextNode(textNode, insertionPosition.offsetInContainerNode()); in doApply()
365 …ionPosition.moveToPosition(textNode->previousSibling(), insertionPosition.offsetInContainerNode()); in doApply()
400 … if (splitTo->isTextNode() && insertionPosition.offsetInContainerNode() >= caretMaxOffset(splitTo)) in doApply()
DReplaceSelectionCommand.cpp1075 …if (insertionPos.containerNode()->isTextNode() && insertionPos.offsetInContainerNode() && !inserti… in doApply()
1076 splitTextNode(insertionPos.containerText(), insertionPos.offsetInContainerNode()); in doApply()
1314 endOffset = endUpstream.offsetInContainerNode(); in addSpacesForSmartReplace()
1323 … m_endOfInsertedContent.moveToOffset(m_endOfInsertedContent.offsetInContainerNode() + 1); in addSpacesForSmartReplace()
1338 startOffset = startDownstream.offsetInContainerNode(); in addSpacesForSmartReplace()
1346 …ndOfInsertedContent.containerNode() == startNode && m_endOfInsertedContent.offsetInContainerNode()) in addSpacesForSmartReplace()
1347 … m_endOfInsertedContent.moveToOffset(m_endOfInsertedContent.offsetInContainerNode() + 1); in addSpacesForSmartReplace()
1414 position.moveToOffset(previous->length() + position.offsetInContainerNode()); in mergeTextNodesAroundPosition()
1420 …OnlyToBeUpdated.moveToOffset(previous->length() + positionOnlyToBeUpdated.offsetInContainerNode()); in mergeTextNodesAroundPosition()
1422 … positionOnlyToBeUpdated.moveToPosition(text, positionOnlyToBeUpdated.offsetInContainerNode()); in mergeTextNodesAroundPosition()
[all …]
DCompositeEditCommand.cpp416 …osition.anchorType() == Position::PositionIsOffsetInAnchor) ? position.offsetInContainerNode() : 0; in updatePositionForNodeRemovalPreservingChildren()
501 …replaceTextInNode(textNode, start.offsetInContainerNode(), end.offsetInContainerNode() - start.off… in replaceSelectedTextInNode()
503 return Position(textNode.release(), start.offsetInContainerNode() + text.length()); in replaceSelectedTextInNode()
552 if (pos.offsetInContainerNode() <= caretMinOffset(pos.containerNode())) in positionOutsideTabSpan()
555 if (pos.offsetInContainerNode() >= caretMaxOffset(pos.containerNode())) in positionOutsideTabSpan()
558 splitTextNodeContainingElement(toText(pos.containerNode()), pos.offsetInContainerNode()); in positionOutsideTabSpan()
643 …WhitespaceOnTextSubstring(toText(node), position.offsetInContainerNode(), position.offsetInContain… in rebalanceWhitespaceAt()
711 …replaceTextInNodePreservingMarkers(pos.containerText(), pos.offsetInContainerNode(), 1, nonBreakin… in replaceCollapsibleWhitespaceWithNonBreakingSpaceIfNeeded()
894 deleteTextFromNode(toText(p.anchorNode()), p.offsetInContainerNode(), 1); in removePlaceholderAt()
DVisiblePosition.cpp641 unsigned offset = static_cast<unsigned>(pos.offsetInContainerNode()); in characterAfter()
717 …erNode()->document(), s.containerNode(), s.offsetInContainerNode(), e.containerNode(), e.offsetInC… in makeRange()
731 r->setStart(p.containerNode(), p.offsetInContainerNode(), exceptionState); in setStart()
741 r->setEnd(p.containerNode(), p.offsetInContainerNode(), exceptionState); in setEnd()
DVisibleSelection.cpp299 searchRange->setStart(start.containerNode(), start.offsetInContainerNode(), exceptionState); in makeSearchRange()
796 if (position.offsetInContainerNode() < 0) in isValidPosition()
799 const unsigned offset = static_cast<unsigned>(position.offsetInContainerNode()); in isValidPosition()
DDeleteSelectionCommand.cpp410 if (position.offsetInContainerNode() > offset + count) in updatePositionForTextRemoval()
411 position.moveToOffset(position.offsetInContainerNode() - count); in updatePositionForTextRemoval()
412 else if (position.offsetInContainerNode() > offset) in updatePositionForTextRemoval()
DFrameSelection.cpp384 ASSERT(position.offsetInContainerNode() >= 0); in updatePositionAfterAdoptingTextReplacement()
385 unsigned positionOffset = static_cast<unsigned>(position.offsetInContainerNode()); in updatePositionAfterAdoptingTextReplacement()
419 ASSERT(position.offsetInContainerNode() >= 0); in updatePostionAfterAdoptingTextNodesMerged()
420 unsigned positionOffset = static_cast<unsigned>(position.offsetInContainerNode()); in updatePostionAfterAdoptingTextNodesMerged()
447 ASSERT(position.offsetInContainerNode() >= 0); in updatePostionAfterAdoptingTextNodeSplit()
448 unsigned positionOffset = static_cast<unsigned>(position.offsetInContainerNode()); in updatePostionAfterAdoptingTextNodeSplit()
Dhtmlediting.cpp1005 …inerNode() == node.parentNode() && static_cast<unsigned>(position.offsetInContainerNode()) > node.… in updatePositionForNodeRemoval()
1006 position.moveToOffset(position.offsetInContainerNode() - 1); in updatePositionForNodeRemoval()
1068 unsigned offset = position.offsetInContainerNode(); in lineBreakExistsAtPosition()
DSpellChecker.cpp224 int searchEndOffsetAfterWrap = spellingSearchEnd.offsetInContainerNode(); in advanceToNextMisspelling()
/external/chromium_org/third_party/WebKit/Source/core/html/
DHTMLTextFormControlElement.cpp336 index += std::min(length, passedPosition.offsetInContainerNode()); in indexForPosition()
410 …range->setEnd(indexPosition.containerNode(), indexPosition.offsetInContainerNode(), ASSERT_NO_EXCE… in indexForVisiblePosition()
741 …offset = std::max(0, std::min(innerPosition.offsetInContainerNode(), static_cast<int>(childNodes->… in innerNodePosition()
782 const unsigned start = isStartNode ? startPosition.offsetInContainerNode() : 0; in findWordBoundary()
783 … const unsigned end = isEndNode ? endPosition.offsetInContainerNode() : text->data().length(); in findWordBoundary()
815 … == startPosition.anchorNode()) ? remainingOffset + startPosition.offsetInContainerNode() : remain… in findWordBoundary()
883 unsigned offset = position.offsetInContainerNode(); in previousIfPositionIsAfterLineBreak()
923 …Break = textNode->data().substring(0, isPivotNode ? pivotPosition.offsetInContainerNode() : textNo… in startOfSentence()
958 …stLineBreak = textNode->data().find('\n', isPivotNode ? pivotPosition.offsetInContainerNode() : 0); in endOfSentence()
/external/chromium_org/third_party/WebKit/Source/core/dom/
DPosition.h105 int offsetInContainerNode() const in offsetInContainerNode() function
DRange.cpp204 … setStart(parentAnchored.containerNode(), parentAnchored.offsetInContainerNode(), exceptionState); in setStart()
210 setEnd(parentAnchored.containerNode(), parentAnchored.offsetInContainerNode(), exceptionState); in setEnd()