summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS/CSSRuleList.cpp
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2021-09-28 15:17:11 +0100
committerAndreas Kling <kling@serenityos.org>2021-09-29 18:57:48 +0200
commit97a78cdd28157f85b98b40f75d1585b6504b00f5 (patch)
tree9b35139abb8b7e01009a814243dc88f3b4eb4cac /Userland/Libraries/LibWeb/CSS/CSSRuleList.cpp
parent2758d99bbcd44372ebd08bf375b110c8e07bb395 (diff)
downloadserenity-97a78cdd28157f85b98b40f75d1585b6504b00f5.zip
LibWeb: Add CSSRuleList
"The CSSRuleList interface represents an ordered collection of CSS style rules." - https://www.w3.org/TR/cssom-1/#the-cssrulelist-interface
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/CSSRuleList.cpp')
-rw-r--r--Userland/Libraries/LibWeb/CSS/CSSRuleList.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/CSSRuleList.cpp b/Userland/Libraries/LibWeb/CSS/CSSRuleList.cpp
new file mode 100644
index 0000000000..10f7ba598c
--- /dev/null
+++ b/Userland/Libraries/LibWeb/CSS/CSSRuleList.cpp
@@ -0,0 +1,20 @@
+/*
+ * Copyright (c) 2021, Sam Atkins <atkinssj@serenityos.org>
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
+
+#include <LibWeb/CSS/CSSRuleList.h>
+
+namespace Web::CSS {
+
+CSSRuleList::CSSRuleList(NonnullRefPtrVector<CSSRule>&& rules)
+ : m_rules(rules)
+{
+}
+
+CSSRuleList::~CSSRuleList()
+{
+}
+
+}