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

Unified Diff: third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp

Issue 2623453002: CSS scale property: scale with one value only affects X (Closed)
Patch Set: rebase Created 3 years, 11 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
« no previous file with comments | « third_party/WebKit/Source/core/animation/CSSScaleInterpolationType.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2b27368a280f7bc8ff1e3e7036892457507f99fb..d5d79074e0a2f54d3ca44debbc5517325df8f476 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
@@ -1250,7 +1250,7 @@ PassRefPtr<ScaleTransformOperation> StyleBuilderConverter::convertScale(
const CSSValueList& list = toCSSValueList(value);
ASSERT(list.length() <= 3);
double sx = toCSSPrimitiveValue(list.item(0)).getDoubleValue();
- double sy = sx;
+ double sy = 1;
double sz = 1;
if (list.length() >= 2)
sy = toCSSPrimitiveValue(list.item(1)).getDoubleValue();
« no previous file with comments | « third_party/WebKit/Source/core/animation/CSSScaleInterpolationType.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698