blob: 14fde898b0e13cd393563596ca6c29097cf38297 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
// Copyright 2015 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 THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSS_FUNCTION_VALUE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSS_FUNCTION_VALUE_H_
#include "third_party/blink/renderer/core/css/css_value_list.h"
#include "third_party/blink/renderer/core/css_value_keywords.h"
namespace blink {
class CSSFunctionValue : public CSSValueList {
public:
static CSSFunctionValue* Create(CSSValueID id) {
return new CSSFunctionValue(id);
}
String CustomCSSText() const;
bool Equals(const CSSFunctionValue& other) const {
return value_id_ == other.value_id_ && CSSValueList::Equals(other);
}
CSSValueID FunctionType() const { return value_id_; }
void TraceAfterDispatch(blink::Visitor* visitor) {
CSSValueList::TraceAfterDispatch(visitor);
}
private:
CSSFunctionValue(CSSValueID id)
: CSSValueList(kFunctionClass, kCommaSeparator), value_id_(id) {}
const CSSValueID value_id_;
};
DEFINE_CSS_VALUE_TYPE_CASTS(CSSFunctionValue, IsFunctionValue());
} // namespace blink
#endif
|