| 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 33b93b0688df90827abc2fb1fed72fcc57280e95..d08d80f9162bb7b6fb685bd72357a6c9f84c00fb 100644
|
| --- a/third_party/WebKit/Source/build/scripts/templates/CSSOMTypes.cpp.tmpl
|
| +++ b/third_party/WebKit/Source/build/scripts/templates/CSSOMTypes.cpp.tmpl
|
| @@ -15,17 +15,17 @@ namespace blink {
|
| bool CSSOMTypes::propertyCanTake(CSSPropertyID id,
|
| const CSSStyleValue& styleValue) {
|
| // Shortcut special case.
|
| - if (styleValue.type() == CSSStyleValue::SimpleLengthType ||
|
| - styleValue.type() == CSSStyleValue::CalcLengthType) {
|
| + if (styleValue.type() == CSSStyleValue::kSimpleLengthType ||
|
| + styleValue.type() == CSSStyleValue::kCalcLengthType) {
|
| if (toCSSLengthValue(styleValue).containsPercent() &&
|
| !CSSPropertyMetadata::propertySupportsPercentage(id)) {
|
| return false;
|
| }
|
| - } else if (styleValue.type() == CSSStyleValue::KeywordType) {
|
| + } else if (styleValue.type() == CSSStyleValue::kKeywordType) {
|
| // Keywords are also handled differently.
|
| return CSSOMKeywords::validKeywordForProperty(
|
| id, toCSSKeywordValue(styleValue));
|
| - } else if (styleValue.type() == CSSStyleValue::Unknown) {
|
| + } else if (styleValue.type() == CSSStyleValue::kUnknown) {
|
| // The check happens later in this case.
|
| return true;
|
| }
|
| @@ -40,7 +40,7 @@ bool CSSOMTypes::propertyCanTakeType(CSSPropertyID id,
|
| case {{property_id}}:
|
| return (
|
| {% for type in property.typedom_types %}
|
| - {{ "|| " if not loop.first }}type == CSSStyleValue::{{type}}Type
|
| + {{ "|| " if not loop.first }}type == CSSStyleValue::k{{type}}Type
|
| {% endfor %}
|
| );
|
| {% endfor %}
|
|
|