Index: Source/core/css/StylePropertySet.h |
diff --git a/Source/core/css/StylePropertySet.h b/Source/core/css/StylePropertySet.h |
index 88473155fc010a9ed51a8bae4a27e7ab9b1a81cd..553bca62ffcc3b8200fe1b608090429d5b83f4ba 100644 |
--- a/Source/core/css/StylePropertySet.h |
+++ b/Source/core/css/StylePropertySet.h |
@@ -50,8 +50,6 @@ public: |
// the appropriate subclass type. |
void deref(); |
- static PassRefPtr<StylePropertySet> createImmutable(const CSSProperty* properties, unsigned count, CSSParserMode); |
- |
class PropertyReference { |
public: |
PropertyReference(const StylePropertySet& propertySet, unsigned index) |
@@ -134,7 +132,7 @@ public: |
void addSubresourceStyleURLs(ListHashSet<KURL>&, StyleSheetContents* contextStyleSheet) const; |
PassRefPtr<MutableStylePropertySet> mutableCopy() const; |
- PassRefPtr<StylePropertySet> immutableCopyIfNeeded() const; |
+ PassRefPtr<ImmutableStylePropertySet> immutableCopyIfNeeded() const; |
void removeEquivalentProperties(const StylePropertySet*); |
void removeEquivalentProperties(const CSSStyleDeclaration*); |
@@ -198,10 +196,13 @@ class ImmutableStylePropertySet : public StylePropertySet { |
// tweak. |
NEW_DELETE_SAME_AS_MALLOC_FREE; |
public: |
- ImmutableStylePropertySet(const CSSProperty*, unsigned count, CSSParserMode); |
~ImmutableStylePropertySet(); |
+ static PassRefPtr<ImmutableStylePropertySet> create(const CSSProperty* properties, unsigned count, CSSParserMode); |
void* m_storage; |
+ |
+private: |
+ ImmutableStylePropertySet(const CSSProperty*, unsigned count, CSSParserMode); |
}; |
inline const CSSValue** StylePropertySet::immutableValueArray() const |