Chromium Code Reviews| 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; |