summaryrefslogtreecommitdiffstats
path: root/WebCore/css/CSSUnicodeRangeValue.h
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:05:15 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:05:15 -0800
commit1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353 (patch)
tree4457a7306ea5acb43fe05bfe0973b1f7faf97ba2 /WebCore/css/CSSUnicodeRangeValue.h
parent9364f22aed35e1a1e9d07c121510f80be3ab0502 (diff)
downloadexternal_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.zip
external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.gz
external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.bz2
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'WebCore/css/CSSUnicodeRangeValue.h')
-rw-r--r--WebCore/css/CSSUnicodeRangeValue.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/WebCore/css/CSSUnicodeRangeValue.h b/WebCore/css/CSSUnicodeRangeValue.h
index 8eca31e..0ba1980 100644
--- a/WebCore/css/CSSUnicodeRangeValue.h
+++ b/WebCore/css/CSSUnicodeRangeValue.h
@@ -27,16 +27,16 @@
#define CSSUnicodeRangeValue_h
#include "CSSValue.h"
+#include <wtf/PassRefPtr.h>
#include <wtf/unicode/Unicode.h>
namespace WebCore {
class CSSUnicodeRangeValue : public CSSValue {
public:
- CSSUnicodeRangeValue(UChar32 from, UChar32 to)
- : m_from(from)
- , m_to(to)
+ static PassRefPtr<CSSUnicodeRangeValue> create(UChar32 from, UChar32 to)
{
+ return adoptRef(new CSSUnicodeRangeValue(from, to));
}
virtual ~CSSUnicodeRangeValue();
@@ -47,6 +47,12 @@ public:
virtual String cssText() const;
private:
+ CSSUnicodeRangeValue(UChar32 from, UChar32 to)
+ : m_from(from)
+ , m_to(to)
+ {
+ }
+
UChar32 m_from;
UChar32 m_to;
};