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 565127705adba3e30bfe5e08269ffabb5055a199..e5c1698cc2e20acefedb86661f78d2cc340c43d8 100644 |
| --- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp |
| +++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp |
| @@ -305,10 +305,13 @@ bool CSSPropertyParser::consumeCSSWideKeyword(CSSPropertyID unresolvedProperty, |
| CSSPropertyID property = resolveCSSPropertyID(unresolvedProperty); |
| const StylePropertyShorthand& shorthand = shorthandForProperty(property); |
| - if (!shorthand.length()) |
| + if (!shorthand.length()) { |
| + if (CSSPropertyMetadata::isDescriptor(property)) |
|
Timothy Loh
2016/05/19 05:44:42
I think it's better to be at the very top of parse
rwlbuis
2016/05/20 00:51:11
Same as before, done for efficiency, can move if y
|
| + return false; |
| addProperty(property, CSSPropertyInvalid, value, important); |
| - else |
| + } else { |
| addExpandedPropertyForValue(property, value, important); |
| + } |
| m_range = rangeCopy; |
| return true; |
| } |