summaryrefslogtreecommitdiffstats
path: root/WebCore/editing/InsertNodeBeforeCommand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/editing/InsertNodeBeforeCommand.cpp')
-rw-r--r--WebCore/editing/InsertNodeBeforeCommand.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/WebCore/editing/InsertNodeBeforeCommand.cpp b/WebCore/editing/InsertNodeBeforeCommand.cpp
index c3acd9d..4f60963 100644
--- a/WebCore/editing/InsertNodeBeforeCommand.cpp
+++ b/WebCore/editing/InsertNodeBeforeCommand.cpp
@@ -40,7 +40,7 @@ InsertNodeBeforeCommand::InsertNodeBeforeCommand(PassRefPtr<Node> insertChild, P
ASSERT(m_refChild);
ASSERT(m_refChild->parentNode());
- ASSERT(enclosingNodeOfType(Position(m_refChild->parentNode(), 0), isContentEditable) || !m_refChild->parentNode()->attached());
+ ASSERT(m_refChild->parentNode()->isContentEditable() || !m_refChild->parentNode()->attached());
}
void InsertNodeBeforeCommand::doApply()