| Index: Source/WebCore/editing/ApplyStyleCommand.cpp
|
| ===================================================================
|
| --- Source/WebCore/editing/ApplyStyleCommand.cpp (revision 94880)
|
| +++ Source/WebCore/editing/ApplyStyleCommand.cpp (working copy)
|
| @@ -281,8 +281,8 @@
|
| if (newBlock)
|
| block = newBlock;
|
| }
|
| - ASSERT(block->isHTMLElement());
|
| - if (block->isHTMLElement()) {
|
| + ASSERT(!block || block->isHTMLElement());
|
| + if (block && block->isHTMLElement()) {
|
| removeCSSStyle(style, toHTMLElement(block.get()));
|
| if (!m_removeOnly)
|
| addBlockStyle(styleChange, toHTMLElement(block.get()));
|
|
|