Chromium Code Reviews| Index: third_party/WebKit/Source/build/scripts/templates/StyleBuilder.cpp.tmpl |
| diff --git a/third_party/WebKit/Source/build/scripts/templates/StyleBuilder.cpp.tmpl b/third_party/WebKit/Source/build/scripts/templates/StyleBuilder.cpp.tmpl |
| index 537baf0b6fbde46856c5466803673ba1d85315a2..3dd0a66e35e697e2b8880e9ab09c09edfbfd3a4e 100644 |
| --- a/third_party/WebKit/Source/build/scripts/templates/StyleBuilder.cpp.tmpl |
| +++ b/third_party/WebKit/Source/build/scripts/templates/StyleBuilder.cpp.tmpl |
| @@ -29,6 +29,14 @@ void StyleBuilder::applyProperty(CSSPropertyID property, StyleResolverState& sta |
| return; |
| {% endfor %} |
| + case CSSPropertyVariable: |
| + if (isInitial) |
| + ASSERT_NOT_REACHED(); |
| + else if (isInherit) |
| + return; // We reach this via the 'all' property, which does not apply to variables |
|
Timothy Loh
2015/09/30 02:09:27
Probably we should update CSSProperty::isAffectedB
|
| + else |
| + StyleBuilderFunctions::applyValueCSSPropertyVariable(state, value); |
| + return; |
| {% for property_id, property in properties.items() if property.direction_aware %} |
| case {{property_id}}: |
| {% endfor %} |