Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Side by Side Diff: third_party/WebKit/Source/core/css/CSSFontVariationValue.cpp

Issue 2558053002: Add CSS support for font-variation-settings (Closed)
Patch Set: DCHECK corrected, newline removed. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSFontVariationValue.h ('k') | third_party/WebKit/Source/core/css/CSSProperties.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698