| 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 #include "core/css/CSSFontVariationValue.h" |
| 6 |
| 7 #include "wtf/text/StringBuilder.h" |
| 8 |
| 9 namespace blink { |
| 10 |
| 11 CSSFontVariationValue::CSSFontVariationValue(const AtomicString& tag, |
| 12 float value) |
| 13 : CSSValue(FontVariationClass), m_tag(tag), m_value(value) {} |
| 14 |
| 15 String CSSFontVariationValue::customCSSText() const { |
| 16 StringBuilder builder; |
| 17 builder.append('\''); |
| 18 builder.append(m_tag); |
| 19 builder.append("' "); |
| 20 builder.appendNumber(m_value); |
| 21 return builder.toString(); |
| 22 } |
| 23 |
| 24 bool CSSFontVariationValue::equals(const CSSFontVariationValue& other) const { |
| 25 return m_tag == other.m_tag && m_value == other.m_value; |
| 26 } |
| 27 |
| 28 } // namespace blink |
| OLD | NEW |