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"
13 class CSSFunctionValue
: public CSSValueList
{
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
); }
28 CSSFunctionValue(CSSValueID id
)
29 : CSSValueList(FunctionClass
, CommaSeparator
)
34 const CSSValueID m_valueID
;
37 DEFINE_CSS_VALUE_TYPE_CASTS(CSSFunctionValue
, isFunctionValue());