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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/css/CSSFontVariationValue.h
diff --git a/third_party/WebKit/Source/core/css/CSSFontVariationValue.h b/third_party/WebKit/Source/core/css/CSSFontVariationValue.h
new file mode 100644
index 0000000000000000000000000000000000000000..2d3bd903aaefee68e3e9b4b092443b38d53e9e94
--- /dev/null
+++ b/third_party/WebKit/Source/core/css/CSSFontVariationValue.h
@@ -0,0 +1,40 @@
+// 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.
+
+#ifndef CSSFontVariationValue_h
+#define CSSFontVariationValue_h
+
+#include "core/css/CSSValue.h"
+#include "wtf/text/WTFString.h"
+
+namespace blink {
+
+class CSSFontVariationValue : public CSSValue {
+ public:
+ static CSSFontVariationValue* create(const AtomicString& tag, float value) {
+ return new CSSFontVariationValue(tag, value);
+ }
+
+ const AtomicString& tag() const { return m_tag; }
+ float value() const { return m_value; }
+ String customCSSText() const;
+
+ bool equals(const CSSFontVariationValue&) const;
+
+ DEFINE_INLINE_TRACE_AFTER_DISPATCH() {
+ CSSValue::traceAfterDispatch(visitor);
+ }
+
+ private:
+ CSSFontVariationValue(const AtomicString& tag, float value);
+
+ AtomicString m_tag;
+ const float m_value;
+};
+
+DEFINE_CSS_VALUE_TYPE_CASTS(CSSFontVariationValue, isFontVariationValue());
+
+} // namespace blink
+
+#endif
« 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