Index: Source/core/editing/ApplyStyleCommand.cpp |
diff --git a/Source/core/editing/ApplyStyleCommand.cpp b/Source/core/editing/ApplyStyleCommand.cpp |
index f4d8e7e28b50f996ef0752510211b3ef0af188e8..4a8dd4cbe052fdaee53bab44f1d3bbf667e0e7e7 100644 |
--- a/Source/core/editing/ApplyStyleCommand.cpp |
+++ b/Source/core/editing/ApplyStyleCommand.cpp |
@@ -393,7 +393,7 @@ void ApplyStyleCommand::applyRelativeFontStyleChange(EditingStyle* style) |
} |
lastStyledNode = node; |
- RefPtr<StylePropertySet> inlineStyle = copyStyleOrCreateEmpty(element->inlineStyle()); |
+ RefPtr<MutableStylePropertySet> inlineStyle = copyStyleOrCreateEmpty(element->inlineStyle()); |
float currentFontSize = computedFontSize(node); |
float desiredFontSize = max(MinimumFontSize, startingFontSizes.get(node) + style->fontSizeDelta()); |
RefPtr<CSSValue> value = inlineStyle->getPropertyCSSValue(CSSPropertyFontSize); |
@@ -520,7 +520,7 @@ void ApplyStyleCommand::removeEmbeddingUpToEnclosingBlock(Node* node, Node* unsp |
// other attributes, like we (should) do with B and I elements. |
removeNodeAttribute(element, dirAttr); |
} else { |
- RefPtr<StylePropertySet> inlineStyle = copyStyleOrCreateEmpty(element->inlineStyle()); |
+ RefPtr<MutableStylePropertySet> inlineStyle = copyStyleOrCreateEmpty(element->inlineStyle()); |
inlineStyle->setProperty(CSSPropertyUnicodeBidi, CSSValueNormal); |
inlineStyle->removeProperty(CSSPropertyDirection); |
setNodeAttribute(element, styleAttr, inlineStyle->asText()); |
@@ -764,7 +764,7 @@ void ApplyStyleCommand::applyInlineStyleToNodeRange(EditingStyle* style, PassRef |
break; |
// Add to this element's inline style and skip over its contents. |
HTMLElement* element = toHTMLElement(node.get()); |
- RefPtr<StylePropertySet> inlineStyle = copyStyleOrCreateEmpty(element->inlineStyle()); |
+ RefPtr<MutableStylePropertySet> inlineStyle = copyStyleOrCreateEmpty(element->inlineStyle()); |
inlineStyle->mergeAndOverrideOnConflict(style->style()); |
setNodeAttribute(element, styleAttr, inlineStyle->asText()); |
next = NodeTraversal::nextSkippingChildren(node.get()); |