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

12

/external/chromium_org/third_party/WebKit/Source/core/dom/
H A DPosition.h82 Position(PassRefPtr<Node> anchorNode, LegacyEditingOffset);
85 Position(PassRefPtr<Node> anchorNode, AnchorType);
90 Position(PassRefPtr<Node> anchorNode, int offset, AnchorType);
123 Node* anchorNode() const { return m_anchorNode.get(); } function in class:WebCore::Position
139 void moveToPosition(PassRefPtr<Node> anchorNode, int offset);
214 static AnchorType anchorTypeForLegacyEditingPosition(Node* anchorNode, int offset);
234 return a.anchorNode() == b.anchorNode() && a.deprecatedEditingOffset() == b.deprecatedEditingOffset() && a.anchorType() == b.anchorType();
262 inline Position positionBeforeNode(Node* anchorNode) argument
264 ASSERT(anchorNode);
268 positionAfterNode(Node* anchorNode) argument
280 firstPositionInNode(Node* anchorNode) argument
287 lastPositionInNode(Node* anchorNode) argument
294 minOffsetForNode(Node* anchorNode, int offset) argument
306 offsetIsBeforeLastNodeOffset(int offset, Node* anchorNode) argument
[all...]
H A DPositionIterator.h47 : m_anchorNode(pos.anchorNode())
H A DPosition.cpp81 Position::Position(PassRefPtr<Node> anchorNode, LegacyEditingOffset offset) argument
82 : m_anchorNode(anchorNode)
90 Position::Position(PassRefPtr<Node> anchorNode, AnchorType anchorType) argument
91 : m_anchorNode(anchorNode)
103 Position::Position(PassRefPtr<Node> anchorNode, int offset, AnchorType anchorType) argument
104 : m_anchorNode(anchorNode)
268 Position::AnchorType Position::anchorTypeForLegacyEditingPosition(Node* anchorNode, int offset) argument
270 if (anchorNode && editingIgnoresContent(anchorNode)) {
278 // FIXME: This method is confusing (does it return anchorNode() o
[all...]
/external/chromium_org/third_party/WebKit/Source/core/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())
71 if (!pos.anchorNode()->inDocument()) {
H A DSetSelectionCommand.cpp35 : SimpleEditCommand(selection.base().anchorNode()->document())
H A DVisibleSelection.cpp136 return Range::create(start.anchorNode()->document(), start, end);
148 m_start.anchorNode()->document()->updateLayout();
192 return Range::create(s.anchorNode()->document(), s, e);
509 if (m_start.anchorNode()->treeScope() == m_end.anchorNode()->treeScope())
520 ASSERT(m_start.anchorNode()->treeScope() == m_end.anchorNode()->treeScope());
682 if (!m_start.anchorNode())
685 fprintf(stderr, "pos: %s ", m_start.anchorNode()->nodeName().utf8().data());
688 fprintf(stderr, "start: %s ", m_start.anchorNode()
[all...]
H A DCaret.cpp83 if (!position.anchorNode())
86 if (position.anchorNode() == node)
93 return element->containsIncludingShadowDOM(position.anchorNode());
98 RefPtr<Document> document = position.anchorNode()->document();
H A DRenderedPosition.cpp48 rendererNode = position.anchorNode()->lastChild();
56 rendererNode = position.anchorNode()->firstChild();
59 rendererNode = position.anchorNode()->lastChild();
63 rendererNode = position.anchorNode();
H A DCompositeEditCommand.cpp532 if (!isTabSpanTextNode(pos.anchorNode()))
543 return positionInParentBeforeNode(pos.anchorNode());
545 return positionInParentAfterNode(pos.anchorNode());
882 if (p.anchorNode()->hasTagName(brTag)) {
883 removeNode(p.anchorNode());
887 deleteTextFromNode(toText(p.anchorNode()), p.offsetInContainerNode(), 1);
961 void CompositeEditCommand::pushAnchorElementDown(Node* anchorNode) argument
963 if (!anchorNode)
966 ASSERT(anchorNode->isLink());
968 setEndingSelection(VisibleSelection::selectionFromContentsOfNode(anchorNode));
[all...]
H A Dhtmlediting.cpp964 if (node->containsIncludingShadowDOM(position.anchorNode()))
968 if (node->containsIncludingShadowDOM(position.anchorNode()))
1010 if (position.anchorNode()->hasTagName(brTag) && position.atFirstEditingPositionForNode())
1013 if (!position.anchorNode()->renderer())
1016 if (!position.anchorNode()->isTextNode() || !position.anchorNode()->renderer()->style()->preserveNewline())
1019 Text* textNode = toText(position.anchorNode());
1064 Document* document = p.anchorNode()->document();
1065 ShadowRoot* shadowRoot = p.anchorNode()->containingShadowRoot();
H A DDeleteSelectionCommand.cpp89 : CompositeEditCommand(selection.start().anchorNode()->document())
291 if (shouldNotInheritStyleFrom(*m_selectionToDelete.start().anchorNode()))
535 if (m_downstreamEnd.deprecatedNode() != startNode && !m_upstreamStart.deprecatedNode()->isDescendantOf(m_downstreamEnd.deprecatedNode()) && m_downstreamEnd.anchorNode()->inDocument() && m_downstreamEnd.deprecatedEditingOffset() >= caretMinOffset(m_downstreamEnd.deprecatedNode())) {
552 } else if (!(startNodeWasDescendantOfEndNode && !m_upstreamStart.anchorNode()->inDocument())) {
604 if (!m_downstreamEnd.anchorNode()->inDocument() || !m_upstreamStart.anchorNode()->inDocument())
751 if (node == m_endingPosition.anchorNode())
755 node = m_endingPosition.anchorNode();
H A DIndentOutdentCommand.cpp209 if (endAfterSelection.isNotNull() && !endAfterSelection.deepEquivalent().anchorNode()->inDocument())
212 if (endOfNextParagraph.isNotNull() && !endOfNextParagraph.deepEquivalent().anchorNode()->inDocument()) {
H A DInsertTextCommand.cpp59 if (isTabSpanTextNode(pos.anchorNode())) {
178 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 DFrameSelection.cpp242 if (s.base().anchorNode()) {
243 Document* document = s.base().anchorNode()->document();
307 if (!position.anchorNode())
310 if (position.anchorNode() == node)
317 return element->containsIncludingShadowDOM(position.anchorNode());
322 RefPtr<Document> document = position.anchorNode()->document();
391 if (!position.anchorNode() || position.anchorNode() != node || position.anchorType() != Position::PositionIsOffsetInAnchor)
562 if (Node* rootUserSelectAll = Position::rootUserSelectAllForNode(pos.deepEquivalent().anchorNode()))
1117 Frame* frame = pos.anchorNode()
[all...]
H A DApplyBlockElementCommand.cpp145 if (endAfterSelection.isNotNull() && !endAfterSelection.deepEquivalent().anchorNode()->inDocument())
149 if (endOfNextParagraph.isNotNull() && !endOfNextParagraph.deepEquivalent().anchorNode()->inDocument()) {
H A DInputMethodController.cpp318 Node* baseNode = base.anchorNode();
325 if (!baseNode || baseNode != m_frame->selection()->extent().anchorNode())
/external/chromium_org/third_party/WebKit/Source/core/inspector/
H A DDOMEditor.h52 bool insertBefore(Node* parentNode, PassRefPtr<Node>, Node* anchorNode, ExceptionState&);
61 bool insertBefore(Node* parentNode, PassRefPtr<Node>, Node* anchorNode, ErrorString*);
H A DDOMEditor.cpp86 InsertBeforeAction(Node* parentNode, PassRefPtr<Node> node, Node* anchorNode) argument
90 , m_anchorNode(anchorNode)
360 bool DOMEditor::insertBefore(Node* parentNode, PassRefPtr<Node> node, Node* anchorNode, ExceptionState& es) argument
362 return m_history->perform(adoptPtr(new InsertBeforeAction(parentNode, node, anchorNode)), es);
411 bool DOMEditor::insertBefore(Node* parentNode, PassRefPtr<Node> node, Node* anchorNode, ErrorString* errorString) argument
414 bool result = insertBefore(parentNode, node, anchorNode, es);
/external/chromium_org/third_party/WebKit/Source/core/page/
H A DDOMSelection.h73 Node* anchorNode() const;
H A DSelection.idl35 readonly attribute Node anchorNode;
H A DFrameView.cpp1486 Element* anchorNode = m_frame->document()->findAnchor(name); local
1489 m_frame->document()->setCSSTarget(anchorNode);
1493 svg->setupInitialView(name, anchorNode);
1494 if (!anchorNode)
1500 if (!anchorNode && !(name.isEmpty() || equalIgnoringCase(name, "top")))
1503 maintainScrollPositionAtAnchor(anchorNode ? static_cast<Node*>(anchorNode) : m_frame->document());
1506 if (anchorNode && anchorNode->isFocusable())
1507 m_frame->document()->setFocusedElement(anchorNode);
1512 maintainScrollPositionAtAnchor(Node* anchorNode) argument
2090 RefPtr<Node> anchorNode = m_maintainScrollPositionAnchor; local
[all...]
/external/chromium_org/ui/webui/resources/js/cr/ui/
H A Dexpandable_bubble.js67 set anchorNode(node) {
/external/chromium_org/third_party/WebKit/Source/core/svg/
H A DSVGSVGElement.cpp682 void SVGSVGElement::setupInitialView(const String& fragmentIdentifier, Element* anchorNode) argument
717 if (anchorNode && anchorNode->hasTagName(SVGNames::viewTag)) {
718 if (SVGViewElement* viewElement = anchorNode->hasTagName(SVGNames::viewTag) ? static_cast<SVGViewElement*>(anchorNode) : 0) {
H A DSVGSVGElement.h123 void setupInitialView(const String& fragmentIdentifier, Element* anchorNode);

Completed in 274 milliseconds

12