Home | History | Annotate | Download | only in dom

Lines Matching refs:m_anchorNode

83     : m_anchorNode(anchorNode)
85 , m_anchorType(anchorTypeForLegacyEditingPosition(m_anchorNode.get(), m_offset))
88 ASSERT(!m_anchorNode || !m_anchorNode->isPseudoElement());
92 : m_anchorNode(anchorNode)
97 ASSERT(!m_anchorNode || !m_anchorNode->isPseudoElement());
101 && (m_anchorNode->isTextNode() || editingIgnoresContent(m_anchorNode.get()))));
105 : m_anchorNode(anchorNode)
110 ASSERT(!m_anchorNode || !m_anchorNode->isPseudoElement());
116 : m_anchorNode(textNode)
121 ASSERT(m_anchorNode);
128 m_anchorNode = node;
131 m_anchorType = anchorTypeForLegacyEditingPosition(m_anchorNode.get(), m_offset);
138 m_anchorType = anchorTypeForLegacyEditingPosition(m_anchorNode.get(), m_offset);
143 if (!m_anchorNode)
150 return m_anchorNode.get();
153 return m_anchorNode->parentNode();
163 return m_anchorNode && m_anchorNode->isTextNode() ? toText(m_anchorNode) : 0;
169 ASSERT(!m_anchorNode || !m_anchorNode->isTextNode());
178 if (!m_anchorNode)
185 return lastOffsetInNode(m_anchorNode.get());
187 return minOffsetForNode(m_anchorNode.get(), m_offset);
189 return m_anchorNode->nodeIndex();
191 return m_anchorNode->nodeIndex() + 1;
201 return lastOffsetForEditing(m_anchorNode.get());
208 if (!m_anchorNode)
213 if (m_anchorNode->parentNode() && (editingIgnoresContent(m_anchorNode.get()) || isRenderedTableElement(m_anchorNode.get())))
214 return positionInParentBeforeNode(*m_anchorNode);
215 return Position(m_anchorNode.get(), 0, PositionIsOffsetInAnchor);
217 if (!m_anchorNode->offsetInCharacters()
218 && (m_anchorType == PositionIsAfterAnchor || m_anchorType == PositionIsAfterChildren || static_cast<unsigned>(m_offset) == m_anchorNode->countChildren())
219 && (editingIgnoresContent(m_anchorNode.get()) || isRenderedTableElement(m_anchorNode.get()))
221 return positionInParentAfterNode(*m_anchorNode);
229 if (!m_anchorNode)
235 return m_anchorNode->lastChild();
237 return m_anchorNode->traverseToChildAt(m_offset - 1); // -1 converts to traverseToChildAt((unsigned)-1) and returns null.
239 return m_anchorNode->previousSibling();
241 return m_anchorNode.get();
249 if (!m_anchorNode)
254 return m_anchorNode->firstChild();
258 return m_anchorNode->traverseToChildAt(m_offset);
260 return m_anchorNode.get();
262 return m_anchorNode->nextSibling();
425 if (!m_anchorNode)
428 Node* documentElement = m_anchorNode->document().documentElement();
432 Node* boundary = m_anchorNode.get();
433 while (boundary != documentElement && boundary->nonShadowBoundaryParentNode() && m_anchorNode->rendererIsEditable() == boundary->parentNode()->rendererIsEditable())
567 PositionIterator lastVisible = m_anchorType == PositionIsAfterAnchor ? createLegacyEditingPosition(m_anchorNode.get(), caretMaxOffset(m_anchorNode.get())) : *this;
690 PositionIterator lastVisible = m_anchorType == PositionIsAfterAnchor ? createLegacyEditingPosition(m_anchorNode.get(), caretMaxOffset(m_anchorNode.get())) : *this;
876 if (isHTMLHtmlElement(*m_anchorNode))
880 if (toRenderBlock(renderer)->logicalHeight() || isHTMLBodyElement(*m_anchorNode)) {
883 return m_anchorNode->rendererIsEditable() && !Position::nodeIsUserSelectNone(deprecatedNode()) && atEditingBoundary();
886 LocalFrame* frame = m_anchorNode->document().frame();
888 return (caretBrowsing || m_anchorNode->rendererIsEditable()) && !Position::nodeIsUserSelectNone(deprecatedNode()) && atEditingBoundary();
1268 if (m_anchorNode->selfOrAncestorHasDirAutoAttribute())
1287 m_anchorNode->renderer(); r; r = r->parent()) {
1299 visitor->trace(m_anchorNode);