Oilpan: fix build after r202625.
[chromium-blink-merge.git] / third_party / WebKit / Source / core / css / CSSFunctionValue.h
bloba99f787019119e97dd364404d70678ae33bff38c
1 // Copyright 2015 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.
5 #ifndef CSSFunctionValue_h
6 #define CSSFunctionValue_h
8 #include "core/CSSValueKeywords.h"
9 #include "core/css/CSSValueList.h"
11 namespace blink {
13 class CSSFunctionValue : public CSSValueList {
14 public:
15 static PassRefPtrWillBeRawPtr<CSSFunctionValue> create(CSSValueID id)
17 return adoptRefWillBeNoop(new CSSFunctionValue(id));
20 String customCSSText() const;
22 bool equals(const CSSFunctionValue& other) const { return m_valueID == other.m_valueID && CSSValueList::equals(other); }
23 CSSValueID functionType() const { return m_valueID; }
25 DEFINE_INLINE_TRACE_AFTER_DISPATCH() { CSSValueList::traceAfterDispatch(visitor); }
27 private:
28 CSSFunctionValue(CSSValueID id)
29 : CSSValueList(FunctionClass, CommaSeparator)
30 , m_valueID(id)
34 const CSSValueID m_valueID;
37 DEFINE_CSS_VALUE_TYPE_CASTS(CSSFunctionValue, isFunctionValue());
39 } // namespace blink
41 #endif