Index: Source/core/editing/EditingStyle.cpp |
diff --git a/Source/core/editing/EditingStyle.cpp b/Source/core/editing/EditingStyle.cpp |
index 50e98347c5d2b4934a1b350f3c88a31c9586f998..3e72ea0a39c06fcab374faafa8306f60d0c4ec0a 100644 |
--- a/Source/core/editing/EditingStyle.cpp |
+++ b/Source/core/editing/EditingStyle.cpp |
@@ -1035,11 +1035,13 @@ void EditingStyle::mergeInlineAndImplicitStyleOfElement(Element* element, CSSPro |
{ |
RefPtrWillBeRawPtr<EditingStyle> styleFromRules = EditingStyle::create(); |
styleFromRules->mergeStyleFromRulesForSerialization(element); |
+ |
+ if (element->inlineStyle()) |
+ styleFromRules->m_mutableStyle->mergeAndOverrideOnConflict(element->inlineStyle()); |
+ |
styleFromRules->m_mutableStyle = extractEditingProperties(styleFromRules->m_mutableStyle.get(), propertiesToInclude); |
mergeStyle(styleFromRules->m_mutableStyle.get(), mode); |
- mergeInlineStyleOfElement(element, mode, propertiesToInclude); |
- |
const WillBeHeapVector<OwnPtrWillBeMember<HTMLElementEquivalent> >& elementEquivalents = htmlElementEquivalents(); |
for (size_t i = 0; i < elementEquivalents.size(); ++i) { |
if (elementMatchesAndPropertyIsNotInInlineStyleDecl(elementEquivalents[i].get(), element, mode, m_mutableStyle.get())) |