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

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

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 #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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/BUILD.gn ('k') | third_party/WebKit/Source/core/css/CSSFontVariationValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698