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

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

Issue 15864004: Move create() methods from StylePropertySet to MutableStylePropertySet. (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/FontLoader.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 0d5b139e0a6b79184ca360e4f3a17f781e26e373..d9a4012e417c5101d715dd31ce401f053748c744 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> create(CSSParserMode = CSSQuirksMode);
- static PassRefPtr<StylePropertySet> create(const CSSProperty* properties, unsigned count);
static PassRefPtr<StylePropertySet> createImmutable(const CSSProperty* properties, unsigned count, CSSParserMode);
class PropertyReference {
@@ -225,13 +223,18 @@ inline const StylePropertyMetadata* StylePropertySet::immutableMetadataArray() c
class MutableStylePropertySet : public StylePropertySet {
public:
+ static PassRefPtr<MutableStylePropertySet> create(CSSParserMode = CSSQuirksMode);
+ static PassRefPtr<MutableStylePropertySet> create(const CSSProperty* properties, unsigned count);
+
+ MutableStylePropertySet(const StylePropertySet&);
+
+ Vector<CSSProperty, 4> m_propertyVector;
+
+private:
MutableStylePropertySet(CSSParserMode cssParserMode)
: StylePropertySet(cssParserMode)
{ }
MutableStylePropertySet(const CSSProperty* properties, unsigned count);
- MutableStylePropertySet(const StylePropertySet&);
-
- Vector<CSSProperty, 4> m_propertyVector;
};
inline Vector<CSSProperty, 4>& StylePropertySet::mutablePropertyVector()
« no previous file with comments | « Source/core/css/FontLoader.cpp ('k') | Source/core/css/StylePropertySet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698