summaryrefslogtreecommitdiff
path: root/Source/WebCore/css/StyleBuilder.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/css/StyleBuilder.h')
-rw-r--r--Source/WebCore/css/StyleBuilder.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/WebCore/css/StyleBuilder.h b/Source/WebCore/css/StyleBuilder.h
index ab41c9c7f..4ffe85234 100644
--- a/Source/WebCore/css/StyleBuilder.h
+++ b/Source/WebCore/css/StyleBuilder.h
@@ -37,14 +37,14 @@ class StyleResolver;
class PropertyHandler {
public:
- typedef void (*InheritFunction)(StyleResolver*);
- typedef void (*InitialFunction)(StyleResolver*);
- typedef void (*ApplyFunction)(StyleResolver*, CSSValue*);
+ typedef void (*InheritFunction)(CSSPropertyID, StyleResolver*);
+ typedef void (*InitialFunction)(CSSPropertyID, StyleResolver*);
+ typedef void (*ApplyFunction)(CSSPropertyID, StyleResolver*, CSSValue*);
PropertyHandler() : m_inherit(0), m_initial(0), m_apply(0) { }
PropertyHandler(InheritFunction inherit, InitialFunction initial, ApplyFunction apply) : m_inherit(inherit), m_initial(initial), m_apply(apply) { }
- void applyInheritValue(StyleResolver* styleResolver) const { ASSERT(m_inherit); (*m_inherit)(styleResolver); }
- void applyInitialValue(StyleResolver* styleResolver) const { ASSERT(m_initial); (*m_initial)(styleResolver); }
- void applyValue(StyleResolver* styleResolver, CSSValue* value) const { ASSERT(m_apply); (*m_apply)(styleResolver, value); }
+ void applyInheritValue(CSSPropertyID propertyID, StyleResolver* styleResolver) const { ASSERT(m_inherit); (*m_inherit)(propertyID, styleResolver); }
+ void applyInitialValue(CSSPropertyID propertyID, StyleResolver* styleResolver) const { ASSERT(m_initial); (*m_initial)(propertyID, styleResolver); }
+ void applyValue(CSSPropertyID propertyID, StyleResolver* styleResolver, CSSValue* value) const { ASSERT(m_apply); (*m_apply)(propertyID, styleResolver, value); }
bool isValid() const { return m_inherit && m_initial && m_apply; }
InheritFunction inheritFunction() const { return m_inherit; }
InitialFunction initialFunction() { return m_initial; }