Index: third_party/WebKit/Source/core/css/CSSFontFamilyValue.h |
diff --git a/third_party/WebKit/Source/core/css/CSSFontFamilyValue.h b/third_party/WebKit/Source/core/css/CSSFontFamilyValue.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..646d424a2db57e9b04b9d177509e218b50a07892 |
--- /dev/null |
+++ b/third_party/WebKit/Source/core/css/CSSFontFamilyValue.h |
@@ -0,0 +1,43 @@ |
+// 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 CSSFontFamilyValue_h |
+#define CSSFontFamilyValue_h |
+ |
+#include "core/css/CSSValue.h" |
+#include "wtf/PassRefPtr.h" |
+#include "wtf/RefCounted.h" |
+ |
+namespace blink { |
+ |
+class CSSFontFamilyValue : public CSSValue { |
+public: |
+ static PassRefPtrWillBeRawPtr<CSSFontFamilyValue> create(const String& str) |
+ { |
+ return adoptRefWillBeNoop(new CSSFontFamilyValue(str)); |
+ } |
+ |
+ String value() const { return m_string; } |
+ |
+ String customCSSText() const; |
+ |
+ bool equals(const CSSFontFamilyValue& other) const |
+ { |
+ return m_string == other.m_string; |
+ } |
+ |
+ DECLARE_TRACE_AFTER_DISPATCH(); |
+ |
+private: |
+ CSSFontFamilyValue(const String&); |
+ |
+ // TODO(sashab): Change this to an AtomicString. |
+ String m_string; |
+}; |
+ |
+DEFINE_CSS_VALUE_TYPE_CASTS(CSSFontFamilyValue, isFontFamilyValue()); |
+ |
+} // namespace blink |
+ |
+#endif // CSSFontFamilyValue_h |