diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2022-04-12 19:05:13 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-04-12 23:03:46 +0200 |
commit | 431a9938a8ecdd01dea4a60a3f8ec62ddb3d9419 (patch) | |
tree | 87959180577b7eb06b03294704f0e5c9cd0f647b /Userland/Libraries/LibWeb/CSS/Parser/DeclarationOrAtRule.h | |
parent | cf24dc2e0c71171c7d29c7fbd3da4afb43fad8ac (diff) | |
download | serenity-431a9938a8ecdd01dea4a60a3f8ec62ddb3d9419.zip |
LibWeb: Rename StyleRule -> Rule
This name is what's used in the spec, and is a little less confusing.
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/Parser/DeclarationOrAtRule.h')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/Parser/DeclarationOrAtRule.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/Parser/DeclarationOrAtRule.h b/Userland/Libraries/LibWeb/CSS/Parser/DeclarationOrAtRule.h index e8b8f67a84..e5a35f8bb1 100644 --- a/Userland/Libraries/LibWeb/CSS/Parser/DeclarationOrAtRule.h +++ b/Userland/Libraries/LibWeb/CSS/Parser/DeclarationOrAtRule.h @@ -7,13 +7,13 @@ #pragma once #include <LibWeb/CSS/Parser/Declaration.h> -#include <LibWeb/CSS/Parser/StyleRule.h> +#include <LibWeb/CSS/Parser/Rule.h> namespace Web::CSS::Parser { class DeclarationOrAtRule { public: - explicit DeclarationOrAtRule(RefPtr<StyleRule> at); + explicit DeclarationOrAtRule(RefPtr<Rule> at); explicit DeclarationOrAtRule(Declaration declaration); ~DeclarationOrAtRule(); @@ -25,7 +25,7 @@ public: bool is_at_rule() const { return m_type == DeclarationType::At; } bool is_declaration() const { return m_type == DeclarationType::Declaration; } - StyleRule const& at_rule() const + Rule const& at_rule() const { VERIFY(is_at_rule()); return *m_at; @@ -41,7 +41,7 @@ public: private: DeclarationType m_type; - RefPtr<StyleRule> m_at; + RefPtr<Rule> m_at; Optional<Declaration> m_declaration; }; |