Esempio n. 1
0
void AppendNodeCommand::doUnapply()
{
    if (!m_parent->hasEditableStyle())
        return;

    // Need to notify this before actually deleting the text
    sendAXTextChangedIgnoringLineBreaks(m_node.get(), unapplyEditType());

    m_node->remove(IGNORE_EXCEPTION);
}
void InsertNodeBeforeCommand::doUnapply()
{
    if (!isEditableNode(*m_insertChild))
        return;

    // Need to notify this before actually deleting the text
    if (shouldPostAccessibilityNotification()) {
        Position position = is<Text>(m_insertChild.get()) ? Position(downcast<Text>(m_insertChild.get()), 0) : createLegacyEditingPosition(m_insertChild.get(), 0);
        notifyAccessibilityForTextChange(m_insertChild.get(), unapplyEditType(), m_insertChild->nodeValue(), VisiblePosition(position));
    }

    m_insertChild->remove(IGNORE_EXCEPTION);
}