| Index: Source/core/editing/ApplyStyleCommand.cpp
|
| diff --git a/Source/core/editing/ApplyStyleCommand.cpp b/Source/core/editing/ApplyStyleCommand.cpp
|
| index 43cc1ddea1e2dba61ed6d74fadb53a9ba138cbb5..ba5921b27ed347392278d6a89e1537a072cefd07 100644
|
| --- a/Source/core/editing/ApplyStyleCommand.cpp
|
| +++ b/Source/core/editing/ApplyStyleCommand.cpp
|
| @@ -759,10 +759,12 @@ void ApplyStyleCommand::applyInlineStyleToNodeRange(EditingStyle* style, PassRef
|
| break;
|
| // Add to this element's inline style and skip over its contents.
|
| HTMLElement* element = toHTMLElement(node.get());
|
| + next = NodeTraversal::nextSkippingChildren(node.get());
|
| + if (!style->style())
|
| + continue;
|
| RefPtr<MutableStylePropertySet> inlineStyle = copyStyleOrCreateEmpty(element->inlineStyle());
|
| inlineStyle->mergeAndOverrideOnConflict(style->style());
|
| setNodeAttribute(element, styleAttr, inlineStyle->asText());
|
| - next = NodeTraversal::nextSkippingChildren(node.get());
|
| continue;
|
| }
|
|
|
|
|