diff options
Diffstat (limited to 'Source/WebCore/css/CSSMutableStyleDeclaration.h')
-rw-r--r-- | Source/WebCore/css/CSSMutableStyleDeclaration.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/Source/WebCore/css/CSSMutableStyleDeclaration.h b/Source/WebCore/css/CSSMutableStyleDeclaration.h index 0eab1b6..ca17f11 100644 --- a/Source/WebCore/css/CSSMutableStyleDeclaration.h +++ b/Source/WebCore/css/CSSMutableStyleDeclaration.h @@ -140,6 +140,8 @@ public: bool propertiesEqual(const CSSMutableStyleDeclaration* o) const { return m_properties == o->m_properties; } + bool isInlineStyleDeclaration(); + protected: CSSMutableStyleDeclaration(CSSRule* parentRule); @@ -152,12 +154,16 @@ private: void setNeedsStyleRecalc(); - String getShorthandValue(const int* properties, int number) const; - String getCommonValue(const int* properties, int number) const; - String getLayeredShorthandValue(const int* properties, unsigned number) const; + String getShorthandValue(const int* properties, size_t) const; + String getCommonValue(const int* properties, size_t) const; + String getLayeredShorthandValue(const int* properties, size_t) const; String get4Values(const int* properties) const; String borderSpacingValue(const int properties[2]) const; - + + template<size_t size> String getShorthandValue(const int (&properties)[size]) const { return getShorthandValue(properties, size); } + template<size_t size> String getCommonValue(const int (&properties)[size]) const { return getCommonValue(properties, size); } + template<size_t size> String getLayeredShorthandValue(const int (&properties)[size]) const { return getLayeredShorthandValue(properties, size); } + void setPropertyInternal(const CSSProperty&, CSSProperty* slot = 0); bool removeShorthandProperty(int propertyID, bool notifyChanged); |