Index: third_party/WebKit/Source/core/editing/commands/SplitElementCommand.cpp |
diff --git a/third_party/WebKit/Source/core/editing/commands/SplitElementCommand.cpp b/third_party/WebKit/Source/core/editing/commands/SplitElementCommand.cpp |
index 8181f84fb399f36087d5bb56dd1ebb1516cbbab9..bc3649454e1eadbda94209c93718811d789d3378 100644 |
--- a/third_party/WebKit/Source/core/editing/commands/SplitElementCommand.cpp |
+++ b/third_party/WebKit/Source/core/editing/commands/SplitElementCommand.cpp |
@@ -55,7 +55,7 @@ void SplitElementCommand::executeApply() |
TrackExceptionState exceptionState; |
ContainerNode* parent = m_element2->parentNode(); |
- if (!parent || !parent->hasEditableStyle()) |
+ if (!parent || !hasEditableStyle(*parent)) |
return; |
parent->insertBefore(m_element1.get(), m_element2.get(), exceptionState); |
if (exceptionState.hadException()) |
@@ -77,7 +77,7 @@ void SplitElementCommand::doApply(EditingState*) |
void SplitElementCommand::doUnapply() |
{ |
- if (!m_element1 || !m_element1->hasEditableStyle() || !m_element2->hasEditableStyle()) |
+ if (!m_element1 || !hasEditableStyle(*m_element1) || !hasEditableStyle(*m_element2)) |
return; |
NodeVector children; |