1 {% from 'macros.tmpl' import license %}
5 #include "core/css/resolver/StyleBuilder.h"
7 #include "StyleBuilderFunctions.h"
8 #include "core/css/resolver/StyleResolverState.h"
10 // FIXME: currently we're just generating a switch statement, but we should
11 // test other variations for performance once we have more properties here.
15 bool StyleBuilder::applyProperty(CSSPropertyID property, StyleResolverState& state, CSSValue* value, bool isInitial, bool isInherit) {
17 {% for property_id, property in properties.items() %}
18 {% set used_property = properties[property.use_handlers_for] or property %}
19 {% set used_property_id = used_property.property_id %}
22 StyleBuilderFunctions::applyInitial{{used_property_id}}(state);
24 StyleBuilderFunctions::applyInherit{{used_property_id}}(state);
26 StyleBuilderFunctions::applyValue{{used_property_id}}(state, value);
35 } // namespace WebCore