summaryrefslogtreecommitdiffstats
path: root/WebCore/css/CSSPrimitiveValue.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/css/CSSPrimitiveValue.h')
-rw-r--r--WebCore/css/CSSPrimitiveValue.h28
1 files changed, 11 insertions, 17 deletions
diff --git a/WebCore/css/CSSPrimitiveValue.h b/WebCore/css/CSSPrimitiveValue.h
index 84acd67..d552ca0 100644
--- a/WebCore/css/CSSPrimitiveValue.h
+++ b/WebCore/css/CSSPrimitiveValue.h
@@ -76,29 +76,21 @@ public:
CSS_PARSER_HEXCOLOR = 106,
// This is used internally for unknown identifiers
- CSS_PARSER_IDENTIFIER = 107
+ CSS_PARSER_IDENTIFIER = 107,
+
+ // This unit is in CSS 3, but that isn't a finished standard yet
+ CSS_TURN = 108
};
- static PassRefPtr<CSSPrimitiveValue> createIdentifier(int ident)
- {
- return adoptRef(new CSSPrimitiveValue(ident));
- }
- static PassRefPtr<CSSPrimitiveValue> createColor(unsigned rgbValue)
- {
- return adoptRef(new CSSPrimitiveValue(rgbValue));
- }
+ static PassRefPtr<CSSPrimitiveValue> createIdentifier(int ident);
+ static PassRefPtr<CSSPrimitiveValue> createColor(unsigned rgbValue);
+ static PassRefPtr<CSSPrimitiveValue> create(double value, UnitTypes type);
+ static PassRefPtr<CSSPrimitiveValue> create(const String& value, UnitTypes type);
+
template<typename T> static PassRefPtr<CSSPrimitiveValue> create(T value)
{
return adoptRef(new CSSPrimitiveValue(value));
}
- static PassRefPtr<CSSPrimitiveValue> create(double value, UnitTypes type)
- {
- return adoptRef(new CSSPrimitiveValue(value, type));
- }
- static PassRefPtr<CSSPrimitiveValue> create(const String& value, UnitTypes type)
- {
- return adoptRef(new CSSPrimitiveValue(value, type));
- }
virtual ~CSSPrimitiveValue();
@@ -172,6 +164,8 @@ public:
virtual CSSParserValue parserValue() const;
+ virtual void addSubresourceStyleURLs(ListHashSet<KURL>&, const CSSStyleSheet*);
+
protected:
// FIXME: int vs. unsigned overloading is too subtle to distinguish the color and identifier cases.
CSSPrimitiveValue(int ident);