Index: Source/core/editing/ApplyStyleCommand.cpp |
diff --git a/Source/core/editing/ApplyStyleCommand.cpp b/Source/core/editing/ApplyStyleCommand.cpp |
index cdeb208a108bb36141bb389e5fb3119a78e28513..0b9b5c4df12b8a26406cc42752aad801a7749774 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; |
} |