Index: third_party/WebKit/Source/core/editing/commands/InsertNodeBeforeCommand.cpp |
diff --git a/third_party/WebKit/Source/core/editing/commands/InsertNodeBeforeCommand.cpp b/third_party/WebKit/Source/core/editing/commands/InsertNodeBeforeCommand.cpp |
index edcc46551bcf03d2922cd2b9ec77e8ec7eb076ef..4dcbbbd275d17fb44f3d13e2aa9eb11628d5e605 100644 |
--- a/third_party/WebKit/Source/core/editing/commands/InsertNodeBeforeCommand.cpp |
+++ b/third_party/WebKit/Source/core/editing/commands/InsertNodeBeforeCommand.cpp |
@@ -47,16 +47,16 @@ InsertNodeBeforeCommand::InsertNodeBeforeCommand(Node* insertChild, Node* refChi |
void InsertNodeBeforeCommand::doApply(EditingState*) |
{ |
ContainerNode* parent = m_refChild->parentNode(); |
- if (!parent || (m_shouldAssumeContentIsAlwaysEditable == DoNotAssumeContentIsAlwaysEditable && !parent->isContentEditable())) |
+ if (!parent || (m_shouldAssumeContentIsAlwaysEditable == DoNotAssumeContentIsAlwaysEditable && !isContentEditable(*parent))) |
return; |
- DCHECK(parent->isContentEditable()) << parent; |
+ DCHECK(isContentEditable(*parent)) << parent; |
parent->insertBefore(m_insertChild.get(), m_refChild.get(), IGNORE_EXCEPTION); |
} |
void InsertNodeBeforeCommand::doUnapply() |
{ |
- if (!m_insertChild->isContentEditable()) |
+ if (!isContentEditable(*m_insertChild)) |
return; |
m_insertChild->remove(IGNORE_EXCEPTION); |