OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CSSUnsupportedStyleValue_h | 5 #ifndef CSSUnsupportedStyleValue_h |
6 #define CSSUnsupportedStyleValue_h | 6 #define CSSUnsupportedStyleValue_h |
7 | 7 |
8 #include "core/css/cssom/CSSStyleValue.h" | 8 #include "core/css/cssom/CSSStyleValue.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 | 11 |
12 class CORE_EXPORT CSSUnsupportedStyleValue final : public CSSStyleValue { | 12 class CORE_EXPORT CSSUnsupportedStyleValue final : public CSSStyleValue { |
13 WTF_MAKE_NONCOPYABLE(CSSUnsupportedStyleValue); | 13 WTF_MAKE_NONCOPYABLE(CSSUnsupportedStyleValue); |
14 public: | 14 public: |
15 static CSSUnsupportedStyleValue* create(const String& cssText) | 15 static CSSUnsupportedStyleValue* create(const String& cssText) |
16 { | 16 { |
17 return new CSSUnsupportedStyleValue(cssText); | 17 return new CSSUnsupportedStyleValue(cssText); |
18 } | 18 } |
19 | 19 |
20 StyleValueType type() const override { return StyleValueType::Unknown; } | 20 StyleValueType type() const override { return StyleValueType::Unknown; } |
21 CSSValue* toCSSValue() const override; | 21 CSSValue* toCSSValue() const override; |
22 CSSValue* toCSSValueWithProperty(CSSPropertyID) const override; | 22 CSSValue* toCSSValueWithProperty(CSSPropertyID) const override; |
23 String cssString() const override { return m_cssText; } | 23 String cssText() const override { return m_cssText; } |
24 | 24 |
25 private: | 25 private: |
26 CSSUnsupportedStyleValue(const String& cssText) | 26 CSSUnsupportedStyleValue(const String& cssText) |
27 : m_cssText(cssText) {} | 27 : m_cssText(cssText) {} |
28 | 28 |
29 String m_cssText; | 29 String m_cssText; |
30 }; | 30 }; |
31 | 31 |
32 } // namespace blink | 32 } // namespace blink |
33 | 33 |
34 #endif // CSSUnsupportedStyleValue_h | 34 #endif // CSSUnsupportedStyleValue_h |
OLD | NEW |