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

Unified Diff: sky/engine/core/animation/css/CSSAnimatableValueFactory.cpp

Issue 711203002: Remove zoom() and effectiveZoom(). (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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: sky/engine/core/animation/css/CSSAnimatableValueFactory.cpp
diff --git a/sky/engine/core/animation/css/CSSAnimatableValueFactory.cpp b/sky/engine/core/animation/css/CSSAnimatableValueFactory.cpp
index 84a5fbdfe6af815c7602bafedba29937b4478159..6d18fa0d31a2e3bdf5c1f44d4fc6bdadb5c1d74a 100644
--- a/sky/engine/core/animation/css/CSSAnimatableValueFactory.cpp
+++ b/sky/engine/core/animation/css/CSSAnimatableValueFactory.cpp
@@ -64,7 +64,7 @@ static PassRefPtr<AnimatableValue> createFromLength(const Length& length, const
case Fixed:
case Percent:
case Calculated:
- return AnimatableLength::create(length, style.effectiveZoom());
+ return AnimatableLength::create(length);
case Auto:
case Intrinsic:
case MinIntrinsic:
@@ -72,7 +72,7 @@ static PassRefPtr<AnimatableValue> createFromLength(const Length& length, const
case MaxContent:
case FillAvailable:
case FitContent:
- return AnimatableUnknown::create(CSSPrimitiveValue::create(length, 1));
+ return AnimatableUnknown::create(CSSPrimitiveValue::create(length));
case MaxSizeNone:
return AnimatableUnknown::create(CSSValueNone);
case ExtendToZoom: // Does not apply to elements.
« no previous file with comments | « sky/engine/core/animation/animatable/AnimatableLengthTest.cpp ('k') | sky/engine/core/css/CSSGradientValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698