| Index: Source/core/css/StylePropertySet.h
|
| diff --git a/Source/core/css/StylePropertySet.h b/Source/core/css/StylePropertySet.h
|
| index 73e7bf578498707567e21a631032a7e107430de3..46c89909512a44553ada28d105130bca62625208 100644
|
| --- a/Source/core/css/StylePropertySet.h
|
| +++ b/Source/core/css/StylePropertySet.h
|
| @@ -149,6 +149,7 @@ public:
|
|
|
| const CSSValue** valueArray() const;
|
| const StylePropertyMetadata* metadataArray() const;
|
| + int findPropertyIndex(CSSPropertyID) const;
|
|
|
| void* m_storage;
|
|
|
| @@ -208,6 +209,7 @@ public:
|
| void parseDeclaration(const String& styleDeclaration, StyleSheetContents* contextStyleSheet);
|
|
|
| CSSStyleDeclaration* ensureCSSStyleDeclaration();
|
| + int findPropertyIndex(CSSPropertyID) const;
|
|
|
| Vector<CSSProperty, 4> m_propertyVector;
|
|
|
| @@ -267,6 +269,13 @@ inline void StylePropertySet::deref()
|
| delete toImmutableStylePropertySet(this);
|
| }
|
|
|
| +inline int StylePropertySet::findPropertyIndex(CSSPropertyID propertyID) const
|
| +{
|
| + if (m_isMutable)
|
| + return toMutableStylePropertySet(this)->findPropertyIndex(propertyID);
|
| + return toImmutableStylePropertySet(this)->findPropertyIndex(propertyID);
|
| +}
|
| +
|
| } // namespace WebCore
|
|
|
| #endif // StylePropertySet_h
|
|
|