Chromium Code Reviews| Index: Source/build/scripts/templates/StyleBuilder.cpp.tmpl |
| diff --git a/Source/build/scripts/templates/StyleBuilder.cpp.tmpl b/Source/build/scripts/templates/StyleBuilder.cpp.tmpl |
| index 537baf0b6fbde46856c5466803673ba1d85315a2..3dd0a66e35e697e2b8880e9ab09c09edfbfd3a4e 100644 |
| --- a/Source/build/scripts/templates/StyleBuilder.cpp.tmpl |
| +++ b/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/08/25 09:21:09
We probably shouldn't get here for 'all', or at le
|
| + else |
| + StyleBuilderFunctions::applyValueCSSPropertyVariable(state, value); |
| + return; |
| {% for property_id, property in properties.items() if property.direction_aware %} |
| case {{property_id}}: |
| {% endfor %} |