summaryrefslogtreecommitdiffstats
path: root/WebCore/css/CSSInitialValue.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/CSSInitialValue.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/CSSInitialValue.h')
-rw-r--r--WebCore/css/CSSInitialValue.h25
1 files changed, 17 insertions, 8 deletions
diff --git a/WebCore/css/CSSInitialValue.h b/WebCore/css/CSSInitialValue.h
index 1e04015..c099a3c 100644
--- a/WebCore/css/CSSInitialValue.h
+++ b/WebCore/css/CSSInitialValue.h
@@ -1,8 +1,6 @@
/*
- * This file is part of the DOM implementation for KDE.
- *
* (C) 1999-2003 Lars Knoll (knoll@kde.org)
- * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc.
+ * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -24,21 +22,32 @@
#define CSSInitialValue_h
#include "CSSValue.h"
+#include <wtf/PassRefPtr.h>
namespace WebCore {
class CSSInitialValue : public CSSValue {
public:
- CSSInitialValue(bool implicit)
- :m_implicit(implicit)
- {}
+ static PassRefPtr<CSSInitialValue> createExplicit()
+ {
+ return adoptRef(new CSSInitialValue(false));
+ }
+ static PassRefPtr<CSSInitialValue> createImplicit()
+ {
+ return adoptRef(new CSSInitialValue(true));
+ }
- virtual unsigned short cssValueType() const;
virtual String cssText() const;
+private:
+ CSSInitialValue(bool implicit)
+ : m_implicit(implicit)
+ {
+ }
+
+ virtual unsigned short cssValueType() const;
virtual bool isImplicitInitialValue() const { return m_implicit; }
-private:
bool m_implicit;
};