| Index: Source/core/editing/ApplyStyleCommand.cpp
|
| diff --git a/Source/core/editing/ApplyStyleCommand.cpp b/Source/core/editing/ApplyStyleCommand.cpp
|
| index a776b09a4cab0cbdeab0caae212435f6fbc85b38..605741114c689ce602c5f1ad3d62cbeab0ca31e4 100644
|
| --- a/Source/core/editing/ApplyStyleCommand.cpp
|
| +++ b/Source/core/editing/ApplyStyleCommand.cpp
|
| @@ -1448,7 +1448,7 @@ void ApplyStyleCommand::applyInlineStyleChange(PassRefPtrWillBeRawPtr<Node> pass
|
| if (isHTMLSpanElement(*containerElement) || (styleContainerIsNotSpan && containerElement->hasChildren()))
|
| styleContainer = toHTMLElement(container);
|
| }
|
| - if (!container->firstChild())
|
| + if (!container->hasChildren())
|
| break;
|
| startNode = container->firstChild();
|
| endNode = container->lastChild();
|
|
|