Index: Source/core/editing/ApplyStyleCommand.cpp |
diff --git a/Source/core/editing/ApplyStyleCommand.cpp b/Source/core/editing/ApplyStyleCommand.cpp |
index d773b8a65df4093f87f81c55a301d08369d01a52..198c63df23e9d8b7cd23fa92c5fbbba57b78cb9b 100644 |
--- a/Source/core/editing/ApplyStyleCommand.cpp |
+++ b/Source/core/editing/ApplyStyleCommand.cpp |
@@ -414,7 +414,7 @@ void ApplyStyleCommand::applyRelativeFontStyleChange(EditingStyle* style) |
RefPtrWillBeRawPtr<MutableStylePropertySet> inlineStyle = copyStyleOrCreateEmpty(element->inlineStyle()); |
float currentFontSize = computedFontSize(node); |
float desiredFontSize = max(MinimumFontSize, startingFontSizes.get(node) + style->fontSizeDelta()); |
- NullableCSSValue value = inlineStyle->getPropertyCSSValue(CSSPropertyFontSize); |
+ const NullableCSSValue& value = inlineStyle->getPropertyCSSValue(CSSPropertyFontSize); |
if (value) { |
element->removeInlineStyleProperty(CSSPropertyFontSize); |
currentFontSize = computedFontSize(node); |
@@ -1548,7 +1548,7 @@ float ApplyStyleCommand::computedFontSize(Node* node) |
if (!value) |
return 0; |
- CSSPrimitiveValue& primitiveValue = toCSSPrimitiveValue(*value); |
+ const CSSPrimitiveValue& primitiveValue = toCSSPrimitiveValue(value); |
ASSERT(primitiveValue.primitiveType() == CSSPrimitiveValue::CSS_PX); |
return primitiveValue.getFloatValue(); |
} |