| Index: third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
|
| diff --git a/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp b/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
|
| index 3bbcc2e917661d6565f3324356e66679f12d6269..5093c1b602851c7ec5f7e801855c0c66266e8fd2 100644
|
| --- a/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
|
| +++ b/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
|
| @@ -1216,15 +1216,16 @@ PassRefPtr<TranslateTransformOperation> StyleBuilderConverter::convertTranslate(
|
| Rotation StyleBuilderConverter::convertRotation(const CSSValue& value) {
|
| const CSSValueList& list = toCSSValueList(value);
|
| ASSERT(list.length() == 1 || list.length() == 4);
|
| - double angle = toCSSPrimitiveValue(list.item(0)).computeDegrees();
|
| double x = 0;
|
| double y = 0;
|
| double z = 1;
|
| if (list.length() == 4) {
|
| - x = toCSSPrimitiveValue(list.item(1)).getDoubleValue();
|
| - y = toCSSPrimitiveValue(list.item(2)).getDoubleValue();
|
| - z = toCSSPrimitiveValue(list.item(3)).getDoubleValue();
|
| + x = toCSSPrimitiveValue(list.item(0)).getDoubleValue();
|
| + y = toCSSPrimitiveValue(list.item(1)).getDoubleValue();
|
| + z = toCSSPrimitiveValue(list.item(2)).getDoubleValue();
|
| }
|
| + double angle =
|
| + toCSSPrimitiveValue(list.item(list.length() - 1)).computeDegrees();
|
| return Rotation(FloatPoint3D(x, y, z), angle);
|
| }
|
|
|
|
|