/external/chromium_org/third_party/WebKit/Source/core/editing/ |
D | ApplyBlockElementCommand.cpp | 159 int offset = position.offsetInContainerNode(); in isNewLineAtPosition() 191 …neAtPosition(start) && !isNewLineAtPosition(start.previous()) && start.offsetInContainerNode() > 0) in rangeForParagraphSplittingTextNodesIfNeeded() 195 if (!startStyle->collapseWhiteSpace() && start.offsetInContainerNode() > 0) { in rangeForParagraphSplittingTextNodesIfNeeded() 196 int startOffset = start.offsetInContainerNode(); in rangeForParagraphSplittingTextNodesIfNeeded() 201 ASSERT(end.offsetInContainerNode() >= startOffset); in rangeForParagraphSplittingTextNodesIfNeeded() 202 end = Position(startText, end.offsetInContainerNode() - startOffset); in rangeForParagraphSplittingTextNodesIfNeeded() 205 ASSERT(m_endOfLastParagraph.offsetInContainerNode() >= startOffset); in rangeForParagraphSplittingTextNodesIfNeeded() 206 …m_endOfLastParagraph = Position(startText, m_endOfLastParagraph.offsetInContainerNode() - startOff… in rangeForParagraphSplittingTextNodesIfNeeded() 216 …if (endStyle->preserveNewline() && start == end && end.offsetInContainerNode() < end.containerNode… in rangeForParagraphSplittingTextNodesIfNeeded() 217 int endOffset = end.offsetInContainerNode(); in rangeForParagraphSplittingTextNodesIfNeeded() [all …]
|
D | MoveSelectionCommand.cpp | 51 …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()
|
D | InsertTextCommand.cpp | 116 unsigned count = std::min(text.length(), textNode->length() - start.offsetInContainerNode()); in performOverwrite() 120 replaceTextInNode(textNode, start.offsetInContainerNode(), count, text); in performOverwrite() 122 …Position endPosition = Position(textNode.release(), start.offsetInContainerNode() + text.length()); in performOverwrite() 201 const unsigned offset = startPosition.offsetInContainerNode(); in doApply() 217 …tespaceOnTextSubstring(textNode, startPosition.offsetInContainerNode(), endPosition.offsetInContai… in doApply() 239 unsigned int offset = node->isTextNode() ? insertPos.offsetInContainerNode() : 0; in insertTab()
|
D | ApplyStyleCommand.cpp | 1132 … ASSERT(s.anchorType() == Position::PositionIsBeforeAnchor || s.offsetInContainerNode() <= 0); in removeInlineStyle() 1139 …osition::PositionIsAfterAnchor || !offsetIsBeforeLastNodeOffset(s.offsetInContainerNode(), s.conta… in removeInlineStyle() 1186 …newEnd = Position(end.containerText(), end.offsetInContainerNode() - start.offsetInContainerNode()… in splitTextAtStart() 1191 splitTextNode(text, start.offsetInContainerNode()); in splitTextAtStart() 1201 splitTextNode(text, end.offsetInContainerNode()); in splitTextAtEnd() 1207 …Position newStart = shouldUpdateStart ? Position(toText(prevNode), start.offsetInContainerNode()) … in splitTextAtEnd() 1217 …newEnd = Position(end.containerText(), end.offsetInContainerNode() - start.offsetInContainerNode()… in splitTextElementAtStart() 1221 splitTextNodeContainingElement(start.containerText(), start.offsetInContainerNode()); in splitTextElementAtStart() 1230 splitTextNodeContainingElement(end.containerText(), end.offsetInContainerNode()); in splitTextElementAtEnd() 1239 …Start = shouldUpdateStart ? Position(toText(firstTextNode), start.offsetInContainerNode()) : start; in splitTextElementAtEnd() [all …]
|
D | InsertParagraphSeparatorCommand.cpp | 358 …bool atEnd = static_cast<unsigned>(insertionPosition.offsetInContainerNode()) >= textNode->length(… in doApply() 360 splitTextNode(textNode, insertionPosition.offsetInContainerNode()); in doApply() 362 …ionPosition.moveToPosition(textNode->previousSibling(), insertionPosition.offsetInContainerNode()); in doApply() 397 … if (splitTo->isTextNode() && insertionPosition.offsetInContainerNode() >= caretMaxOffset(splitTo)) in doApply()
|
D | CompositeEditCommand.cpp | 440 …osition.anchorType() == Position::PositionIsOffsetInAnchor) ? position.offsetInContainerNode() : 0; in updatePositionForNodeRemovalPreservingChildren() 525 …replaceTextInNode(textNode, start.offsetInContainerNode(), end.offsetInContainerNode() - start.off… in replaceSelectedTextInNode() 527 return Position(textNode.release(), start.offsetInContainerNode() + text.length()); in replaceSelectedTextInNode() 570 if (pos.offsetInContainerNode() <= caretMinOffset(pos.containerNode())) in positionOutsideTabSpan() 573 if (pos.offsetInContainerNode() >= caretMaxOffset(pos.containerNode())) in positionOutsideTabSpan() 576 splitTextNodeContainingElement(toText(pos.containerNode()), pos.offsetInContainerNode()); in positionOutsideTabSpan() 661 …WhitespaceOnTextSubstring(toText(node), position.offsetInContainerNode(), position.offsetInContain… in rebalanceWhitespaceAt() 729 …replaceTextInNodePreservingMarkers(pos.containerText(), pos.offsetInContainerNode(), 1, nonBreakin… in replaceCollapsibleWhitespaceWithNonBreakingSpaceIfNeeded() 913 deleteTextFromNode(toText(p.anchorNode()), p.offsetInContainerNode(), 1); in removePlaceholderAt()
|
D | ReplaceSelectionCommand.cpp | 1040 …if (insertionPos.containerNode()->isTextNode() && insertionPos.offsetInContainerNode() && !inserti… in doApply() 1041 splitTextNode(insertionPos.containerText(), insertionPos.offsetInContainerNode()); in doApply() 1279 endOffset = endUpstream.offsetInContainerNode(); in addSpacesForSmartReplace() 1288 … m_endOfInsertedContent.moveToOffset(m_endOfInsertedContent.offsetInContainerNode() + 1); in addSpacesForSmartReplace() 1303 startOffset = startDownstream.offsetInContainerNode(); in addSpacesForSmartReplace() 1311 …ndOfInsertedContent.containerNode() == startNode && m_endOfInsertedContent.offsetInContainerNode()) in addSpacesForSmartReplace() 1312 … m_endOfInsertedContent.moveToOffset(m_endOfInsertedContent.offsetInContainerNode() + 1); in addSpacesForSmartReplace() 1379 position.moveToOffset(previous->length() + position.offsetInContainerNode()); in mergeTextNodesAroundPosition() 1385 …OnlyToBeUpdated.moveToOffset(previous->length() + positionOnlyToBeUpdated.offsetInContainerNode()); in mergeTextNodesAroundPosition() 1387 … positionOnlyToBeUpdated.moveToPosition(text, positionOnlyToBeUpdated.offsetInContainerNode()); in mergeTextNodesAroundPosition() [all …]
|
D | VisiblePosition.cpp | 642 unsigned offset = static_cast<unsigned>(pos.offsetInContainerNode()); in characterAfter() 734 …erNode()->document(), s.containerNode(), s.offsetInContainerNode(), e.containerNode(), e.offsetInC… in makeRange() 753 r->setStart(p.containerNode(), p.offsetInContainerNode(), exceptionState); in setStart() 763 r->setEnd(p.containerNode(), p.offsetInContainerNode(), exceptionState); in setEnd()
|
D | DeleteSelectionCommand.cpp | 410 if (position.offsetInContainerNode() > offset + count) in updatePositionForTextRemoval() 411 position.moveToOffset(position.offsetInContainerNode() - count); in updatePositionForTextRemoval() 412 else if (position.offsetInContainerNode() > offset) in updatePositionForTextRemoval()
|
D | FrameSelection.cpp | 385 ASSERT(position.offsetInContainerNode() >= 0); in updatePositionAfterAdoptingTextReplacement() 386 unsigned positionOffset = static_cast<unsigned>(position.offsetInContainerNode()); in updatePositionAfterAdoptingTextReplacement() 420 ASSERT(position.offsetInContainerNode() >= 0); in updatePostionAfterAdoptingTextNodesMerged() 421 unsigned positionOffset = static_cast<unsigned>(position.offsetInContainerNode()); in updatePostionAfterAdoptingTextNodesMerged() 448 ASSERT(position.offsetInContainerNode() >= 0); in updatePostionAfterAdoptingTextNodeSplit() 449 unsigned positionOffset = static_cast<unsigned>(position.offsetInContainerNode()); in updatePostionAfterAdoptingTextNodeSplit()
|
D | htmlediting.cpp | 949 …nerNode() == node->parentNode() && static_cast<unsigned>(position.offsetInContainerNode()) > node-… in updatePositionForNodeRemoval() 950 position.moveToOffset(position.offsetInContainerNode() - 1); in updatePositionForNodeRemoval() 1011 unsigned offset = position.offsetInContainerNode(); in lineBreakExistsAtPosition()
|
D | VisibleSelection.cpp | 224 searchRange->setStart(start.containerNode(), start.offsetInContainerNode(), exceptionState); in makeSearchRange()
|
/external/chromium_org/third_party/WebKit/Source/core/dom/ |
D | Position.h | 105 int offsetInContainerNode() const in offsetInContainerNode() function
|
D | Range.cpp | 271 … setStart(parentAnchored.containerNode(), parentAnchored.offsetInContainerNode(), exceptionState); in setStart() 277 setEnd(parentAnchored.containerNode(), parentAnchored.offsetInContainerNode(), exceptionState); in setEnd()
|
/external/chromium_org/third_party/WebKit/Source/core/html/ |
D | HTMLTextFormControlElement.cpp | 335 …range->setEnd(indexPosition.containerNode(), indexPosition.offsetInContainerNode(), ASSERT_NO_EXCE… in indexForVisiblePosition()
|