From 431a9938a8ecdd01dea4a60a3f8ec62ddb3d9419 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Tue, 12 Apr 2022 19:05:13 +0100 Subject: LibWeb: Rename StyleRule -> Rule This name is what's used in the spec, and is a little less confusing. --- Userland/Libraries/LibWeb/CSS/Parser/DeclarationOrAtRule.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Userland/Libraries/LibWeb/CSS/Parser/DeclarationOrAtRule.h') 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 -#include +#include namespace Web::CSS::Parser { class DeclarationOrAtRule { public: - explicit DeclarationOrAtRule(RefPtr at); + explicit DeclarationOrAtRule(RefPtr 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 m_at; + RefPtr m_at; Optional m_declaration; }; -- cgit v1.2.3