Searched refs:anchorNode (Results 1 - 25 of 36) sorted by relevance

12

/external/webkit/Source/WebCore/dom/
H A DPosition.h68 Position(PassRefPtr<Node> anchorNode, int offset);
71 Position(PassRefPtr<Node> anchorNode, AnchorType);
73 Position(PassRefPtr<Node> anchorNode, int offset, AnchorType);
104 Node* anchorNode() const { return m_anchorNode.get(); } function in class:WebCore::Position
115 void moveToPosition(PassRefPtr<Node> anchorNode, int offset);
185 static AnchorType anchorTypeForLegacyEditingPosition(Node* anchorNode, int offset);
200 return a.anchorNode() == b.anchorNode() && a.deprecatedEditingOffset() == b.deprecatedEditingOffset() && a.anchorType() == b.anchorType();
228 inline Position positionBeforeNode(Node* anchorNode) argument
230 ASSERT(anchorNode);
234 positionAfterNode(Node* anchorNode) argument
246 firstPositionInNode(Node* anchorNode) argument
251 lastPositionInNode(Node* anchorNode) argument
[all...]
H A DPositionIterator.h47 : m_anchorNode(pos.anchorNode())
H A DPosition.cpp74 Position::Position(PassRefPtr<Node> anchorNode, int offset) argument
75 : m_anchorNode(anchorNode)
82 Position::Position(PassRefPtr<Node> anchorNode, AnchorType anchorType) argument
83 : m_anchorNode(anchorNode)
91 Position::Position(PassRefPtr<Node> anchorNode, int offset, AnchorType anchorType) argument
92 : m_anchorNode(anchorNode)
213 Position::AnchorType Position::anchorTypeForLegacyEditingPosition(Node* anchorNode, int offset) argument
215 if (anchorNode && editingIgnoresContent(anchorNode)) {
223 // FIXME: This method is confusing (does it return anchorNode() o
[all...]
/external/webkit/Source/WebCore/editing/
H A DMoveSelectionCommand.cpp35 : CompositeEditCommand(position.anchorNode()->document()), m_fragment(fragment), m_position(position), m_smartInsert(smartInsert), m_smartDelete(smartDelete)
65 if (!pos.anchorNode()->inDocument())
69 if (!pos.anchorNode()->inDocument()) {
H A DSetSelectionCommand.cpp34 : SimpleEditCommand(selection.base().anchorNode()->document())
H A DVisibleSelection.cpp126 return Range::create(start.anchorNode()->document(), start, end);
138 m_start.anchorNode()->document()->updateLayout();
182 return Range::create(s.anchorNode()->document(), s, e);
587 if (!m_start.anchorNode())
590 fprintf(stderr, "pos: %s ", m_start.anchorNode()->nodeName().utf8().data());
593 fprintf(stderr, "start: %s ", m_start.anchorNode()->nodeName().utf8().data());
595 fprintf(stderr, "end: %s ", m_end.anchorNode()->nodeName().utf8().data());
625 if (start().anchorNode()) {
626 start().anchorNode()->showTreeAndMark(start().anchorNode(), "
[all...]
H A DCompositeEditCommand.cpp345 if (!isTabSpanTextNode(pos.anchorNode()))
349 return positionInParentAfterNode(pos.anchorNode());
351 return positionInParentBeforeNode(pos.anchorNode());
679 if (p.anchorNode()->hasTagName(brTag)) {
680 removeNode(p.anchorNode());
684 deleteTextFromNode(static_cast<Text*>(p.anchorNode()), p.offsetInContainerNode(), 1);
759 void CompositeEditCommand::pushAnchorElementDown(Node* anchorNode) argument
761 if (!anchorNode)
764 ASSERT(anchorNode->isLink());
766 setEndingSelection(VisibleSelection::selectionFromContentsOfNode(anchorNode));
[all...]
H A DSelectionController.cpp158 if (s.base().anchorNode()) {
159 Document* document = s.base().anchorNode()->document();
212 if (!position.anchorNode())
215 if (position.anchorNode() == node)
222 return element->contains(position.anchorNode()) || element->contains(position.anchorNode()->shadowAncestorNode());
270 RefPtr<Document> document = m_selection.start().anchorNode()->document();
284 if (!position.anchorNode() || position.anchorNode() != node || position.anchorType() != Position::PositionIsOffsetInAnchor)
962 Frame* frame = pos.anchorNode()
[all...]
H A DIndentOutdentCommand.cpp208 if (endAfterSelection.isNotNull() && !endAfterSelection.deepEquivalent().anchorNode()->inDocument())
211 if (endOfNextParagraph.isNotNull() && !endOfNextParagraph.deepEquivalent().anchorNode()->inDocument()) {
H A DInsertTextCommand.cpp53 if (isTabSpanTextNode(pos.anchorNode())) {
146 if (!startPosition.anchorNode()->inDocument())
H A DModifySelectionListLevel.cpp55 Node* startListChild = enclosingListChild(selection.start().anchorNode());
60 Node* endListChild = selection.isRange() ? enclosingListChild(selection.end().anchorNode()) : startListChild;
H A DDeleteSelectionCommand.cpp88 : CompositeEditCommand(selection.start().anchorNode()->document()),
328 if (node->contains(position.anchorNode()))
332 if (node->contains(position.anchorNode()))
517 if (m_downstreamEnd.deprecatedNode() != startNode && !m_upstreamStart.deprecatedNode()->isDescendantOf(m_downstreamEnd.deprecatedNode()) && m_downstreamEnd.anchorNode()->inDocument() && m_downstreamEnd.deprecatedEditingOffset() >= caretMinOffset(m_downstreamEnd.deprecatedNode())) {
534 } else if (!(startNodeWasDescendantOfEndNode && !m_upstreamStart.anchorNode()->inDocument())) {
586 if (!m_downstreamEnd.anchorNode()->inDocument() || !m_upstreamStart.anchorNode()->inDocument())
H A Dhtmlediting.cpp998 if (position.anchorNode()->hasTagName(brTag) && position.atFirstEditingPositionForNode())
1001 if (!position.anchorNode()->renderer())
1004 if (!position.anchorNode()->isTextNode() || !position.anchorNode()->renderer()->style()->preserveNewline())
1007 Text* textNode = static_cast<Text*>(position.anchorNode());
1046 RefPtr<Range> range = Range::create(p.anchorNode()->document(), firstPositionInNode(p.anchorNode()->document()->documentElement()),
H A DApplyBlockElementCommand.cpp137 if (endAfterSelection.isNotNull() && !endAfterSelection.deepEquivalent().anchorNode()->inDocument())
141 if (endOfNextParagraph.isNotNull() && !endOfNextParagraph.deepEquivalent().anchorNode()->inDocument()) {
H A DInsertParagraphSeparatorCommand.cpp84 m_style->mergeTypingStyle(pos.anchorNode()->document());
H A DInsertListCommand.cpp146 if (!startOfLastParagraph.deepEquivalent().anchorNode()->inDocument())
/external/webkit/LayoutTests/fast/dom/Selection/script-tests/
H A DgetRangeAt.js18 debug("anchorNode: " + sel.anchorNode);
/external/webkit/Source/WebCore/accessibility/chromium/
H A DAXObjectCacheChromium.cpp121 void AXObjectCache::handleScrolledToAnchor(const Node* anchorNode) argument
125 postPlatformNotification(AccessibilityObject::firstAccessibleObjectFromNode(anchorNode), AXScrolledToAnchor);
/external/webkit/Source/WebCore/accessibility/win/
H A DAXObjectCacheWin.cpp55 void AXObjectCache::handleScrolledToAnchor(const Node* anchorNode) argument
59 postPlatformNotification(AccessibilityObject::firstAccessibleObjectFromNode(anchorNode), AXScrolledToAnchor);
/external/webkit/Source/WebCore/page/
H A DDOMSelection.h70 Node* anchorNode() const;
H A DDOMSelection.idl35 readonly attribute Node anchorNode;
H A DFrameView.cpp1430 Element* anchorNode = m_frame->document()->findAnchor(name); local
1442 if (anchorNode && anchorNode->hasTagName(SVGNames::viewTag)) {
1443 RefPtr<SVGViewElement> viewElement = anchorNode->hasTagName(SVGNames::viewTag) ? static_cast<SVGViewElement*>(anchorNode) : 0;
1458 m_frame->document()->setCSSTarget(anchorNode); // Setting to null will clear the current target.
1461 if (!anchorNode && !(name.isEmpty() || equalIgnoringCase(name, "top")))
1464 maintainScrollPositionAtAnchor(anchorNode ? static_cast<Node*>(anchorNode) : m_frame->document());
1468 void FrameView::maintainScrollPositionAtAnchor(Node* anchorNode) argument
1937 RefPtr<Node> anchorNode = m_maintainScrollPositionAnchor; local
[all...]
H A DDOMSelection.cpp46 Node* node = frame->selection()->selection().base().anchorNode();
98 Node* DOMSelection::anchorNode() const function in class:WebCore::DOMSelection
/external/webkit/Source/WebKit/android/jni/
H A DWebViewCore.cpp1563 Node* node = pos.anchorNode();
1617 || !base.anchorNode() || !base.anchorNode()->renderer()
1618 || !extent.anchorNode() || !extent.anchorNode()->renderer())
1657 Node* editable = findInputParent(base.anchorNode());
1739 Node* node = pos.deepEquivalent().anchorNode();
2352 Node* anchorNode = selection->anchorNode();
2353 if (anchorNode
2557 getNextAnchorNode(Node* anchorNode, bool ignoreFirstNode, int direction) argument
2588 Node* anchorNode = getImplicitBoundaryNode(selection->anchorNode(), local
[all...]
/external/webkit/Source/WebCore/accessibility/
H A DAXObjectCache.h94 void handleScrolledToAnchor(const Node* anchorNode);

Completed in 283 milliseconds

12