Chromium Code Reviews| Index: third_party/WebKit/Source/core/css/CSSStringValue.h |
| diff --git a/third_party/WebKit/Source/core/css/CSSStringValue.h b/third_party/WebKit/Source/core/css/CSSStringValue.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..28332b79591069563778a27507d8a9b56eb50ff5 |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/core/css/CSSStringValue.h |
| @@ -0,0 +1,43 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CSSStringValue_h |
| +#define CSSStringValue_h |
| + |
| +#include "core/CoreExport.h" |
|
Timothy Loh
2015/10/02 05:35:25
not needed?
sashab
2015/10/02 06:07:54
Done.
|
| +#include "core/css/CSSValue.h" |
| +#include "wtf/PassRefPtr.h" |
| +#include "wtf/RefCounted.h" |
| + |
| +namespace blink { |
| + |
| +class CSSStringValue : public CSSValue { |
| +public: |
| + static PassRefPtrWillBeRawPtr<CSSStringValue> create(const String& str) |
| + { |
| + return adoptRefWillBeNoop(new CSSStringValue(str)); |
| + } |
| + |
| + String value() const { return m_string; } |
| + |
| + String customCSSText() const; |
| + |
| + bool equals(const CSSStringValue& other) const |
| + { |
| + return m_string == other.m_string; |
| + } |
| + |
| + DECLARE_TRACE_AFTER_DISPATCH(); |
| + |
| +private: |
| + CSSStringValue(const String&); |
| + |
| + String m_string; |
| +}; |
| + |
| +DEFINE_CSS_VALUE_TYPE_CASTS(CSSStringValue, isStringValue()); |
| + |
| +} // namespace blink |
| + |
| +#endif // CSSStringValue_h |