blob: e85c02cc38beafb64e2fe8be3d514630c2999139 [file] [log] [blame]
// Copyright 2018 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_LAYOUT_FUNCTION_VALUE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSS_LAYOUT_FUNCTION_VALUE_H_
#include "base/macros.h"
#include "third_party/blink/renderer/core/css/css_value.h"
#include "third_party/blink/renderer/platform/heap/handle.h"
namespace blink {
class CSSCustomIdentValue;
namespace cssvalue {
class CSSLayoutFunctionValue : public CSSValue {
public:
static CSSLayoutFunctionValue* Create(CSSCustomIdentValue* name,
bool is_inline) {
return MakeGarbageCollected<CSSLayoutFunctionValue>(name, is_inline);
}
CSSLayoutFunctionValue(CSSCustomIdentValue* name, bool is_inline);
~CSSLayoutFunctionValue();
String CustomCSSText() const;
AtomicString GetName() const;
bool IsInline() const { return is_inline_; }
bool Equals(const CSSLayoutFunctionValue&) const;
void TraceAfterDispatch(blink::Visitor*);
private:
Member<CSSCustomIdentValue> name_;
bool is_inline_;
};
DEFINE_CSS_VALUE_TYPE_CASTS(CSSLayoutFunctionValue, IsLayoutFunctionValue());
} // namespace cssvalue
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSS_LAYOUT_FUNCTION_VALUE_H_