Home
last modified time | relevance | path

Searched refs:anchorNode (Results 1 – 25 of 46) sorted by relevance

12

/external/webkit/Source/WebCore/dom/
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(); } in anchorNode() function
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.deprecatedEditingOffse…
228 inline Position positionBeforeNode(Node* anchorNode) in positionBeforeNode() argument
230 ASSERT(anchorNode); in positionBeforeNode()
231 return Position(anchorNode, Position::PositionIsBeforeAnchor); in positionBeforeNode()
[all …]
DPosition.cpp74 Position::Position(PassRefPtr<Node> anchorNode, int offset) in Position() argument
75 : m_anchorNode(anchorNode) in Position()
82 Position::Position(PassRefPtr<Node> anchorNode, AnchorType anchorType) in Position() argument
83 : m_anchorNode(anchorNode) in Position()
91 Position::Position(PassRefPtr<Node> anchorNode, int offset, AnchorType anchorType) in Position() argument
92 : m_anchorNode(anchorNode) in Position()
213 Position::AnchorType Position::anchorTypeForLegacyEditingPosition(Node* anchorNode, int offset) in anchorTypeForLegacyEditingPosition() argument
215 if (anchorNode && editingIgnoresContent(anchorNode)) { in anchorTypeForLegacyEditingPosition()
226 Node* n = anchorNode(); in element()
1269 if (anchorNode()) { in showTreeForThis()
[all …]
DPositionIterator.h47 : m_anchorNode(pos.anchorNode()) in PositionIterator()
/external/webkit/Source/WebCore/editing/
DVisibleSelection.cpp126 return Range::create(start.anchorNode()->document(), start, end); in firstRange()
138 m_start.anchorNode()->document()->updateLayout(); in toNormalizedRange()
182 return Range::create(s.anchorNode()->document(), s, e); in toNormalizedRange()
587 if (!m_start.anchorNode()) in debugPosition()
590 fprintf(stderr, "pos: %s ", m_start.anchorNode()->nodeName().utf8().data()); in debugPosition()
593 fprintf(stderr, "start: %s ", m_start.anchorNode()->nodeName().utf8().data()); in debugPosition()
595 fprintf(stderr, "end: %s ", m_end.anchorNode()->nodeName().utf8().data()); in debugPosition()
625 if (start().anchorNode()) { in showTreeForThis()
626 start().anchorNode()->showTreeAndMark(start().anchorNode(), "S", end().anchorNode(), "E"); in showTreeForThis()
DMoveSelectionCommand.cpp35 …: CompositeEditCommand(position.anchorNode()->document()), m_fragment(fragment), m_position(positi… in MoveSelectionCommand()
65 if (!pos.anchorNode()->inDocument()) in doApply()
69 if (!pos.anchorNode()->inDocument()) { in doApply()
DCompositeEditCommand.cpp345 if (!isTabSpanTextNode(pos.anchorNode())) in positionOutsideTabSpan()
349 return positionInParentAfterNode(pos.anchorNode()); in positionOutsideTabSpan()
351 return positionInParentBeforeNode(pos.anchorNode()); in positionOutsideTabSpan()
679 if (p.anchorNode()->hasTagName(brTag)) { in removePlaceholderAt()
680 removeNode(p.anchorNode()); in removePlaceholderAt()
684 deleteTextFromNode(static_cast<Text*>(p.anchorNode()), p.offsetInContainerNode(), 1); in removePlaceholderAt()
759 void CompositeEditCommand::pushAnchorElementDown(Node* anchorNode) in pushAnchorElementDown() argument
761 if (!anchorNode) in pushAnchorElementDown()
764 ASSERT(anchorNode->isLink()); in pushAnchorElementDown()
766 setEndingSelection(VisibleSelection::selectionFromContentsOfNode(anchorNode)); in pushAnchorElementDown()
[all …]
DSelectionController.cpp158 if (s.base().anchorNode()) { in setSelection()
159 Document* document = s.base().anchorNode()->document(); in setSelection()
212 if (!position.anchorNode()) in removingNodeRemovesPosition()
215 if (position.anchorNode() == node) in removingNodeRemovesPosition()
222 …return element->contains(position.anchorNode()) || element->contains(position.anchorNode()->shadow… in removingNodeRemovesPosition()
270 RefPtr<Document> document = m_selection.start().anchorNode()->document(); in respondToNodeModification()
284 …if (!position.anchorNode() || position.anchorNode() != node || position.anchorType() != Position::… in shouldRemovePositionAfterAdoptingTextReplacement()
962 Frame* frame = pos.anchorNode()->document()->frame(); in xPosForVerticalArrowNavigation()
1039 …if (isNone() || !m_selection.start().anchorNode()->inDocument() || !m_selection.end().anchorNode()… in updateCaretRect()
1044 m_selection.start().anchorNode()->document()->updateStyleIfNeeded(); in updateCaretRect()
[all …]
DDeleteSelectionCommand.cpp88 : CompositeEditCommand(selection.start().anchorNode()->document()), in DeleteSelectionCommand()
328 if (node->contains(position.anchorNode())) in updatePositionForNodeRemoval()
332 if (node->contains(position.anchorNode())) in updatePositionForNodeRemoval()
517 …)->isDescendantOf(m_downstreamEnd.deprecatedNode()) && m_downstreamEnd.anchorNode()->inDocument() … in handleGeneralDelete()
534 … } else if (!(startNodeWasDescendantOfEndNode && !m_upstreamStart.anchorNode()->inDocument())) { in handleGeneralDelete()
586 if (!m_downstreamEnd.anchorNode()->inDocument() || !m_upstreamStart.anchorNode()->inDocument()) in mergeParagraphs()
DSetSelectionCommand.cpp34 : SimpleEditCommand(selection.base().anchorNode()->document()) in SetSelectionCommand()
DInsertTextCommand.cpp53 if (isTabSpanTextNode(pos.anchorNode())) { in positionInsideTextNode()
146 if (!startPosition.anchorNode()->inDocument()) in input()
Dhtmlediting.cpp998 if (position.anchorNode()->hasTagName(brTag) && position.atFirstEditingPositionForNode()) in lineBreakExistsAtPosition()
1001 if (!position.anchorNode()->renderer()) in lineBreakExistsAtPosition()
1004 …if (!position.anchorNode()->isTextNode() || !position.anchorNode()->renderer()->style()->preserveN… in lineBreakExistsAtPosition()
1007 Text* textNode = static_cast<Text*>(position.anchorNode()); in lineBreakExistsAtPosition()
1046 …RefPtr<Range> range = Range::create(p.anchorNode()->document(), firstPositionInNode(p.anchorNode()… in indexForVisiblePosition()
DIndentOutdentCommand.cpp208 …if (endAfterSelection.isNotNull() && !endAfterSelection.deepEquivalent().anchorNode()->inDocument(… in outdentRegion()
211 …if (endOfNextParagraph.isNotNull() && !endOfNextParagraph.deepEquivalent().anchorNode()->inDocumen… in outdentRegion()
DModifySelectionListLevel.cpp55 Node* startListChild = enclosingListChild(selection.start().anchorNode()); in getStartEndListChildren()
60 …Node* endListChild = selection.isRange() ? enclosingListChild(selection.end().anchorNode()) : star… in getStartEndListChildren()
DApplyBlockElementCommand.cpp137 …if (endAfterSelection.isNotNull() && !endAfterSelection.deepEquivalent().anchorNode()->inDocument(… in formatSelection()
141 …if (endOfNextParagraph.isNotNull() && !endOfNextParagraph.deepEquivalent().anchorNode()->inDocumen… in formatSelection()
/external/webkit/Source/WebCore/accessibility/win/
DAXObjectCacheWin.cpp55 void AXObjectCache::handleScrolledToAnchor(const Node* anchorNode) in handleScrolledToAnchor() argument
59 …postPlatformNotification(AccessibilityObject::firstAccessibleObjectFromNode(anchorNode), AXScrolle… in handleScrolledToAnchor()
/external/webkit/Source/WebCore/accessibility/chromium/
DAXObjectCacheChromium.cpp121 void AXObjectCache::handleScrolledToAnchor(const Node* anchorNode) in handleScrolledToAnchor() argument
125 …postPlatformNotification(AccessibilityObject::firstAccessibleObjectFromNode(anchorNode), AXScrolle… in handleScrolledToAnchor()
/external/webkit/Source/WebCore/page/
DFrameView.cpp1430 Element* anchorNode = m_frame->document()->findAnchor(name); in scrollToAnchor() local
1442 if (anchorNode && anchorNode->hasTagName(SVGNames::viewTag)) { in scrollToAnchor()
1443 …fPtr<SVGViewElement> viewElement = anchorNode->hasTagName(SVGNames::viewTag) ? static_cast<SVGView… in scrollToAnchor()
1458 m_frame->document()->setCSSTarget(anchorNode); // Setting to null will clear the current target. in scrollToAnchor()
1461 if (!anchorNode && !(name.isEmpty() || equalIgnoringCase(name, "top"))) in scrollToAnchor()
1464 … maintainScrollPositionAtAnchor(anchorNode ? static_cast<Node*>(anchorNode) : m_frame->document()); in scrollToAnchor()
1468 void FrameView::maintainScrollPositionAtAnchor(Node* anchorNode) in maintainScrollPositionAtAnchor() argument
1470 m_maintainScrollPositionAnchor = anchorNode; in maintainScrollPositionAtAnchor()
1937 RefPtr<Node> anchorNode = m_maintainScrollPositionAnchor; in scrollToAnchor() local
1938 if (!anchorNode) in scrollToAnchor()
[all …]
DDOMSelection.h70 Node* anchorNode() const;
DDOMSelection.cpp46 Node* node = frame->selection()->selection().base().anchorNode(); in selectionShadowAncestor()
98 Node* DOMSelection::anchorNode() const in anchorNode() function in WebCore::DOMSelection
DDOMSelection.idl35 readonly attribute Node anchorNode;
/external/webkit/Source/WebKit/android/jni/
DWebViewCore.cpp1571 Node* node = pos.anchorNode(); in setSelectionCaretInfo()
1608 || !selection.start().anchorNode() in createSelectText()
1609 || !selection.start().anchorNode()->renderer() in createSelectText()
1610 || !selection.end().anchorNode() in createSelectText()
1611 || !selection.end().anchorNode()->renderer()) in createSelectText()
1712 Node* node = pos.anchorNode(); in trimSelectionPosition()
2307 Node* anchorNode = selection->anchorNode(); in modifySelectionTextNavigationAxis() local
2308 if (anchorNode->isElementNode()) { in modifySelectionTextNavigationAxis()
2325 anchorNode = selection->anchorNode(); in modifySelectionTextNavigationAxis()
2326 if (anchorNode->isTextNode()) { in modifySelectionTextNavigationAxis()
[all …]
/external/webkit/LayoutTests/fast/dom/Selection/script-tests/
DgetRangeAt.js18 debug("anchorNode: " + sel.anchorNode);
/external/chromium-trace/src/shared/js/cr/ui/
Dbubble.js109 set anchorNode(node) { setter in Bubble
Dexpandable_bubble.js67 set anchorNode(node) { setter in ExpandableBubble
/external/webkit/Source/WebCore/accessibility/
DAXObjectCache.h94 void handleScrolledToAnchor(const Node* anchorNode);

12