Index: third_party/WebKit/Source/build/scripts/templates/CSSOMTypes.cpp.tmpl |
diff --git a/third_party/WebKit/Source/build/scripts/templates/CSSOMTypes.cpp.tmpl b/third_party/WebKit/Source/build/scripts/templates/CSSOMTypes.cpp.tmpl |
index 7386654952c92094afec682f428b54b31a8c073f..e4fa5eefffd7870098bfef373f9c334c8a884b5c 100644 |
--- a/third_party/WebKit/Source/build/scripts/templates/CSSOMTypes.cpp.tmpl |
+++ b/third_party/WebKit/Source/build/scripts/templates/CSSOMTypes.cpp.tmpl |
@@ -21,6 +21,9 @@ bool CSSOMTypes::propertyCanTake(CSSPropertyID id, const CSSStyleValue& styleVal |
} else if (styleValue.type() == CSSStyleValue::KeywordType) { |
// Keywords are also handled differently. |
return CSSOMKeywords::validKeywordForProperty(id, toCSSKeywordValue(styleValue)); |
+ } else if (styleValue.type() == CSSStyleValue::Unknown) { |
+ // The check happens later in this case. |
+ return true; |
} |
switch (id) { |