Index: Source/core/css/resolver/AnimatedStyleBuilder.cpp |
diff --git a/Source/core/css/resolver/AnimatedStyleBuilder.cpp b/Source/core/css/resolver/AnimatedStyleBuilder.cpp |
index 6822b84d4cefe2ee06898527200d05add6dd031d..aa6f88295b5eafbb4665ebe02a2ca30e13ea04e8 100644 |
--- a/Source/core/css/resolver/AnimatedStyleBuilder.cpp |
+++ b/Source/core/css/resolver/AnimatedStyleBuilder.cpp |
@@ -560,12 +560,9 @@ void AnimatedStyleBuilder::applyProperty(CSSPropertyID property, StyleResolverSt |
case CSSPropertyPerspective: |
style->setPerspective(clampTo<float>(toAnimatableDouble(value)->toDouble())); |
return; |
- case CSSPropertyPerspectiveOrigin: { |
- const AnimatableLengthPoint* animatableLengthPoint = toAnimatableLengthPoint(value); |
- style->setPerspectiveOriginX(animatableValueToLength(animatableLengthPoint->x(), state)); |
- style->setPerspectiveOriginY(animatableValueToLength(animatableLengthPoint->y(), state)); |
+ case CSSPropertyPerspectiveOrigin: |
+ style->setPerspectiveOrigin(animatableValueToLengthPoint(value, state)); |
return; |
- } |
case CSSPropertyShapeOutside: |
style->setShapeOutside(toAnimatableShapeValue(value)->shapeValue()); |
return; |