/* * Copyright (c) 2021, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #include #include #include #include #include #include #include #include #include #include #include #include #include namespace Web::Bindings { CSSRuleWrapper* wrap(JS::GlobalObject& global_object, CSS::CSSRule& rule) { if (rule.wrapper()) return static_cast(rule.wrapper()); if (is(rule)) return static_cast(wrap_impl(global_object, verify_cast(rule))); if (is(rule)) return static_cast(wrap_impl(global_object, verify_cast(rule))); if (is(rule)) return static_cast(wrap_impl(global_object, verify_cast(rule))); if (is(rule)) return static_cast(wrap_impl(global_object, verify_cast(rule))); if (is(rule)) return static_cast(wrap_impl(global_object, verify_cast(rule))); return static_cast(wrap_impl(global_object, rule)); } }