#include "config.h"
#include "core/editing/InsertIntoTextNodeCommand.h"
-#include "bindings/v8/ExceptionStatePlaceholder.h"
+#include "bindings/core/v8/ExceptionStatePlaceholder.h"
#include "core/dom/Document.h"
#include "core/dom/Text.h"
#include "core/frame/Settings.h"
#include "core/rendering/RenderText.h"
-namespace WebCore {
+namespace blink {
InsertIntoTextNodeCommand::InsertIntoTextNodeCommand(PassRefPtrWillBeRawPtr<Text> node, unsigned offset, const String& text)
: SimpleEditCommand(node->document())
if (passwordEchoEnabled)
document().updateLayoutIgnorePendingStylesheets();
- if (!m_node->rendererIsEditable())
+ if (!m_node->hasEditableStyle())
return;
if (passwordEchoEnabled) {
- RenderText* renderText = toRenderText(m_node->renderer());
+ RenderText* renderText = m_node->renderer();
if (renderText && renderText->isSecure())
renderText->momentarilyRevealLastTypedCharacter(m_offset + m_text.length() - 1);
}
void InsertIntoTextNodeCommand::doUnapply()
{
- if (!m_node->rendererIsEditable())
+ if (!m_node->hasEditableStyle())
return;
m_node->deleteData(m_offset, m_text.length(), IGNORE_EXCEPTION, CharacterData::DeprecatedRecalcStyleImmediatlelyForEditing);
SimpleEditCommand::trace(visitor);
}
-} // namespace WebCore
+} // namespace blink