blob: 18bde583f575e4a6bf624d5f59c3d85d2ce635b2 [file] [log] [blame]
// Copyright 2016 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.
#include "core/css/CSSFontVariationValue.h"
#include "platform/wtf/text/StringBuilder.h"
namespace blink {
CSSFontVariationValue::CSSFontVariationValue(const AtomicString& tag,
float value)
: CSSValue(kFontVariationClass), tag_(tag), value_(value) {}
String CSSFontVariationValue::CustomCSSText() const {
StringBuilder builder;
builder.Append("' ");
return builder.ToString();
bool CSSFontVariationValue::Equals(const CSSFontVariationValue& other) const {
return tag_ == other.tag_ && value_ == other.value_;
} // namespace blink