diff options
author | Andreas Kling <kling@serenityos.org> | 2021-03-13 20:11:33 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-13 22:41:32 +0100 |
commit | 0759f54bd33f3900c094f27d81481da76b9b4a03 (patch) | |
tree | 8967e6685c88d4107102f3aa2e3d57bce4f9b18e /Userland/Libraries/LibWeb/CSS/CSSStyleRule.h | |
parent | e44fbbe5c0959e257f29852f82b7bcc772112d01 (diff) | |
download | serenity-0759f54bd33f3900c094f27d81481da76b9b4a03.zip |
LibWeb: Rename StyleDeclaration => CSSStyleDeclaration to match CSSOM
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/CSSStyleRule.h')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/CSSStyleRule.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/CSSStyleRule.h b/Userland/Libraries/LibWeb/CSS/CSSStyleRule.h index bfee3c0b6d..e8db816f6c 100644 --- a/Userland/Libraries/LibWeb/CSS/CSSStyleRule.h +++ b/Userland/Libraries/LibWeb/CSS/CSSStyleRule.h @@ -29,8 +29,8 @@ #include <AK/NonnullRefPtrVector.h> #include <LibWeb/CSS/CSSRule.h> +#include <LibWeb/CSS/CSSStyleDeclaration.h> #include <LibWeb/CSS/Selector.h> -#include <LibWeb/CSS/StyleDeclaration.h> namespace Web::CSS { @@ -39,7 +39,7 @@ class CSSStyleRule : public CSSRule { AK_MAKE_NONMOVABLE(CSSStyleRule); public: - static NonnullRefPtr<CSSStyleRule> create(Vector<Selector>&& selectors, NonnullRefPtr<StyleDeclaration>&& declaration) + static NonnullRefPtr<CSSStyleRule> create(Vector<Selector>&& selectors, NonnullRefPtr<CSSStyleDeclaration>&& declaration) { return adopt(*new CSSStyleRule(move(selectors), move(declaration))); } @@ -47,16 +47,16 @@ public: ~CSSStyleRule(); const Vector<Selector>& selectors() const { return m_selectors; } - const StyleDeclaration& declaration() const { return m_declaration; } + const CSSStyleDeclaration& declaration() const { return m_declaration; } virtual StringView class_name() const { return "CSSStyleRule"; }; virtual Type type() const { return Type::Style; }; private: - CSSStyleRule(Vector<Selector>&&, NonnullRefPtr<StyleDeclaration>&&); + CSSStyleRule(Vector<Selector>&&, NonnullRefPtr<CSSStyleDeclaration>&&); Vector<Selector> m_selectors; - NonnullRefPtr<StyleDeclaration> m_declaration; + NonnullRefPtr<CSSStyleDeclaration> m_declaration; }; } |