blob: 701a5414349387ad912ba12f23857f807f87bd30 [file] [log] [blame]
// 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 THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSSOM_TYPES_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSSOM_TYPES_H_
#include "third_party/blink/renderer/core/css/cssom/css_style_value.h"
#include "third_party/blink/renderer/core/css_property_names.h"
#include "third_party/blink/renderer/platform/wtf/allocator.h"
namespace blink {
// This class provides utility functions for determining whether a property
// can accept a CSSStyleValue type or instance. Its implementation is generated
// using input from CSSProperties.json5 and the script
// build/scripts/make_cssom_types.py.
class CSSOMTypes {
STATIC_ONLY(CSSOMTypes);
public:
static bool IsPropertySupported(CSSPropertyID);
static bool PropertyCanTake(CSSPropertyID, const CSSStyleValue&);
static bool PropertyCanTakeType(CSSPropertyID, CSSStyleValue::StyleValueType);
};
} // namespace blink
#endif