| Index: third_party/WebKit/Source/core/editing/commands/MergeIdenticalElementsCommand.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/commands/MergeIdenticalElementsCommand.cpp b/third_party/WebKit/Source/core/editing/commands/MergeIdenticalElementsCommand.cpp
|
| index 809f89acb03ef616b6f5845faf40539840c152c9..3b1719d2494168b0c8f03f2816438a08c59b7c64 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/MergeIdenticalElementsCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/MergeIdenticalElementsCommand.cpp
|
| @@ -43,7 +43,7 @@ MergeIdenticalElementsCommand::MergeIdenticalElementsCommand(Element* first, Ele
|
|
|
| void MergeIdenticalElementsCommand::doApply(EditingState*)
|
| {
|
| - if (m_element1->nextSibling() != m_element2 || !m_element1->hasEditableStyle() || !m_element2->hasEditableStyle())
|
| + if (m_element1->nextSibling() != m_element2 || !hasEditableStyle(*m_element1) || !hasEditableStyle(*m_element2))
|
| return;
|
|
|
| m_atChild = m_element2->firstChild();
|
| @@ -65,7 +65,7 @@ void MergeIdenticalElementsCommand::doUnapply()
|
| Node* atChild = m_atChild.release();
|
|
|
| ContainerNode* parent = m_element2->parentNode();
|
| - if (!parent || !parent->hasEditableStyle())
|
| + if (!parent || !hasEditableStyle(*parent))
|
| return;
|
|
|
| TrackExceptionState exceptionState;
|
|
|