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

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSPropertyParser.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/parser/CSSPropertyParser.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
index b897acdcc27b33700186d7fd4eaed41f64f22a1c..60fea5cec5afa7d945372d74ad09a1a5bf42daa1 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
@@ -719,9 +719,13 @@ static CSSValueList* consumeRotation(CSSParserTokenRange& range) {
return list;
}
-static CSSValueList* consumeScale(CSSParserTokenRange& range) {
+static CSSValue* consumeScale(CSSParserTokenRange& range) {
ASSERT(RuntimeEnabledFeatures::cssIndependentTransformPropertiesEnabled());
+ CSSValueID id = range.peek().id();
+ if (id == CSSValueNone)
+ return consumeIdent(range);
Timothy Loh 2017/01/12 00:07:18 Is this tested?
+
CSSValue* scale = consumeNumber(range, ValueRangeAll);
if (!scale)
return nullptr;

Powered by Google App Engine
This is Rietveld 408576698