| 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 namespace cssom { |
| 11 | 12 |
| 12 class CORE_EXPORT CSSUnsupportedStyleValue final : public CSSStyleValue { | 13 class CORE_EXPORT CSSUnsupportedStyleValue final : public CSSStyleValue { |
| 13 WTF_MAKE_NONCOPYABLE(CSSUnsupportedStyleValue); | 14 WTF_MAKE_NONCOPYABLE(CSSUnsupportedStyleValue); |
| 14 public: | 15 public: |
| 15 static CSSUnsupportedStyleValue* create(const String& cssText) | 16 static CSSUnsupportedStyleValue* create(const String& cssText) |
| 16 { | 17 { |
| 17 return new CSSUnsupportedStyleValue(cssText); | 18 return new CSSUnsupportedStyleValue(cssText); |
| 18 } | 19 } |
| 19 | 20 |
| 20 StyleValueType type() const override { return StyleValueType::Unknown; } | 21 StyleValueType type() const override { return StyleValueType::Unknown; } |
| 21 const CSSValue* toCSSValue() const override; | 22 const CSSValue* toCSSValue() const override; |
| 22 const CSSValue* toCSSValueWithProperty(CSSPropertyID) const override; | 23 const CSSValue* toCSSValueWithProperty(CSSPropertyID) const override; |
| 23 String cssText() const override { return m_cssText; } | 24 String cssText() const override { return m_cssText; } |
| 24 | 25 |
| 25 private: | 26 private: |
| 26 CSSUnsupportedStyleValue(const String& cssText) | 27 CSSUnsupportedStyleValue(const String& cssText) |
| 27 : m_cssText(cssText) {} | 28 : m_cssText(cssText) {} |
| 28 | 29 |
| 29 String m_cssText; | 30 String m_cssText; |
| 30 }; | 31 }; |
| 31 | 32 |
| 33 } // namespace cssom |
| 32 } // namespace blink | 34 } // namespace blink |
| 33 | 35 |
| 36 |
| 34 #endif // CSSUnsupportedStyleValue_h | 37 #endif // CSSUnsupportedStyleValue_h |
| OLD | NEW |