| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CSSFontVariationValue_h |
| 6 #define CSSFontVariationValue_h |
| 7 |
| 8 #include "core/css/CSSValue.h" |
| 9 #include "wtf/text/WTFString.h" |
| 10 |
| 11 namespace blink { |
| 12 |
| 13 class CSSFontVariationValue : public CSSValue { |
| 14 public: |
| 15 static CSSFontVariationValue* create(const AtomicString& tag, float value) { |
| 16 return new CSSFontVariationValue(tag, value); |
| 17 } |
| 18 |
| 19 const AtomicString& tag() const { return m_tag; } |
| 20 float value() const { return m_value; } |
| 21 String customCSSText() const; |
| 22 |
| 23 bool equals(const CSSFontVariationValue&) const; |
| 24 |
| 25 DEFINE_INLINE_TRACE_AFTER_DISPATCH() { |
| 26 CSSValue::traceAfterDispatch(visitor); |
| 27 } |
| 28 |
| 29 private: |
| 30 CSSFontVariationValue(const AtomicString& tag, float value); |
| 31 |
| 32 AtomicString m_tag; |
| 33 const float m_value; |
| 34 }; |
| 35 |
| 36 DEFINE_CSS_VALUE_TYPE_CASTS(CSSFontVariationValue, isFontVariationValue()); |
| 37 |
| 38 } // namespace blink |
| 39 |
| 40 #endif |
| OLD | NEW |