Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(531)

Unified Diff: Source/core/css/StylePropertySet.h

Issue 16021003: Move StylePropertySet::createImmutable() to ImmutableStylePropertySet. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/css/CSSParser.cpp ('k') | Source/core/css/StylePropertySet.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/core/css/CSSParser.cpp ('k') | Source/core/css/StylePropertySet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698