Index: Source/core/editing/ReplaceSelectionCommand.cpp |
diff --git a/Source/core/editing/ReplaceSelectionCommand.cpp b/Source/core/editing/ReplaceSelectionCommand.cpp |
index 4ea65b899b7e14de5815d9e9041576ad20cb6f28..8b8f99f1294b1b0e365e04c3fd0b0dbcf2b34957 100644 |
--- a/Source/core/editing/ReplaceSelectionCommand.cpp |
+++ b/Source/core/editing/ReplaceSelectionCommand.cpp |
@@ -484,6 +484,7 @@ void ReplaceSelectionCommand::removeRedundantStylesAndKeepStyleSpanInline(Insert |
// e.g. <b style="font-weight: normal;"> is converted to <span style="font-weight: normal;"> |
node = replaceElementWithSpanPreservingChildrenAndAttributes(htmlElement); |
element = toElement(node); |
+ inlineStyle = element->inlineStyle(); |
insertedNodes.didReplaceNode(*htmlElement, *node); |
} else if (newInlineStyle->extractConflictingImplicitStyleOfAttributes(htmlElement, EditingStyle::PreserveWritingDirection, 0, attributes, |
EditingStyle::DoNotExtractMatchingStyle)) { |