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

Unified Diff: sky/engine/core/css/CSSGradientValue.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
« no previous file with comments | « sky/engine/core/animation/css/CSSAnimatableValueFactory.cpp ('k') | sky/engine/core/css/CSSMatrix.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/CSSGradientValue.cpp
diff --git a/sky/engine/core/css/CSSGradientValue.cpp b/sky/engine/core/css/CSSGradientValue.cpp
index ec386f8fdc21c4a5d2648ff4d18ebe2f09b7ba54..a5b32c1ad4240528259afc466001bd9bff46e658 100644
--- a/sky/engine/core/css/CSSGradientValue.cpp
+++ b/sky/engine/core/css/CSSGradientValue.cpp
@@ -408,7 +408,7 @@ static float positionFromValue(CSSPrimitiveValue* value, const CSSToLengthConver
}
if (value->isNumber())
- return origin + sign * value->getFloatValue() * conversionData.zoom();
+ return origin + sign * value->getFloatValue();
if (value->isPercentage())
return origin + sign * value->getFloatValue() / 100.f * edgeDistance;
@@ -919,7 +919,7 @@ float CSSRadialGradientValue::resolveRadius(CSSPrimitiveValue* radius, const CSS
{
float result = 0;
if (radius->isNumber()) // Can the radius be a percentage?
- result = radius->getFloatValue() * conversionData.zoom();
+ result = radius->getFloatValue();
else if (widthOrHeight && radius->isPercentage())
result = *widthOrHeight * radius->getFloatValue() / 100;
else
« no previous file with comments | « sky/engine/core/animation/css/CSSAnimatableValueFactory.cpp ('k') | sky/engine/core/css/CSSMatrix.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698