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 ebf37c9fef0fe59bc742866a84e37359b8aed938..f57be32cc7f17c580d87bbdd736d13b8055f6c9b 100644 |
--- a/Source/build/scripts/templates/StyleBuilder.cpp.tmpl |
+++ b/Source/build/scripts/templates/StyleBuilder.cpp.tmpl |
@@ -16,20 +16,18 @@ namespace WebCore { |
void StyleBuilder::applyProperty(CSSPropertyID property, StyleResolverState& state, CSSValue* value, bool isInitial, bool isInherit) { |
switch(property) { |
{% for property_id, property in properties.items() |
- if not property.skip %} |
- {% set used_property = properties[property.use_handlers_for] or property %} |
- {% set used_property_id = used_property.property_id %} |
+ if property.should_declare_functions %} |
case {{property_id}}: |
if (isInitial) |
- StyleBuilderFunctions::applyInitial{{used_property_id}}(state); |
+ StyleBuilderFunctions::applyInitial{{property_id}}(state); |
else if (isInherit) |
- StyleBuilderFunctions::applyInherit{{used_property_id}}(state); |
+ StyleBuilderFunctions::applyInherit{{property_id}}(state); |
else |
- StyleBuilderFunctions::applyValue{{used_property_id}}(state, value); |
+ StyleBuilderFunctions::applyValue{{property_id}}(state, value); |
return; |
{% endfor %} |
- {% for property_id, property in properties.items() if property.skip %} |
+ {% for property_id, property in properties.items() if property.sb_skip %} |
case {{property_id}}: |
{% endfor %} |
return; |