unsigned DOMSelection::focusOffset() const { if (!m_frame) return 0; return shadowAdjustedOffset(focusPosition(visibleSelection())); }
Node* DOMSelection::focusNode() const { if (!m_frame) return 0; return shadowAdjustedNode(focusPosition(visibleSelection())); }
int DOMSelection::focusOffset() const { if (!m_frame) return 0; if (Node* shadowAncestor = selectionShadowAncestor(m_frame)) return shadowAncestor->nodeIndex(); return focusPosition(visibleSelection()).deprecatedEditingOffset(); }
Node* DOMSelection::focusNode() const { if (!m_frame) return 0; if (Node* shadowAncestor = selectionShadowAncestor(m_frame)) return shadowAncestor->parentNode(); return focusPosition(visibleSelection()).node(); }
int DOMSelection::focusOffset() const { if (!m_frame) return 0; if (Node* shadowAncestor = selectionShadowAncestor(m_frame)) return shadowAncestor->nodeIndex(); return focusPosition(visibleSelection()).offsetInContainerNode(); }
Node* DOMSelection::focusNode() const { if (!m_frame) return 0; if (Node* shadowAncestor = selectionShadowAncestor(m_frame)) return shadowAncestor->parentNodeGuaranteedHostFree(); return focusPosition(visibleSelection()).containerNode(); }
int DOMSelection::focusOffset() const { if (!isAvailable()) return 0; return shadowAdjustedOffset(focusPosition(visibleSelection())); }