/* * 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); } }