#include "config.h"
#include "core/editing/DeleteFromTextNodeCommand.h"
-#include "bindings/v8/ExceptionState.h"
-#include "bindings/v8/ExceptionStatePlaceholder.h"
-#include "core/dom/Document.h"
+#include "bindings/core/v8/ExceptionState.h"
+#include "bindings/core/v8/ExceptionStatePlaceholder.h"
#include "core/dom/Text.h"
-namespace WebCore {
+namespace blink {
DeleteFromTextNodeCommand::DeleteFromTextNodeCommand(PassRefPtrWillBeRawPtr<Text> node, unsigned offset, unsigned count)
: SimpleEditCommand(node->document())
{
ASSERT(m_node);
- if (!m_node->rendererIsEditable())
+ if (!m_node->hasEditableStyle())
return;
m_node->insertData(m_offset, m_text, IGNORE_EXCEPTION, CharacterData::DeprecatedRecalcStyleImmediatlelyForEditing);
SimpleEditCommand::trace(visitor);
}
-} // namespace WebCore
+} // namespace blink