| Index: Source/core/css/CSSGradientValue.cpp
|
| diff --git a/Source/core/css/CSSGradientValue.cpp b/Source/core/css/CSSGradientValue.cpp
|
| index f46cbf59f0fe2534b06b0aa5f60a27bdfa8c6b98..6a83a0508afa9c9011c7e81227d6e8232910b942 100644
|
| --- a/Source/core/css/CSSGradientValue.cpp
|
| +++ b/Source/core/css/CSSGradientValue.cpp
|
| @@ -489,9 +489,9 @@ static float positionFromValue(CSSValue* value, const CSSToLengthConversionData&
|
| // In this case the center of the gradient is given relative to an edge in the form of:
|
| // [ top | bottom | right | left ] [ <percentage> | <length> ].
|
| if (value->isValuePair()) {
|
| - CSSValuePair* pair = toCSSValuePair(value);
|
| - CSSValueID originID = toCSSPrimitiveValue(pair->first())->getValueID();
|
| - value = pair->second();
|
| + CSSValuePair& pair = toCSSValuePair(*value);
|
| + CSSValueID originID = toCSSPrimitiveValue(pair.first()).getValueID();
|
| + value = &pair.second();
|
|
|
| if (originID == CSSValueRight || originID == CSSValueBottom) {
|
| // For right/bottom, the offset is relative to the far edge.
|
|
|