/external/webkit/Source/WebCore/dom/ |
Position.h | 55 PositionIsOffsetInAnchor, 62 , m_anchorType(PositionIsOffsetInAnchor) 77 void clear() { m_anchorNode.clear(); m_offset = 0; m_anchorType = PositionIsOffsetInAnchor; m_isLegacyEditingPosition = false; } 88 ASSERT(anchorType() == PositionIsOffsetInAnchor); 113 // These should only be used for PositionIsOffsetInAnchor positions, unless 218 return Position(node->parentNode(), node->nodeIndex(), Position::PositionIsOffsetInAnchor); 224 return Position(node->parentNode(), node->nodeIndex() + 1, Position::PositionIsOffsetInAnchor); 248 return Position(anchorNode, 0, Position::PositionIsOffsetInAnchor); 253 return Position(anchorNode, lastOffsetInNode(anchorNode), Position::PositionIsOffsetInAnchor);
|
Position.cpp | 88 ASSERT(anchorType != PositionIsOffsetInAnchor); 98 ASSERT(anchorType == PositionIsOffsetInAnchor); 104 ASSERT(anchorType() == PositionIsOffsetInAnchor || m_isLegacyEditingPosition); 112 ASSERT(anchorType() == PositionIsOffsetInAnchor || m_isLegacyEditingPosition); 124 case PositionIsOffsetInAnchor: 140 case PositionIsOffsetInAnchor: 176 return Position(containerNode(), computeOffsetInContainerNode(), PositionIsOffsetInAnchor); 185 case PositionIsOffsetInAnchor: 202 case PositionIsOffsetInAnchor: 220 return Position::PositionIsOffsetInAnchor; [all...] |
Range.cpp | [all...] |
/external/webkit/Source/WebCore/editing/ |
MoveSelectionCommand.cpp | 50 if (pos.anchorType() == Position::PositionIsOffsetInAnchor && selectionEnd.anchorType() == Position::PositionIsOffsetInAnchor 55 if (selectionStart.anchorType() == Position::PositionIsOffsetInAnchor && selectionStart.containerNode() == pos.containerNode())
|
ApplyBlockElementCommand.cpp | 151 if (position.anchorType() != Position::PositionIsOffsetInAnchor) 169 if (position.anchorType() != Position::PositionIsOffsetInAnchor 199 end = Position(end.deprecatedNode(), end.offsetInContainerNode() - startOffset, Position::PositionIsOffsetInAnchor); 204 Position::PositionIsOffsetInAnchor); 217 end = Position(end.deprecatedNode(), endOffset + 1, Position::PositionIsOffsetInAnchor); 233 Position::PositionIsOffsetInAnchor); 250 || !isNewLineAtPosition(Position(containerNode.get(), 0, Position::PositionIsOffsetInAnchor))) 258 if (start.anchorType() == Position::PositionIsOffsetInAnchor && containerNode.get() == start.containerNode()) { 260 start = Position(containerNode->previousSibling(), start.offsetInContainerNode(), Position::PositionIsOffsetInAnchor); 262 if (end.anchorType() == Position::PositionIsOffsetInAnchor && containerNode.get() == end.containerNode()) [all...] |
InsertTextCommand.cpp | 82 ASSERT(start.anchorType() == Position::PositionIsOffsetInAnchor); 83 ASSERT(end.anchorType() == Position::PositionIsOffsetInAnchor); 163 ASSERT(startPosition.anchorType() == Position::PositionIsOffsetInAnchor); 172 endPosition = Position(textNode, offset + text.length(), Position::PositionIsOffsetInAnchor); 215 return Position(node, offset + 1, Position::PositionIsOffsetInAnchor);
|
ApplyStyleCommand.cpp | [all...] |
visible_units.cpp | 382 VisiblePosition visPos = startNode->isTextNode() ? VisiblePosition(Position(startNode, static_cast<InlineTextBox *>(startBox)->start(), Position::PositionIsOffsetInAnchor), DOWNSTREAM) 437 pos = Position(endNode, endOffset, Position::PositionIsOffsetInAnchor); 786 type = Position::PositionIsOffsetInAnchor; 795 return VisiblePosition(Position(n, i + 1, Position::PositionIsOffsetInAnchor), DOWNSTREAM); 808 if (type == Position::PositionIsOffsetInAnchor) [all...] |
VisiblePosition.cpp | 546 ASSERT(pos.anchorType() == Position::PositionIsBeforeAnchor || pos.anchorType() == Position::PositionIsOffsetInAnchor); 548 unsigned offset = pos.anchorType() == Position::PositionIsOffsetInAnchor ? pos.offsetInContainerNode() : 0; 641 return VisiblePosition(Position(r->startContainer(exception), r->startOffset(exception), Position::PositionIsOffsetInAnchor), affinity); 647 return VisiblePosition(Position(r->endContainer(exception), r->endOffset(exception), Position::PositionIsOffsetInAnchor), affinity);
|
SelectionController.cpp | 284 if (!position.anchorNode() || position.anchorNode() != node || position.anchorType() != Position::PositionIsOffsetInAnchor) [all...] |
InsertParagraphSeparatorCommand.cpp | 369 if (insertionPosition.anchorType() == Position::PositionIsOffsetInAnchor)
|
CompositeEditCommand.cpp | 416 if (position.anchorType() != Position::PositionIsOffsetInAnchor || !node || !node->isTextNode()) 467 VisiblePosition visibleUpstreamPos(Position(textNode, upstream, Position::PositionIsOffsetInAnchor)); 468 VisiblePosition visibleDownstreamPos(Position(textNode, downstream, Position::PositionIsOffsetInAnchor)); [all...] |
ReplaceSelectionCommand.cpp | [all...] |
DeleteSelectionCommand.cpp | 321 case Position::PositionIsOffsetInAnchor: 410 if (position.anchorType() != Position::PositionIsOffsetInAnchor || position.containerNode() != node) [all...] |
SpellingCorrectionController.cpp | 383 if (position.anchorType() != Position::PositionIsOffsetInAnchor)
|
TypingCommand.cpp | 621 extent = Position(extent.deprecatedNode(), extent.deprecatedEditingOffset() + extraCharacters, Position::PositionIsOffsetInAnchor);
|
htmlediting.cpp | 455 VisiblePosition lastInElement = VisiblePosition(Position(n, n->childNodeCount(), Position::PositionIsOffsetInAnchor), DOWNSTREAM); [all...] |
TextIterator.cpp | 871 VisiblePosition startPos = VisiblePosition(Position(m_startContainer, m_startOffset, Position::PositionIsOffsetInAnchor), DOWNSTREAM); [all...] |
Editor.cpp | 267 VisiblePosition start(Position(startContainer, range->startOffset(ec), Position::PositionIsOffsetInAnchor), DOWNSTREAM); [all...] |
/external/webkit/Source/WebCore/rendering/ |
RenderTextControl.cpp | 333 return VisiblePosition(Position(m_innerText.get(), 0, Position::PositionIsOffsetInAnchor), DOWNSTREAM); 344 return VisiblePosition(Position(endContainer, endOffset, Position::PositionIsOffsetInAnchor), UPSTREAM);
|
/external/webkit/Source/WebKit/mac/WebView/ |
WebTextCompletionController.mm | 208 NSRect wordRect = [frame _caretRectAtPosition:Position(core([wholeWord startContainer]), [wholeWord startOffset], Position::PositionIsOffsetInAnchor) affinity:NSSelectionAffinityDownstream];
|
/external/webkit/Source/WebCore/accessibility/ |
AccessibilityRenderObject.cpp | [all...] |
/external/webkit/Source/WebKit/chromium/src/ |
WebViewImpl.cpp | [all...] |