Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(668)

Unified Diff: Source/core/css/resolver/AnimatedStyleBuilder.cpp

Issue 643893002: Store [-webkit-]perspective-origin as a LengthPoint. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698