1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 23:28:11 +00:00

LibWeb: Rename StyleDeclarationRule -> Declaration

This is the term used in the CSS specs.
This commit is contained in:
Sam Atkins 2022-03-31 14:36:12 +01:00 committed by Andreas Kling
parent 8b538b1578
commit 611a209756
6 changed files with 21 additions and 21 deletions

View file

@ -6,7 +6,7 @@
#pragma once
#include <LibWeb/CSS/Parser/StyleDeclarationRule.h>
#include <LibWeb/CSS/Parser/Declaration.h>
#include <LibWeb/CSS/Parser/StyleRule.h>
namespace Web::CSS {
@ -16,7 +16,7 @@ class DeclarationOrAtRule {
public:
explicit DeclarationOrAtRule(RefPtr<StyleRule> at);
explicit DeclarationOrAtRule(StyleDeclarationRule declaration);
explicit DeclarationOrAtRule(Declaration declaration);
~DeclarationOrAtRule();
enum class DeclarationType {
@ -33,7 +33,7 @@ public:
return *m_at;
}
StyleDeclarationRule const& declaration() const
Declaration const& declaration() const
{
VERIFY(is_declaration());
return m_declaration;
@ -44,7 +44,7 @@ public:
private:
DeclarationType m_type;
RefPtr<StyleRule> m_at;
StyleDeclarationRule m_declaration;
Declaration m_declaration;
};
}