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

Unified Diff: third_party/WebKit/Source/build/scripts/templates/CSSOMTypes.cpp.tmpl

Issue 2038773002: [Typed OM] Add an "UnsupportedStyleValue" in C++ that just has a string for unknown types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@stylevaue
Patch Set: Don't store the CSSPropertyID in the UnsupportedStyleValue Created 4 years, 6 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/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..a0b795128cc570ff0868c31a421ecb7e6b04b4ea 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 has to happen later in this case.
Timothy Loh 2016/06/09 07:22:24 has to happen -> happens? Seems to me like we coul
meade_UTC10 2016/06/09 07:50:53 Done.
+ return true;
}
switch (id) {

Powered by Google App Engine
This is Rietveld 408576698