Index: Source/core/editing/ApplyStyleCommand.cpp |
diff --git a/Source/core/editing/ApplyStyleCommand.cpp b/Source/core/editing/ApplyStyleCommand.cpp |
index cdeb208a108bb36141bb389e5fb3119a78e28513..fd5e285c6f4a2c5159022c0ec71b11639803d953 100644 |
--- a/Source/core/editing/ApplyStyleCommand.cpp |
+++ b/Source/core/editing/ApplyStyleCommand.cpp |
@@ -892,8 +892,8 @@ bool ApplyStyleCommand::removeInlineStyleFromElement(EditingStyle* style, PassRe |
if (isStyledInlineElementToRemove(element.get())) { |
if (mode == RemoveNone) |
return true; |
- ASSERT(extractedStyle); |
- extractedStyle->mergeInlineStyleOfElement(element.get(), EditingStyle::OverrideValues); |
+ if (extractedStyle) |
+ extractedStyle->mergeInlineStyleOfElement(element.get(), EditingStyle::OverrideValues); |
removeNodePreservingChildren(element); |
return true; |
} |