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

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

Issue 18272014: Cache cssomWrappers for StylePropertySets directly on the MutableStylePropertySet. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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 | « no previous file | Source/core/css/StylePropertySet.cpp » ('j') | Source/core/css/StylePropertySet.cpp » ('J')
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 3fed4302f2db09da3ccb9aca97bd3c3cb4db6ddb..c115a87a6261e4a96a7fb3b3a882762c39e0c203 100644
--- a/Source/core/css/StylePropertySet.h
+++ b/Source/core/css/StylePropertySet.h
@@ -25,6 +25,7 @@
#include "core/css/CSSParserMode.h"
#include "core/css/CSSPrimitiveValue.h"
#include "core/css/CSSProperty.h"
+#include "core/css/PropertySetCSSStyleDeclaration.h"
#include <wtf/ListHashSet.h>
#include <wtf/text/WTFString.h>
#include <wtf/Vector.h>
@@ -37,7 +38,6 @@ class Element;
class ImmutableStylePropertySet;
class KURL;
class MutableStylePropertySet;
-class PropertySetCSSStyleDeclaration;
class StylePropertyShorthand;
class StyleSheetContents;
@@ -174,8 +174,6 @@ inline const StylePropertyMetadata* ImmutableStylePropertySet::metadataArray() c
class MutableStylePropertySet : public StylePropertySet {
public:
- ~MutableStylePropertySet();
-
static PassRefPtr<MutableStylePropertySet> create(CSSParserMode = CSSQuirksMode);
static PassRefPtr<MutableStylePropertySet> create(const CSSProperty* properties, unsigned count);
@@ -216,14 +214,12 @@ public:
Vector<CSSProperty, 4> m_propertyVector;
private:
- MutableStylePropertySet(CSSParserMode cssParserMode)
- : StylePropertySet(cssParserMode)
- { }
-
+ MutableStylePropertySet(CSSParserMode);
abarth-chromium 2013/07/03 18:25:42 Please mark one-argument constructors "explicit"
Mads Ager (chromium) 2013/07/04 06:05:47 Done for this one and the constructor in the publi
MutableStylePropertySet(const CSSProperty* properties, unsigned count);
bool removeShorthandProperty(CSSPropertyID);
CSSProperty* findCSSPropertyWithID(CSSPropertyID);
+ OwnPtr<PropertySetCSSStyleDeclaration> m_cssomWrapper;
};
inline StylePropertyMetadata StylePropertySet::PropertyReference::propertyMetadata() const
« no previous file with comments | « no previous file | Source/core/css/StylePropertySet.cpp » ('j') | Source/core/css/StylePropertySet.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698