summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS/CSSConditionRule.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/CSSConditionRule.cpp')
-rw-r--r--Userland/Libraries/LibWeb/CSS/CSSConditionRule.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/CSSConditionRule.cpp b/Userland/Libraries/LibWeb/CSS/CSSConditionRule.cpp
index eb2a3716cb..35b16b5dd7 100644
--- a/Userland/Libraries/LibWeb/CSS/CSSConditionRule.cpp
+++ b/Userland/Libraries/LibWeb/CSS/CSSConditionRule.cpp
@@ -17,4 +17,18 @@ CSSConditionRule::~CSSConditionRule()
{
}
+void CSSConditionRule::for_each_effective_style_rule(Function<void(CSSStyleRule const&)> const& callback) const
+{
+ if (condition_matches())
+ CSSGroupingRule::for_each_effective_style_rule(callback);
+}
+
+bool CSSConditionRule::for_first_not_loaded_import_rule(Function<void(CSSImportRule&)> const& callback)
+{
+ if (condition_matches())
+ return CSSGroupingRule::for_first_not_loaded_import_rule(callback);
+
+ return false;
+}
+
}