| Index: Source/core/css/BasicShapeFunctions.cpp
|
| diff --git a/Source/core/css/BasicShapeFunctions.cpp b/Source/core/css/BasicShapeFunctions.cpp
|
| index 2b49710edba5e18dab9c2ee4b4063445ef00779a..dc59d0403ba141204693080cde582e8de7accc57 100644
|
| --- a/Source/core/css/BasicShapeFunctions.cpp
|
| +++ b/Source/core/css/BasicShapeFunctions.cpp
|
| @@ -140,7 +140,7 @@ static LengthSize convertToLengthSize(const StyleResolverState& state, CSSValueP
|
| if (!value)
|
| return LengthSize(Length(0, Fixed), Length(0, Fixed));
|
|
|
| - return LengthSize(convertToLength(state, toCSSPrimitiveValue(value->first())), convertToLength(state, toCSSPrimitiveValue(value->second())));
|
| + return LengthSize(convertToLength(state, &toCSSPrimitiveValue(value->first())), convertToLength(state, &toCSSPrimitiveValue(value->second())));
|
| }
|
|
|
| static BasicShapeCenterCoordinate convertToCenterCoordinate(const StyleResolverState& state, CSSValue* value)
|
| @@ -154,8 +154,8 @@ static BasicShapeCenterCoordinate convertToCenterCoordinate(const StyleResolverS
|
| } else if (value->isPrimitiveValue() && toCSSPrimitiveValue(value)->isValueID()) {
|
| keyword = toCSSPrimitiveValue(value)->getValueID();
|
| } else if (value->isValuePair()) {
|
| - keyword = toCSSPrimitiveValue(toCSSValuePair(value)->first())->getValueID();
|
| - offset = convertToLength(state, toCSSPrimitiveValue(toCSSValuePair(value)->second()));
|
| + keyword = toCSSPrimitiveValue(toCSSValuePair(value)->first()).getValueID();
|
| + offset = convertToLength(state, &toCSSPrimitiveValue(toCSSValuePair(value)->second()));
|
| } else {
|
| offset = convertToLength(state, toCSSPrimitiveValue(value));
|
| }
|
|
|