summaryrefslogtreecommitdiffstats
path: root/WebCore/css/CSSPropertySourceData.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/css/CSSPropertySourceData.h')
-rw-r--r--WebCore/css/CSSPropertySourceData.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/WebCore/css/CSSPropertySourceData.h b/WebCore/css/CSSPropertySourceData.h
index beae9d0..db80d46 100644
--- a/WebCore/css/CSSPropertySourceData.h
+++ b/WebCore/css/CSSPropertySourceData.h
@@ -44,7 +44,6 @@ class CSSStyleRule;
struct SourceRange {
SourceRange();
SourceRange(unsigned start, unsigned end);
- SourceRange& operator=(const SourceRange& other);
unsigned start;
unsigned end;
@@ -56,9 +55,7 @@ struct CSSPropertySourceData {
CSSPropertySourceData(const String& name, const String& value, bool important, bool parsedOk, const SourceRange& range);
CSSPropertySourceData(const CSSPropertySourceData& other);
CSSPropertySourceData();
- ALWAYS_INLINE ~CSSPropertySourceData() { }
- CSSPropertySourceData& operator=(const CSSPropertySourceData& other);
String toString() const;
unsigned hash() const;
@@ -83,7 +80,18 @@ struct CSSStyleSourceData : public RefCounted<CSSStyleSourceData> {
SourceRange styleBodyRange;
Vector<CSSPropertySourceData> propertyData;
};
-typedef HashMap<CSSStyleRule*, RefPtr<CSSStyleSourceData> > StyleRuleRangeMap;
+
+struct CSSRuleSourceData : public RefCounted<CSSRuleSourceData> {
+ static PassRefPtr<CSSRuleSourceData> create()
+ {
+ return adoptRef(new CSSRuleSourceData());
+ }
+
+ // Range of the selector list in the enclosing source.
+ SourceRange selectorListRange;
+ RefPtr<CSSStyleSourceData> styleSourceData;
+};
+typedef HashMap<CSSStyleRule*, RefPtr<CSSRuleSourceData> > StyleRuleRangeMap;
} // namespace WebCore