/* * Copyright (c) 2021, Sam Atkins * * SPDX-License-Identifier: BSD-2-Clause */ #include namespace Web::CSS { CSSConditionRule::CSSConditionRule(NonnullRefPtrVector&& rules) : CSSGroupingRule(move(rules)) { } CSSConditionRule::~CSSConditionRule() { } void CSSConditionRule::for_each_effective_style_rule(Function const& callback) const { if (condition_matches()) CSSGroupingRule::for_each_effective_style_rule(callback); } bool CSSConditionRule::for_first_not_loaded_import_rule(Function const& callback) { if (condition_matches()) return CSSGroupingRule::for_first_not_loaded_import_rule(callback); return false; } }