diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2021-09-28 15:17:11 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-29 18:57:48 +0200 |
commit | 97a78cdd28157f85b98b40f75d1585b6504b00f5 (patch) | |
tree | 9b35139abb8b7e01009a814243dc88f3b4eb4cac /Userland/Libraries/LibWeb/CSS/CSSRuleList.cpp | |
parent | 2758d99bbcd44372ebd08bf375b110c8e07bb395 (diff) | |
download | serenity-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.cpp | 20 |
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() +{ +} + +} |