Home | History | Annotate | Download | only in dom

Lines Matching refs:m_anchorNode

40         ASSERT(m_nodeAfterPositionInAnchor->parentNode() == m_anchorNode);
43 return positionBeforeNode(m_anchorNode);
46 if (m_anchorNode->hasChildren())
47 return lastPositionInOrAfterNode(m_anchorNode);
48 return createLegacyEditingPosition(m_anchorNode, m_offsetInAnchor);
53 if (!m_anchorNode)
57 m_anchorNode = m_nodeAfterPositionInAnchor;
58 m_nodeAfterPositionInAnchor = m_anchorNode->firstChild();
63 if (!m_anchorNode->hasChildren() && m_offsetInAnchor < lastOffsetForEditing(m_anchorNode))
64 m_offsetInAnchor = Position::uncheckedNextOffset(m_anchorNode, m_offsetInAnchor);
66 m_nodeAfterPositionInAnchor = m_anchorNode;
67 m_anchorNode = m_nodeAfterPositionInAnchor->parentNode();
75 if (!m_anchorNode)
79 m_anchorNode = m_nodeAfterPositionInAnchor->previousSibling();
80 if (m_anchorNode) {
82 m_offsetInAnchor = m_anchorNode->hasChildren() ? 0 : lastOffsetForEditing(m_anchorNode);
85 m_anchorNode = m_nodeAfterPositionInAnchor->parentNode();
91 if (m_anchorNode->hasChildren()) {
92 m_anchorNode = m_anchorNode->lastChild();
93 m_offsetInAnchor = m_anchorNode->hasChildren()? 0: lastOffsetForEditing(m_anchorNode);
96 m_offsetInAnchor = Position::uncheckedPreviousOffset(m_anchorNode, m_offsetInAnchor);
98 m_nodeAfterPositionInAnchor = m_anchorNode;
99 m_anchorNode = m_anchorNode->parentNode();
106 if (!m_anchorNode)
108 if (m_anchorNode->parentNode())
110 return (!m_anchorNode->hasChildren() && !m_offsetInAnchor) || (m_nodeAfterPositionInAnchor && !m_nodeAfterPositionInAnchor->previousSibling());
115 if (!m_anchorNode)
119 return !m_anchorNode->parentNode() && (m_anchorNode->hasChildren() || m_offsetInAnchor >= lastOffsetForEditing(m_anchorNode));
124 if (!m_anchorNode)
127 return !m_anchorNode->hasChildren() && !m_offsetInAnchor;
133 if (!m_anchorNode)
137 return m_anchorNode->hasChildren() || m_offsetInAnchor >= lastOffsetForEditing(m_anchorNode);
142 if (!m_anchorNode)
145 RenderObject* renderer = m_anchorNode->renderer();
154 // |(!m_anchorNode->hasChildren() || m_nodeAfterPositionInAnchor)|
163 return !m_offsetInAnchor && (!m_anchorNode->hasChildren() || m_nodeAfterPositionInAnchor) && !Position::nodeIsUserSelectNone(m_anchorNode->parentNode());
166 return !Position::nodeIsUserSelectNone(m_anchorNode) && Position(*this).inRenderedText();
174 if (isRenderedTableElement(m_anchorNode) || editingIgnoresContent(m_anchorNode))
175 return (atStartOfNode() || atEndOfNode()) && !Position::nodeIsUserSelectNone(m_anchorNode->parentNode());
177 if (!isHTMLHtmlElement(*m_anchorNode) && renderer->isRenderBlockFlow()) {
178 if (toRenderBlock(renderer)->logicalHeight() || isHTMLBodyElement(*m_anchorNode)) {
180 return atStartOfNode() && !Position::nodeIsUserSelectNone(m_anchorNode);
181 return m_anchorNode->rendererIsEditable() && !Position::nodeIsUserSelectNone(m_anchorNode) && Position(*this).atEditingBoundary();