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

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

Issue 2620263002: CSS: Scale support for none (Closed)
Patch Set: 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
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 d5d79074e0a2f54d3ca44debbc5517325df8f476..0311e4d2f9438907fe57c8f07dc7d9cd86680c6a 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
@@ -1247,6 +1247,11 @@ PassRefPtr<RotateTransformOperation> StyleBuilderConverter::convertRotate(
PassRefPtr<ScaleTransformOperation> StyleBuilderConverter::convertScale(
StyleResolverState& state,
const CSSValue& value) {
+ if (value.isIdentifierValue()) {
+ DCHECK_EQ(toCSSIdentifierValue(value).getValueID(), CSSValueNone);
+ return nullptr;
+ }
+
const CSSValueList& list = toCSSValueList(value);
ASSERT(list.length() <= 3);
double sx = toCSSPrimitiveValue(list.item(0)).getDoubleValue();

Powered by Google App Engine
This is Rietveld 408576698