| Index: Source/core/css/resolver/ViewportStyleResolver.cpp
|
| diff --git a/Source/core/css/resolver/ViewportStyleResolver.cpp b/Source/core/css/resolver/ViewportStyleResolver.cpp
|
| index 28035aa9a8f429ae7b90ba7a366200905b288637..fbfbc91fce7d4061e79872559c9430e0c77702d4 100644
|
| --- a/Source/core/css/resolver/ViewportStyleResolver.cpp
|
| +++ b/Source/core/css/resolver/ViewportStyleResolver.cpp
|
| @@ -137,11 +137,11 @@ float ViewportStyleResolver::viewportArgumentValue(CSSPropertyID id) const
|
| if (id == CSSPropertyUserZoom)
|
| defaultValue = 1;
|
|
|
| - NullableCSSValue value = m_propertySet->getPropertyCSSValue(id);
|
| + const NullableCSSValue& value = m_propertySet->getPropertyCSSValue(id);
|
| if (!value || !value->isPrimitiveValue())
|
| return defaultValue;
|
|
|
| - CSSPrimitiveValue primitiveValue = toCSSPrimitiveValue(*value);
|
| + const CSSPrimitiveValue& primitiveValue = toCSSPrimitiveValue(value);
|
|
|
| if (primitiveValue.isNumber() || primitiveValue.isPx())
|
| return primitiveValue.getFloatValue();
|
| @@ -187,11 +187,11 @@ Length ViewportStyleResolver::viewportLengthValue(CSSPropertyID id) const
|
| || id == CSSPropertyMaxWidth
|
| || id == CSSPropertyMinWidth);
|
|
|
| - NullableCSSValue value = m_propertySet->getPropertyCSSValue(id);
|
| + const NullableCSSValue& value = m_propertySet->getPropertyCSSValue(id);
|
| if (!value || !value->isPrimitiveValue())
|
| return Length(); // auto
|
|
|
| - CSSPrimitiveValue primitiveValue = toCSSPrimitiveValue(*value);
|
| + const CSSPrimitiveValue& primitiveValue = toCSSPrimitiveValue(value);
|
|
|
| if (primitiveValue.getValueID() == CSSValueInternalExtendToZoom)
|
| return Length(ExtendToZoom);
|
|
|